Install Codex CLI
If you already use Codex on the Mac, this page is mostly about verification, not installation. What CodexPocketMac actually calls is the codex CLI, so first confirm that codex starts from Terminal and that the required subcommands are also available.
1. Confirm that codex starts in Terminal
Run these commands in Terminal:
codex --version
codex
The expected state is:
codex --versionprints a version- running
codexactually launches the Codex CLI
If you only want to confirm startup, it is fine to exit with Ctrl+C once the interface appears.
2. Confirm the command CodexPocketMac needs
Then check the command used by CodexPocketMac:
which codex
codex app-server --help
The two things you want here are:
which codexprints the real path tocodexcodex app-server --helpdoes not fail
If codex itself launches but codex app-server --help fails, the CLI may be outdated or broken.
3. Confirm that it is current, then update it
First, check where codex comes from:
which codex
If the path points to /opt/homebrew/Caskroom/... or /usr/local/Caskroom/..., it is installed with Homebrew. In that case, update it like this:
brew update
brew info codex
brew upgrade codex
codex --version
codex app-server --help
Here is how to read the result:
- use
brew info codexto compare the installed version with the available version - use
brew upgrade codexto update it - run
codex --versionagain after the upgrade and confirm the version you expected - finish by running
codex app-server --helpagain to confirm the feature CodexPocketMac needs is available too
If you installed it some other way, update it with the same method you used originally, then rerun codex --version and codex app-server --help.
If it does not work
- if
which codexis empty, revisit the Codex CLI installation or PATH - if
codex --versionworks butcodexdoes not launch, revisit shell setup and execution permissions - if
codexlaunches butcodex app-server --helpfails, update the CLI and check again - if Terminal works but the Mac app does not detect it, restart the Mac app
- you can also inspect the state on the
Codex CLIrow inDetails - if
GeneralshowsBridge prerequisites are not satisfied, this page is the first place to look
What this unlocks
- starting Bridge
- fetching the
Threadlist for eachProject - using
ComposerandExecfrom the iPhone
Even if you use Codex App, this check is still worth doing once. If the CLI cannot be found, you may get as far as connecting from the iPhone but not as far as doing real work.