Unable to upgrade codex with 'brew upgrade codex'
Resolved 💬 13 comments Opened Sep 11, 2025 by kiranjd Closed Sep 16, 2025
What version of Codex is running?
codex-cli 0.31.0
Which model were you using?
gpt-5
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
- Install codex using
brew install codex - As I launch codex, I get the nudge to upgrade on first open itself
jd@Kirans-MacBook-Pro vibe-code % codex
✨⬆️ Update available! 0.31.0 -> 0.32.0.
Run brew upgrade codex to update.
- When I do the upgrade with
brew upgrade codex, it says 0.31 is already installed
jd@Kirans-MacBook-Pro vibe-code % brew upgrade codex
Warning: codex 0.31.0 already installed
I have also tried brew upgrade codex@0.32.0 and met with Error: No available formula with the name "codex@0.32.0".
What is the expected behavior?
- New install with brew should install the latest version and not ask for upgrade as soon as i install(unless a release was done right after I installed)
- When I get nudge to upgrade, the upgrade should work
What do you see instead?
_No response_
Additional information
_No response_
13 Comments
Same over here, seems the formula has not been updated yet and/or it takes some time for it to update.
https://formulae.brew.sh/formula/codex still shows 0.33.0 here although 0.34.0 is already out. One work around is to install it manually from https://github.com/openai/codex/releases which I had to do as 0.33 had issues with MCP servers.
<img width="1430" height="924" alt="Image" src="https://github.com/user-attachments/assets/596a790e-d538-48f6-afa6-3d50a258f1e2" />
It works now
I still have the issue, on version 0.31.0, using fish shell.
Edit: needed to update homebrew first:
brew updateto force brew to update its list of formulae, now it works.Hey folks, did you
brew updatebefore?yes, i had done that too. Nothing seemeed to work. So I did:
brew unlink codexbrew uninstall codexbrew install codexThis fixed the issue but i think version 0.31 seems to somehow stuck in update avalilable loop without a way to install a new version. Before removing everything, I had tried
brew update,brew install codex --HEADThe problem seems to be upgrading from
0.31.0specificallyAnyone running into this error like I did today when trying to update to 0.36 should do this!
1) brew update && brew upgrade
2) brew install rust
3) brew uninstall codex
4) brew install codex --HEAD
========
Just did this and it worked: brew update && brew upgrade
Same issue form .46 -> .47.
% brew upgrade codex--formulaWarning: Treating codex as a cask. For the formula, specify the
flag. To silence this message, use the--caskflag.@captCovalent I was facing the same issue for this update.
It seems that you installed codex using a package manager (such as npm). Try uninstalling the version installed with npm or your package manager (
npm uninstall -g @openai/codex)Then try :
brew unlink codexbrew uninstall codexand finally
brew install codexI tried it and it worked
For me,
brew uninstall --cask codexworked!