# Codex CLI Support

**URL:** <https://community.folivora.ai/t/codex-cli-support/46464>\
**Category:** Feature Requests\
**Created:** [March 13, 2026, 1:26pm UTC](https://community.folivora.ai/t/codex-cli-support/46464 "2026-03-13T13:26:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![m3kw](https://community.folivora.ai/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@m3kw](https://community.folivora.ai/u/m3kw)\
**Post date:** [March 13, 2026, 1:26pm UTC](https://community.folivora.ai/t/codex-cli-support/46464/1 "2026-03-13T13:26:08Z")

</div>

For the Ask AI, can Codex CLI be supported, its the equivalent of Claude CLI? People with an OpenAI plan can use the CLI to generate responses. The auth part shouldn’t be an issue.

I use Codex CLI daily, and i’m so looking forward to using that feature!

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 13, 2026, 3:07pm UTC](https://community.folivora.ai/t/codex-cli-support/46464/2 "2026-03-13T15:07:30Z")

</div>

Yep good idea, I'll look into adding support for codex-cli and opencode asap.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 14, 2026, 11:58am UTC](https://community.folivora.ai/t/codex-cli-support/46464/3 "2026-03-14T11:58:16Z")

</div>

Initial codex cli support has been added in 6.256 however I need to do more testing with it. (This version also contains various other refactorings related to [h@llo.ai](mailto:h@llo.ai), things might be broken a bit

---

<div class="post-metadata">

**Author:** ![m3kw](https://community.folivora.ai/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@m3kw](https://community.folivora.ai/u/m3kw)\
**Post date:** [March 15, 2026, 2:32pm UTC](https://community.folivora.ai/t/codex-cli-support/46464/4 "2026-03-15T14:32:23Z")

</div>

Whoa, thats fast, it works too! One thing I can suggest could be able to somehow allow use of different model incase the CLI defaults to a heavy reasoning model as that could slow down responses and overthink

---

<div class="post-metadata">

**Author:** ![iandol](https://community.folivora.ai/user_avatar/community.folivora.ai/iandol/32/626_2.png) [@iandol](https://community.folivora.ai/u/iandol)\
**Post date:** [March 16, 2026, 1:55am UTC](https://community.folivora.ai/t/codex-cli-support/46464/5 "2026-03-16T01:55:07Z")

</div>

Annoyingly there are soooo many CLI tools now. I have a codex CLI account but as I already have claude (not using anthropic servers though) and copilot CLIs I didn’t install codex CLI. Do you support opencode CLI as that seems to be a well respected opensource alternative that supports many auths/providers?

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 16, 2026, 7:35am UTC](https://community.folivora.ai/t/codex-cli-support/46464/6 "2026-03-16T07:35:33Z")

</div>

I have added opencode but not yet verified it works, I'll get to it this week.

---

<div class="post-metadata">

**Author:** ![Subhash\_Jha](https://community.folivora.ai/user_avatar/community.folivora.ai/subhash_jha/32/39124_2.png) [@Subhash\_Jha](https://community.folivora.ai/u/Subhash_Jha)\
**Post date:** [March 16, 2026, 10:36am UTC](https://community.folivora.ai/t/codex-cli-support/46464/7 "2026-03-16T10:36:47Z")

</div>

I am getting this error while trying `Ask AI (Beta)` .  
I tried claude cli as well as codex cli.  
Did I mess up something ?

 ![image](https://community.folivora.ai/uploads/default/original/3X/8/c/8ccf3147607ada71f8fb2a55ea6ae089ace6d8bb.png)

Error: Invalid request: unknown variant `reject`, expected one of `untrusted`, `on-failure`, `on-request`, `never`

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 16, 2026, 10:39am UTC](https://community.folivora.ai/t/codex-cli-support/46464/8 "2026-03-16T10:39:44Z")

</div>

Which version of BTT are you on?

---

<div class="post-metadata">

**Author:** ![Subhash\_Jha](https://community.folivora.ai/user_avatar/community.folivora.ai/subhash_jha/32/39124_2.png) [@Subhash\_Jha](https://community.folivora.ai/u/Subhash_Jha)\
**Post date:** [March 16, 2026, 10:41am UTC](https://community.folivora.ai/t/codex-cli-support/46464/9 "2026-03-16T10:41:14Z")

</div>

latest

![image](https://community.folivora.ai/uploads/default/original/3X/f/f/ff337a0c49f512de0a888077a1d14ebacdf2c807.png)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 16, 2026, 10:43am UTC](https://community.folivora.ai/t/codex-cli-support/46464/10 "2026-03-16T10:43:16Z")

</div>

the message should be specific to codex, maybe some older version of codex-cli is installed?

---

<div class="post-metadata">

**Author:** ![Subhash\_Jha](https://community.folivora.ai/user_avatar/community.folivora.ai/subhash_jha/32/39124_2.png) [@Subhash\_Jha](https://community.folivora.ai/u/Subhash_Jha)\
**Post date:** [March 16, 2026, 10:46am UTC](https://community.folivora.ai/t/codex-cli-support/46464/11 "2026-03-16T10:46:20Z")

</div>

Thanks, I updated the codex version to latest and it started working.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 16, 2026, 8:10pm UTC](https://community.folivora.ai/t/codex-cli-support/46464/12 "2026-03-16T20:10:30Z")

</div>

OpenCode should now work in 6.265. The other cli options have gotten a model configuration option.

---

<div class="post-metadata">

**Author:** ![mahuaer](https://community.folivora.ai/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@mahuaer](https://community.folivora.ai/u/mahuaer)\
**Post date:** [March 18, 2026, 8:02am UTC](https://community.folivora.ai/t/codex-cli-support/46464/13 "2026-03-18T08:02:05Z")

</div>

![PixPin_2026-03-18_16-00-01](https://community.folivora.ai/uploads/default/original/3X/8/3/833aad412c5efe618c5989f45a91c64f7e5944d7.jpeg)

I have configured the opencode cli in btt, but the AI assistant is not responding at all. The opencode cli configuration on my computer is working properly. Where can I check the logs? I don't know what error has occurred.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 18, 2026, 8:03am UTC](https://community.folivora.ai/t/codex-cli-support/46464/14 "2026-03-18T08:03:15Z")

</div>

Which version of opencode cli and BTT are you running? (BTT should be latest alpha and opencode should also be pretty curent)

The conversations including technical logs are in '~/Library/Application Support/BetterTouchTool/AI/Conversations'

---

<div class="post-metadata">

**Author:** ![mahuaer](https://community.folivora.ai/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@mahuaer](https://community.folivora.ai/u/mahuaer)\
**Post date:** [March 18, 2026, 8:23am UTC](https://community.folivora.ai/t/codex-cli-support/46464/15 "2026-03-18T08:23:25Z")

</div>

opencode -v  
1.2.27

BTT 6.269

I just updated to 6.270, and the same problem still occurs, and an exception has appeared now.

 ![PixPin_2026-03-18_16-22-48](https://community.folivora.ai/uploads/default/original/3X/c/d/cdc17f05f937241d729a37007c4842e6ac54d8c4.jpeg)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 18, 2026, 8:27am UTC](https://community.folivora.ai/t/codex-cli-support/46464/16 "2026-03-18T08:27:46Z")

</div>

Could you check where your opencode is installed at? (Terminal command "which opencode") maybe BTT is looking at the wrong location for your installation type

For the crashlog, would be great if you could post the full one from macOS console app's crash report section

---

<div class="post-metadata">

**Author:** ![mahuaer](https://community.folivora.ai/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@mahuaer](https://community.folivora.ai/u/mahuaer)\
**Post date:** [March 18, 2026, 9:18am UTC](https://community.folivora.ai/t/codex-cli-support/46464/17 "2026-03-18T09:18:40Z")

</div>

I installed opencode using brew, so the path is `/opt/homebrew/bin/opencode` instead of using `curl -fsSL ``https://opencode.ai/install`` | bash`. I'm not sure if this is the reason, but I haven't experienced another crash after restarting.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 18, 2026, 9:20am UTC](https://community.folivora.ai/t/codex-cli-support/46464/18 "2026-03-18T09:20:05Z")

</div>

> [@mahuaer](#):
>
> `/opt/homebrew/bin/opencode`

That should be fine, BTT is looking at that path.

Can you maybe send me one of the logs in ~/Library/Application Support/BetterTouchTool/AI/Conversations ? ([andeas@folivora.ai](mailto:andeas@folivora.ai)) maybe I can see some error

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 18, 2026, 9:30am UTC](https://community.folivora.ai/t/codex-cli-support/46464/19 "2026-03-18T09:30:46Z")

</div>

Mh the logs don't show an error, could you check whether your opencode server starts correctly when you enter

```auto
opencode serve

```

Does opencode have a working configuration for the model you chose? (glm-5)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 18, 2026, 3:26pm UTC](https://community.folivora.ai/t/codex-cli-support/46464/20 "2026-03-18T15:26:43Z")

</div>

I think I found an issue with opencode when a model has been specified manually. With 6.274 it gives you a list with available models in Opencode and automatically uses the correct format. In general however it will be faster to use BTT's integrated openai or anthropic compatible API support, because that does not need to go through an extra CLI tool

[Next page](https://community.folivora.ai/t/codex-cli-support/46464.md?page=2)
