- Added `WS_PROXY`/`WSS_PROXY` environment support (including lowercase variants) for websocket proxying in the network proxy. (#11784) - App-server v2 now emits notifications when threads are archived or unarchived, enabling clients to react without polling. (#12030) - Protocol/core now carry distinct approval IDs for command approvals to support multiple approvals within a single shell command execution flow. (#12051) ## Bug Fixes - `Ctrl+C`/`Ctrl+D` now cleanly exits the cwd-change prompt during resume/fork flows instead of implicitly selecting an option. (#12040) - Reduced false-positive safety-check downgrade behavior by relying on the response header model (and websocket top-level events) rather than the response body model slug. (#12061) ## Documentation - Updated docs and schemas to cover websocket proxy configuration, new thread archive/unarchive notifications, and the command approval ID plumbing. (#11784, #12030, #12051) ## Chores - Made the Rust release workflow resilient to `npm publish` attempts for an already-published version. (#12044) - Standardized remote compaction test mocking and refreshed related snapshots to align with the default production-shaped behavior. (#12050) ## Changelog Full Changelog: https://github.com/openai/codex/compare/rust-v0.103.0...rust-v0.104.0 - #11784 feat(network-proxy): add websocket proxy env support @viyatb-oai - #12044 don't fail if an npm publish attempt is for an existing version. @iceweasel-oai - #12040 tui: exit session on Ctrl+C in cwd change prompt @charley-oai - #12030 app-server: Emit thread archive/unarchive notifications @euroelessar - #12061 Chore: remove response model check and rely on header model for downgrade @shijie-oai - #12051 feat(core): plumb distinct approval ids for command approvals @owenlin0 - #12050 Unify remote compaction snapshot mocks around default endpoint behavior @charley-oai
npm i -g @openai/codex
or brew install --cask codex
Codex CLI is a coding agent from OpenAI that runs locally on your computer.
If you want Codex in your code editor (VS Code, Cursor, Windsurf), install in your IDE.
If you want the desktop app experience, run
codex app or visit the Codex App page.
If you are looking for the cloud-based agent from OpenAI, Codex Web, go to chatgpt.com/codex.
Quickstart
Installing and running Codex CLI
Install globally with your preferred package manager:
# Install using npm
npm install -g @openai/codex
# Install using Homebrew
brew install --cask codex
Then simply run codex to get started.
You can also go to the latest GitHub Release and download the appropriate binary for your platform.
Each GitHub Release contains many executables, but in practice, you likely want one of these:
- macOS
- Apple Silicon/arm64:
codex-aarch64-apple-darwin.tar.gz - x86_64 (older Mac hardware):
codex-x86_64-apple-darwin.tar.gz
- Apple Silicon/arm64:
- Linux
- x86_64:
codex-x86_64-unknown-linux-musl.tar.gz - arm64:
codex-aarch64-unknown-linux-musl.tar.gz
- x86_64:
Each archive contains a single entry with the platform baked into the name (e.g., codex-x86_64-unknown-linux-musl), so you likely want to rename it to codex after extracting it.
Using Codex with your ChatGPT plan
Run codex and select Sign in with ChatGPT. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Team, Edu, or Enterprise plan. Learn more about what's included in your ChatGPT plan.
You can also use Codex with an API key, but this requires additional setup.
Docs
This repository is licensed under the Apache-2.0 License.
