Lightweight coding agent that runs in your terminal
  • Rust 97.2%
  • Python 2.1%
  • Starlark 0.2%
  • TypeScript 0.1%
  • PowerShell 0.1%
Find a file
Celia Chen 5e0d1ef83e
[0.155 hotfix] Restore none as the TUI reasoning summary default (#46467)
New local TUI sessions in 0.155 request detailed reasoning summaries by
default, which causes request rejection on providers that do not support
reasoning summaries. Restore `none` as the default while honoring
explicit `auto`, `concise`, and `detailed` settings and concurrent
delivery when summaries are explicitly enabled.

This focused backport targets `release/0.155`, based on the content
commit for `rust-v0.155.0`. It includes regression coverage for
new-thread settings and the outbound Responses request.

Validation:
- Patch applies cleanly to the 0.155 release source; `git diff --check`
passes.
- All 9 focused reasoning-default and reasoning-status tests passed,
including the outbound Responses request and existing snapshots.
- `just fmt` completed; the hotfix Rust files were unchanged. Unrelated
justfile rewrites from the locally installed formatter were discarded.
- All 4,589 non-ignored TUI tests passed across the rerun and a
follow-up of the remaining 196 tests after a runner disconnection. The
earlier cursor failures were caused by `NO_COLOR=1` / `TERM=dumb`; the
tests pass with normal terminal settings and no code or snapshot
changes.
- Release-build checks passed on Linux, macOS, and Windows.

CI currently reports failures in unchanged release-base files:
-
[Codespell](https://github.com/openai/codex/actions/runs/35380630185/job/105715678757)
flags the existing `OFlags::WRONLY` identifier.
- [Manifest
validation](https://github.com/openai/codex/actions/runs/35380630185/job/105715679235)
finds a stale feature exception for `codex-rs/code-mode/Cargo.toml`.
- [Dependency
audit](https://github.com/openai/codex/actions/runs/35380630185/job/105715679009)
reports RUSTSEC-2026-0285 for the existing `rustls 0.23.36` lockfile
entry.
- [cargo
shear](https://github.com/openai/codex/actions/runs/35380630185/job/105716110806)
reports an existing unlinked file,
`codex-rs/login/src/internal_identity.rs`.

Additional CI failures are also outside the changed TUI files: an unused
`body_json` import in `core/tests/suite/openai_file_mcp.rs` (Bazel
Clippy), a format-driver expectation in the Python SDK tests, and a
transient `Text file busy` error while spawning a code-mode test helper
(musl). These paths are unchanged from the release base.
History 2026-09-18 12:02:35 -07:00
.codex Format Python scripts across the repository (#42109) 2026-09-01 17:47:29 +00:00
.github Publish opt-in provisioned macOS packages with Rust releases (#45345) 2026-09-14 14:06:47 -07:00
.vscode Recommend Bazel VSCode extension. (#25161) 2026-05-29 15:24:41 -07:00
bazel Isolate Bazel build commit metadata from Rust compilation inputs (#43304) 2026-09-06 23:49:46 +00:00
codex-cli Fix punctuation in npm packaging documentation (#42188) 2026-09-02 02:41:01 +00:00
codex-rs [0.155 hotfix] Restore none as the TUI reasoning summary default (#46467) 2026-09-18 12:02:35 -07:00
docs Clarify the external contribution policy (#39089) 2026-08-17 22:37:14 +00:00
patches Stage Linux-only voice alpha rehearsal 2026-09-10 16:29:45 -07:00
scripts Add opt-in provisioned macOS CLI release candidates (#44307) 2026-09-09 21:28:49 +00:00
sdk Add app-server APIs for stored thread attachments (#44564) 2026-09-10 15:52:09 +00:00
third_party Stage Linux-only voice alpha rehearsal 2026-09-10 16:29:45 -07:00
tools Remove the deprecated codex mcp-server command (#42993) 2026-09-05 12:17:32 +00:00
.bazelignore [bazel] Improve runfiles handling (#10098) 2026-01-29 00:15:44 +00:00
.bazelrc Add Bazel preparation for native voice runtimes (#43114) 2026-09-05 22:27:22 +00:00
.bazelversion [bazel] Upgrade to bazel9 (#9576) 2026-01-21 13:25:36 +00:00
.codespellignore Allow numer in codespell checks (#34516) 2026-07-21 10:57:56 +00:00
.codespellrc Remove js_repl feature (#19410) 2026-04-24 17:49:29 -07:00
.gitattributes Add Windows voice runtime preparation (#42209) 2026-09-02 05:23:24 +00:00
.gitignore ci: fail jobs that dirty the worktree (#29720) 2026-06-24 11:06:35 -07:00
.markdownlint-cli2.yaml fix(tui): document paste-burst state machine (#9020) 2026-01-13 11:48:31 -08:00
.npmrc chore: migrate to pnpm for improved monorepo management (#287) 2025-04-18 16:25:15 -07:00
.prettierignore [apply-patch] Clean up apply-patch tool definitions (#2539) 2025-08-21 20:07:41 -07:00
.prettierrc.toml Initial commit 2025-04-16 12:56:08 -04:00
.worktreeinclude chore: use .worktreeinclude for user Bazel config (#31271) 2026-07-06 16:12:07 -07:00
AGENTS.md Remove the app-server docs update requirement from AGENTS.md (#43423) 2026-09-07 10:21:32 +00:00
announcement_tip.toml Add CLI update announcement (#17942) 2026-04-15 11:39:06 -07:00
BUILD.bazel Upgrade Bazel Rust and LLVM dependencies (#34781) 2026-07-22 16:18:08 +00:00
CHANGELOG.md Documentation improvement: add missing period (#3754) 2025-10-30 13:01:33 -07:00
defs.bzl Isolate Bazel build commit metadata from Rust compilation inputs (#43304) 2026-09-06 23:49:46 +00:00
flake.lock fix(nix): update flake for newer Rust toolchain requirements (#10302) 2026-01-31 11:34:53 -08:00
flake.nix fix(nix): use correct version from Cargo.toml in flake build (#11770) 2026-02-13 12:19:25 -08:00
justfile Generate Python SDK types from repository app-server schemas (#44032) 2026-09-09 03:27:31 +00:00
LICENSE Initial commit 2025-04-16 12:56:08 -04:00
MODULE.bazel Stage Linux-only voice alpha rehearsal 2026-09-10 16:29:45 -07:00
MODULE.bazel.lock Add configurable credential providers to the network proxy (#44056) 2026-09-09 04:59:01 +00:00
NOTICE Remove js_repl feature (#19410) 2026-04-24 17:49:29 -07:00
package.json Upgrade pnpm to 10.34.5 (#39967) 2026-08-21 16:45:05 +00:00
pnpm-lock.yaml Upgrade pnpm to 10.34.5 (#39967) 2026-08-21 16:45:05 +00:00
pnpm-workspace.yaml Upgrade pnpm to 10.34.5 (#39967) 2026-08-21 16:45:05 +00:00
rbe.bzl build: run buildifier from just fmt (#28125) 2026-06-13 21:43:39 -07:00
README.md Prefer releases.openai.com in standalone installers (#34910) 2026-07-23 09:21:31 +00:00
ruff.toml Format Python scripts across the repository (#42109) 2026-09-01 17:47:29 +00:00
SECURITY.md [docs] Restore SECURITY.md update from PR 17848 (#18004) 2026-04-15 15:09:39 -07:00
workspace_root_test_launcher.bat.tpl code-mode: move to hosted mode by default (#31500) 2026-07-08 11:06:58 -07:00
workspace_root_test_launcher.sh.tpl ci: cross-compile Windows Bazel tests (#20585) 2026-05-01 15:55:28 -07:00

Codex CLI is a coding agent from OpenAI that runs locally on your computer.

Codex CLI splash


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

Run the following on Mac or Linux to install Codex CLI:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

Run the following on Windows to install Codex CLI:

powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

The standalone installers download from https://releases.openai.com/codex by default and fall back to GitHub Releases if a metadata or asset download is unavailable. To force GitHub Releases, set CODEX_INSTALLER_USE_RELEASES_OPENAI_COM to false (0 and no are also accepted):

curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_INSTALLER_USE_RELEASES_OPENAI_COM=false sh
$env:CODEX_INSTALLER_USE_RELEASES_OPENAI_COM='false'; irm https://chatgpt.com/codex/install.ps1 | iex

Codex CLI can also be installed via the following package managers:

# 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
  • Linux
    • x86_64: codex-x86_64-unknown-linux-musl.tar.gz
    • arm64: codex-aarch64-unknown-linux-musl.tar.gz

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, Business, 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.