Files
codex/codex-rs
jif-oai a09055074e ## New Features
- API v2 threads can now inject dynamic tools at startup and route their calls/responses end-to-end through the server and core tool pipeline. (#9539)
- Added filtering on the thread list in the app server to make large thread sets easier to browse. (#9897)
- Introduced a `thread/unarchive` RPC to restore archived rollouts back into active sessions. (#9843)
- MCP servers can now define OAuth scopes in `config.toml`, reducing the need to pass `--scopes` on each login. (#9647)
- Multi-agent collaboration is more capable and safer, with an explorer role, better collab event mapping, and max-depth guardrails. (#9817, #9818, #9918, #9899)
- Cached `web_search` is now the default client behavior. (#9974)

## Bug Fixes
- Fixed a TUI deadlock/freeze under high streaming throughput by avoiding blocking sends on the main Tokio thread. (#9951)
- The `web_search` tool now handles and displays all action types, and shows in-progress activity instead of appearing stuck. (#9960)
- Reduced high CPU usage in collaboration flows by eliminating busy-waiting on subagents. (#9776)
- Fixed `codex resume --last --json` so prompts parse correctly without conflicting argument errors. (#9475)
- Windows sandbox logging now handles UTF-8 safely, preventing failures when truncating multibyte content. (#8647)
- `request_user_input` is now rejected outside Plan/Pair modes to prevent invalid tool calls. (#9955)

## Documentation
- Updated the contribution guidelines for clearer onboarding and workflow expectations. (#9933)
- Refreshed protocol/MCP docs to reflect `thread/unarchive` and the updated `request_user_input` question shape. (#9843, #9890)

## Chores
- Self-update via Homebrew now uses an explicit cask upgrade command to avoid warnings and ambiguity. (#9823)
- Release packaging now consistently writes the bundle zip to `dist/`. (#9934)
- Updated key dependencies in the Rust workspace (including `axum`, `tracing`, `globset`, and `tokio-test`). (#9880, #9882, #9883, #9884)
- Aligned feature stage naming with public maturity stages and added clearer warnings for underdevelopment features. (#9929, #9954)

## Changelog

Full Changelog: https://github.com/openai/codex/compare/rust-v0.91.0...rust-v0.92.0

- #9850 chore: remove extra newline in println @SohailRaoufi
- #9868 Adjust modes masks @aibrahim-oai
- #9874 Prompt @aibrahim-oai
- #9877 Plan prompt @aibrahim-oai
- #9718 feat(tui) /personality @dylan-hurd-oai
- #9871 chore(core) move model_instructions_template config @dylan-hurd-oai
- #9539 feat: dynamic tools injection @jif-oai
- #9818 feat: rebase multi-agent tui on `config_snapshot` @jif-oai
- #9789 Fix flakey resume test @gt-oai
- #9784 Fix flakey conversation flow test @gt-oai
- #9918 feat: explorer collab @jif-oai
- #9899 feat: disable collab at max depth @jif-oai
- #9916 Fix up config disabled err msg @gt-oai
- #9890 Feat: add isOther to question returned by request user input tool @shijie-oai
- #9817 feat: codex exec mapping of collab tools @jif-oai
- #9919 Fix flakey shell snapshot test @gt-oai
- #9776 fix: attempt to reduce high cpu usage when using collab @eugeneoden
- #9928 prompt @aibrahim-oai
- #9925 chore: update interrupt message @jif-oai
- #9843 Add thread/unarchive to restore archived rollouts @charley-oai
- #9929 Aligned feature stage names with public feature maturity stages @etraut-openai
- #9934 ensure codex bundle zip is created in dist/ @iceweasel-oai
- #9897 [app-server] feat: add filtering on thread list  @jif-oai
- #9647 Add MCP server `scopes` config and use it as fallback for OAuth login @blevy-oai
- #9943 plan prompt @aibrahim-oai
- #8647 fix: handle utf-8 in windows sandbox logs @davidgilbertson
- #9891 Add composer config and shared menu surface helpers @aibrahim-oai
- #9880 chore(deps): bump tracing from 0.1.43 to 0.1.44 in /codex-rs @dependabot
- #9882 chore(deps): bump tokio-test from 0.4.4 to 0.4.5 in /codex-rs @dependabot
- #9883 chore(deps): bump axum from 0.8.4 to 0.8.8 in /codex-rs @dependabot
- #9884 chore(deps): bump globset from 0.4.16 to 0.4.18 in /codex-rs @dependabot
- #9901 fix: remove cli tooltip references to custom prompts @mattridley
- #9823 fix: use `brew upgrade --cask codex` to avoid warnings and ambiguity @JBallin
- #9951 fix: try to fix freezes 2 @jif-oai
- #9955 Reject request_user_input outside Plan/Pair @charley-oai
- #9933 Updated contribution guidelines @etraut-openai
- #9892 Reuse ChatComposer in request_user_input overlay @aibrahim-oai
- #9957 NIT larger buffer @jif-oai
- #9953 feat: load interface metadata from SKILL.json @alexsong-oai
- #9954 Warn users on enabling underdevelopment features @aibrahim-oai
- #9961 Use test_codex more @pakrym-oai
- #9960 fix: handle all web_search actions and in progress invocations @sayan-oai
- #9966 plan prompt v7 @aibrahim-oai
- #9968 Improve plan mode prompt @aibrahim-oai
- #9969 prompt final @aibrahim-oai
- #9475 Fix `resume --last` with `--json` option @etraut-openai
- #9970 prompt @aibrahim-oai
- #9975 plan prompt @aibrahim-oai
- #9974 make cached web_search client-side default @sayan-oai
- #9971 tui: wrapping user input questions @aibrahim-oai
- #9977 make plan prompt less detailed @aibrahim-oai
- #9980 Fixing main and make plan mode reasoning effort medium @aibrahim-oai
- #9759 Fix: cap aggregated exec output consistently @Kbediako
2026-01-27 10:32:31 +00:00
..
2026-01-16 08:56:38 -08:00
2026-01-27 10:32:31 +00:00
2026-01-03 02:19:52 -08:00

Codex CLI (Rust Implementation)

We provide Codex CLI as a standalone, native executable to ensure a zero-dependency install.

Installing Codex

Today, the easiest way to install Codex is via npm:

npm i -g @openai/codex
codex

You can also install via Homebrew (brew install --cask codex) or download a platform-specific release directly from our GitHub Releases.

Documentation quickstart

What's new in the Rust CLI

The Rust implementation is now the maintained Codex CLI and serves as the default experience. It includes a number of features that the legacy TypeScript CLI never supported.

Config

Codex supports a rich set of configuration options. Note that the Rust CLI uses config.toml instead of config.json. See docs/config.md for details.

Model Context Protocol Support

MCP client

Codex CLI functions as an MCP client that allows the Codex CLI and IDE extension to connect to MCP servers on startup. See the configuration documentation for details.

MCP server (experimental)

Codex can be launched as an MCP server by running codex mcp-server. This allows other MCP clients to use Codex as a tool for another agent.

Use the @modelcontextprotocol/inspector to try it out:

npx @modelcontextprotocol/inspector codex mcp-server

Use codex mcp to add/list/get/remove MCP server launchers defined in config.toml, and codex mcp-server to run the MCP server directly.

Notifications

You can enable notifications by configuring a script that is run whenever the agent finishes a turn. The notify documentation includes a detailed example that explains how to get desktop notifications via terminal-notifier on macOS. When Codex detects that it is running under WSL 2 inside Windows Terminal (WT_SESSION is set), the TUI automatically falls back to native Windows toast notifications so approval prompts and completed turns surface even though Windows Terminal does not implement OSC 9.

codex exec to run Codex programmatically/non-interactively

To run Codex non-interactively, run codex exec PROMPT (you can also pass the prompt via stdin) and Codex will work on your task until it decides that it is done and exits. Output is printed to the terminal directly. You can set the RUST_LOG environment variable to see more about what's going on.

Experimenting with the Codex Sandbox

To test to see what happens when a command is run under the sandbox provided by Codex, we provide the following subcommands in Codex CLI:

# macOS
codex sandbox macos [--full-auto] [--log-denials] [COMMAND]...

# Linux
codex sandbox linux [--full-auto] [COMMAND]...

# Windows
codex sandbox windows [--full-auto] [COMMAND]...

# Legacy aliases
codex debug seatbelt [--full-auto] [--log-denials] [COMMAND]...
codex debug landlock [--full-auto] [COMMAND]...

Selecting a sandbox policy via --sandbox

The Rust CLI exposes a dedicated --sandbox (-s) flag that lets you pick the sandbox policy without having to reach for the generic -c/--config option:

# Run Codex with the default, read-only sandbox
codex --sandbox read-only

# Allow the agent to write within the current workspace while still blocking network access
codex --sandbox workspace-write

# Danger! Disable sandboxing entirely (only do this if you are already running in a container or other isolated env)
codex --sandbox danger-full-access

The same setting can be persisted in ~/.codex/config.toml via the top-level sandbox_mode = "MODE" key, e.g. sandbox_mode = "workspace-write".

Code Organization

This folder is the root of a Cargo workspace. It contains quite a bit of experimental code, but here are the key crates:

  • core/ contains the business logic for Codex. Ultimately, we hope this to be a library crate that is generally useful for building other Rust/native applications that use Codex.
  • exec/ "headless" CLI for use in automation.
  • tui/ CLI that launches a fullscreen TUI built with Ratatui.
  • cli/ CLI multitool that provides the aforementioned CLIs via subcommands.