- Added `@plugin` mentions so users can reference plugins directly in chat and auto-include their associated MCP/app/skill context. (#13510) - Added a new model-selection surface update so the latest model catalog changes are surfaced in the TUI picker flow. (#13617) - Merged executable permission profiles into per-turn sandbox policy for zsh-fork skill execution, allowing safer, additive privilege handling for tool runs. (#13496) ## Bug Fixes - Fixed JS REPL state handling so previously-initialized bindings persist after a failed cell, reducing brittle restarts during iterative sessions. (#13482) - Treated `SIGTERM` like Ctrl-C for graceful app-server websocket shutdown instead of abrupt termination behavior. (#13594) - Hardened js_repl image emission to accept only `data:` URLs, preventing external URL forwarding through `emitImage`. (#13507) - Ensured Linux bubblewrap sandbox runs always unshare the user namespace to keep isolation consistent even for root-owned invocations. (#13624) - Improved macOS sandbox network and unix-socket handling in Seatbelt, improving reliability for constrained subprocess environments. (#12702) - Surfaced feedback/diagnostics earlier in the workflow so connectivity and diagnostics are visible before later steps. (#13604) ## Documentation - Clarified js_repl image guidance (emission and encoding semantics), including clearer usage around repeated `emitImage` calls. (#13639) ## Chores - Fixed a small codespell warning in the TUI theme picker path. (#13605) ## Changelog Full Changelog: https://github.com/openai/codex/compare/rust-v0.111.0...rust-v0.112.0 - #13594 treat SIGTERM like ctrl-c for graceful shutdown @maxj-oai - #13605 Fix codespell warning about pre-selects @fjord-oai - #13482 Persist initialized js_repl bindings after failed cells @fjord-oai - #13604 [diagnostics] show diagnostics earlier in workflow @rhan-oai - #13496 feat: merge skill permission profiles into the turn sandbox for zsh-fork execs @celia-oai - #13507 Harden js_repl emitImage to accept only data: URLs @fjord-oai - #13602 feat(core): persist trace_id for turns in RolloutItem::TurnContext @owenlin0 - #13624 fix(linux-sandbox): always unshare bwrap userns @viyatb-oai - #12702 Improve macOS Seatbelt network and unix socket handling @viyatb-oai - #13639 Clarify js_repl image emission and encoding guidance @fjord-oai - #13510 add @plugin mentions @sayan-oai - #13499 core/protocol: add structured macOS additional permissions and merge them into sandbox execution @celia-oai - #13617 Update models.json @aibrahim-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.
