To update the Codex CLI, run codex update; OpenAI’s command reference says it checks for and applies a Codex CLI update when the installed release supports self-update.
As of December 3, 2026, the latest Codex CLI release on GitHub is 0.173.0 (tag rust-v0.173.0), published December 1, 2026. If self-update is not available, OpenAI’s Codex CLI page lists an update command for each install method:
- macOS and Linux (standalone installer):
curl -fsSL https://chatgpt.com/codex/install.sh | sh - Windows (new PowerShell window):
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" - npm:
npm install -g @openai/codex - Homebrew:
brew upgrade --cask codex
Use the method you originally installed with, so you do not end up with two copies. For the standalone installers, the update command is the same as the install command. Debug builds cannot self-update; OpenAI says codex update prints a message telling you to install a release build instead.
Related: Codex CLI 0.172 power-user guide, How to resume a Codex session? and How to update GitHub Copilot CLI?
Source: OpenAI, Codex CLI (install and update); OpenAI, Codex CLI command reference; openai/codex release 0.173.0 on GitHub
Image: ChatGPT logo by OpenAI, public domain (PD shape), via Wikimedia Commons, placed on a white background and resized. Codex and ChatGPT are trademarks of OpenAI. FreeAnswers is not affiliated with or endorsed by OpenAI.