Codex CLI Guide 2026: Setup, Sandbox, AGENTS.md & MCP
# Complete Codex CLI reference: install and auth, models and pricing, sandbox and approval modes, AGENTS.md, MCP, skills, and cloud tasks. Updated for v0.172.0.
Complete Codex CLI reference: install and auth, models and pricing, sandbox and approval modes, AGENTS.md, MCP, skills, and cloud tasks. Updated for v0.172.0.
TL;DR: Codex is a multi-surface coding agent: it reads your codebase, runs commands in an OS-level sandbox, patches files, and delegates tasks to the cloud. Master five systems –
config.toml, the sandbox/approval model, AGENTS.md, MCP, and skills – and it becomes a force multiplier. Which model: the CLI’s bundled default is GPT-6.2 Sol (gpt-6.2-sol, since v0.169.1), which OpenAI’s models docs recommend for everyday coding, writing, and work across several sources. The same docs point demanding work across code, apps, or research at GPT-6.2 Astra, writing, visual understanding, and computer use at GPT-6.1 Terra, and focused, repeatable tasks at GPT-6 Luna. Both GPT-6.2 models launched on November 17, 2026 and stay off in Enterprise and Edu workspaces until an administrator enables them. GPT-6.1 Sol and GPT-6 Astra remain in the picker as previous-generation models and GPT-6 Sol and the GPT-5.6 models as legacy ones; GPT-5.5 retired from Codex for ChatGPT sign-in on October 14, 2026 (the API and API-key sessions keep it).202258259260 New here? Jump straight to Install and Quick Start. Tracking releases? The latest stable is v0.172.0 (November 24, 2026). The seven releases since v0.167.1 made GPT-6.2 Sol the default model (v0.169.1), turned the TUI workspace on by default (v0.171.0), deprecated themulti_agentflag (v0.168.0), and made optional stdio MCP servers start on their first tool call (v0.172.0); Release Highlights opens with a current-state summary (what is on by default, what is still experimental) and then covers each version, and the Changelog lists every guide update.256257258
Codex operates as a multi-surface coding agent, not a chatbot that writes code. The CLI reads your codebase, executes commands in a sandbox, patches files, connects to external services via MCP, and delegates long-running tasks to the cloud. It runs locally but thinks globally; the same intelligence powers five distinct surfaces depending on how you work, including the browser extension (Chrome, Edge, Brave, Opera, and Vivaldi) that runs Codex in your browser without taking it over.90136
The difference between casual and effective Codex usage comes down to five core systems. Master these and Codex becomes a force multiplier:
- Configuration system: controls behavior via
config.toml - Sandbox & approval model: gates what Codex can do
- AGENTS.md: defines project-level operating contracts
- MCP protocol: extends capabilities to external services
- Skills system: packages reusable domain expertise
I spent months running Codex alongside Claude Code across production codebases, CI/CD pipelines, and team workflows. This guide distills that experience into the complete reference I wish existed when I started. Every feature includes actual syntax, real configuration examples, and the edge cases that trip up experienced users.
Key Takeaways
- Five surfaces, one brain: CLI, desktop app, IDE extension, cloud tasks, and the browser extension (Chrome, Edge, Brave, Opera, and Vivaldi) all share the same model family, so pick the surface that fits your workflow.90
- OS-level sandboxing: Codex enforces filesystem and network restrictions with operating-system sandboxes (Seatbelt on macOS; bubblewrap + seccomp on Linux; MXC,
elevatedorunelevatedon Windows), not inside containers. - AGENTS.md is cross-tool: Your project instructions work in Codex, Cursor, Copilot, Amp, Jules, Gemini CLI, Windsurf, Aider, Zed, and other tools, and the format’s site counts more than 60,000 open source projects using it.9 Write once, use everywhere.
- Profiles save context-switching overhead: Define named config presets (
fast,careful,auto) and switch between them with--profile. - Context management matters: the model catalog bundled with the CLI gives GPT-6.2 Sol, GPT-6.1 Sol, and GPT-6.1 Terra a 500K context window and GPT-6.2 Astra, GPT-6 Astra, GPT-6 Sol, GPT-6 Luna, and the GPT-5.6 family 272K; OpenAI’s models docs give the same defaults for the two GPT-6.2 models (the API lists both at 1.05M). Use
/compact, focused prompts, and@filereferences to manage token budgets proactively.117258259261
How to Use This Guide
This is a reference of more than 4,000 lines; start where your experience level fits:
| Experience | Start Here | Then Explore |
|---|---|---|
| New to Codex | Installation → Quick Start → Mental Model | Configuration, Sandbox |
| Daily user | AGENTS.md, Skills, Plan Mode | MCP, Hooks |
| Team lead / enterprise | Enterprise Deployment → Best Practices | Decision Frameworks, Workflow Recipes |
| Migrating from another tool | Migration Guide | Decision Frameworks |
The Quick Reference Card at the end provides a scannable summary of all major commands.
Release Highlights: What Changed Recently
The version-by-version record, newest first, for readers tracking Codex’s release train. New here? Skip to Quick Start; nothing below is required to get productive. Source detail (compares, commit lists, docs quotes) lives in the footnotes.
Current State
Codex CLI as of November 25, 2026
- Stable: v0.172.0 (November 24, npm
latest), 88 commits past v0.171.0 and cut from the out-of-band 0.172.0-alpha.2.1 plus one release commit: thread links open saved conversations and nested agents,Tabcompletes slash-command arguments, optional stdio MCP servers with cached tool lists start on their first tool call, and a single connected app tool can have its own approval reviewer. Before it: v0.171.0 (November 20; the TUI workspace on by default,/rc,codex exec --remote, undo and redo in the composer), v0.170.0 (November 18; WebRTC negotiation for voice calls and fixes), v0.169.1 (November 17; GPT-6.2 Sol and GPT-6.2 Astra in the catalogs, with Sol the default), v0.169.0 and v0.168.0 (both November 13; custom model providers from the terminal,codex exec --trust, the workspace as an opt-in,multi_agentdeprecated), and v0.167.2 (November 11; incremental tool updates on Vertex AI).- Alpha: On November 25 npm
alphawas 0.174.0-alpha.6 (published 19:45 UTC). The 0.173 line has run alpha.1 (November 20) to alpha.5 (November 24) with no stable yet. Each line’s first stable from v0.169.0 on (v0.169.0, v0.170.0, v0.171.0, v0.172.0) was cut from an out-of-band alpha plus one release commit (0.169.0-alpha.11.1, 0.170.0-alpha.4.2, 0.171.0-alpha.13.1, 0.172.0-alpha.2.1), and v0.168.0 was cut on November 13 from 0.168.0-alpha.7, a build dated November 5.- Default model since v0.169.1: GPT-6.2 Sol, replacing GPT-6.1 Sol, in the bundled, Amazon Bedrock, and Vertex AI catalogs. Set
modelinconfig.tomlto keep another. The v0.171.0 release notes list the change, but the catalog file is byte-identical from v0.169.1 through v0.172.0. The same commit raised GPT-6.1 Sol’s catalog context from 272K to 500K and relabeled GPT-6.1 Sol and GPT-6 Astra “Previous generation” and GPT-6 Sol and the GPT-5.6 models “Legacy.”- On by default since v0.171.0 and v0.172.0: the TUI workspace (
tui_workspace, stable;tui_workspace = falseunder[features]turns it off) and, from v0.172.0, lazy startup for optional stdio MCP servers whose tool list is cached (mcp_lazy_stdio_startup, stable;mcp_lazy_stdio_startup = falseunder[features]starts them with the thread again).- On by default since v0.167.2 through v0.169.1: incremental tool updates on Google Cloud Vertex AI (
incremental_tools_legacy_gcp, v0.167.2) and on Amazon Bedrock (incremental_tools_legacy, v0.169.1); set either tofalseunder[features]to opt out. Also stable and on:retain_client_tool_outputs,unified_image_budget, andguardian_include_additional_context(v0.168.0), thenuntrusted_as_tool_outputandcode_mode_host_output_truncation(v0.169.0). Deprecated in v0.168.0:multi_agent(enabled = falseunder[agents]is how to turn subagent tools off). Removed:plugin_discovery_prefetch(v0.169.0) andcode_mode_host_grpc(v0.172.0, where Code Mode uses gRPC for every host connection).- On by default since v0.167.0: deferred tool world state (
deferred_tool_world_state, stable): deferred tool namespaces are listed in the developer<tools>context instead of thetool_searchdescription (deferred_tool_world_state = falseunder[features]puts them back). Stable but off, so opt in under[features]:gcp_setup_wizard(Google Cloud Vertex AI setup during sign-in),gateway_setup_wizard(custom gateway onboarding during sign-in, v0.169.0), andsuppress_model_change_announcements. Experimental and off:respect_system_proxy, the “System proxy” entry in/experimental, andtui_extensions_statusline, the “Custom status line” entry (v0.171.0).- On by default since v0.165.0 and v0.166.0: reasoning-effort changes during a conversation (
reasoning_effort_override, stable;reasoning_effort_override = falseunder[features]turns them off), memory v2 for profiles that have no v1 memories yet (memories.version = "v1"keeps v1), and, from v0.166.0,prediction_preserve_parent_tools(stable).- Earlier default models: GPT-6.1 Sol from v0.159.1 until v0.169.1 (it replaced GPT-6-Astra, including on Amazon Bedrock). The bundled catalog gained GPT-6.1 Terra in v0.165.0 and was byte-identical from v0.165.0 through v0.169.0.
- On by default since v0.164.0: the Amazon Bedrock setup wizard (
bedrock_setup_wizard, stable;bedrock_setup_wizard = falseunder[features]turns it off), incremental tool updates (incremental_tools, stable), and MCP OAuth refresh coordination (mcp_oauth_refresh_coordination, stable). Managed worktrees and realtime conversation are permanent: their flags are marked removed with the features left on.- On by default since v0.163.0: Daybreak (
cli_daybreak, now stable;cli_daybreak = falseunder[features]hides the controls) and code-mode interruption (code_mode_interrupt, stable), so a follow-up also stops a running Code Mode cell; API-key sessions get Cyber access programs by default (api_key_cyber_access_programs). Removed:shell_zsh_forkandunified_exec_zsh_fork, ignored with a migration notice.- On by default since v0.162.0:
instant_interrupt, so new input preempts a model response (instant_interrupt = falseunder[features]turns it off); the flag stays marked under development.- On by default since v0.161.0: API-key model discovery (
api_key_model_discovery = falseunder[features]turns it off).- On by default since v0.158.0: approval for input to elevated terminals (
write_stdin_approval = falseunder[features]turns it off), plus copy-on-select and right-click paste in the fullscreen TUI (copy_on_select = "never",right_click_paste = "off"under[tui]). Guardian thread context is always on;thread_contextis ignored.- On by default since v0.157.0: the fullscreen transcript (
fullscreen_transcript = falseunder[tui]) and background-server autostart (daemon_auto_start = falseunder[features], or--no-daemon).- On by default since v0.156.0:
/voice, managed worktrees, Guardian parent-compaction reuse.- Opt-in or experimental: the
codex cloudcommand, code mode and its ranked tool search (code_mode_tool_search, v0.162.0), Guardian history retrieval (guardian_conversation_history_tools, v0.160.0), and the flags that are still under development and off at v0.172.0. From v0.163.0 and v0.164.0:async_compaction,credential_masking,output_token_replay,subagent_default_context_limits,guardian_trust_orchestrator_connectors,app_server_websocket_compression,executor_capability_discovery_v2,mcp_tool_list_changed,multi_env_copy_file,runtime_agent_instances,subagent_thread_environments, andwake_on_agent_messages. From v0.165.0 through v0.167.0:tui_multi_backend,critical_path_timing,mcp_connection_sharing,simplified_selection_hints,omit_skill_descriptions,skill_catalog_deltas,guardian_recorded_items,guardian_native_multi_agent_history,guardianv3,external_agent_memory_import,apps_early_resource_discovery,incremental_exec_tools, andinterrupt_on_cancel. New and off from v0.168.0 through v0.172.0:image_generation_animation(animated GIF output),multi_environment_mcp,cli_resume_account_check,agent_message_board_mcp, andguardian_denial_reconsideration, among the 24 flags added since v0.167.1. Experimental context management is not currently available.- Models: GPT-6.2 Sol (the bundled default) for everyday coding and writing, GPT-6.2 Astra for demanding work, GPT-6.1 Terra for writing, visual understanding, and computer use, GPT-6 Luna for repeatable tasks. GPT-6 Sol and Luna start on Fast in the TUI; the GPT-6.2 and GPT-6.1 models start at Standard. Fast draws included usage at 2x on the GPT-6.2 models and 2.5x on the others. Ultrafast with GPT-6.2 Sol is open to Pro $200; Pro $500 and eligible Enterprise and Edu workspaces can use it with GPT-6.2 Sol, GPT-6.2 Astra, GPT-6 Astra, and GPT-6.1 Sol. GPT-5.5 retired from Codex for ChatGPT sign-in on October 14, 2026 (API-key sessions keep it), and GPT-5.3-Codex-Spark retired on September 14, 2026.
- Pinning:
npm install -g @openai/codex@0.172.0, thencodex --version.177179187188189190194195196197198199200201202256257258259260
v0.167.2 to v0.172.0 (November 11-24, 2026)
Seven stables in two weeks, and a new default model. v0.172.0 (November 24, 00:03 UTC; npm latest at 00:09 UTC) is the current stable, 88 commits past v0.171.0. The change that matters most arrived quietly: v0.169.1 (November 17), whose release notes read “No verified release highlights available,” added GPT-6.2 Sol and GPT-6.2 Astra to the bundled, Amazon Bedrock, and Vertex AI catalogs and made GPT-6.2 Sol the default (#62106). The v0.171.0 notes list that change three days later, but the catalog file is byte-identical from v0.169.1 through v0.172.0. See Which Model Should I Choose? for the models and What Does Codex Cost? for the new rates. The feature list grew from 202 flags at v0.167.1 to 226 at v0.172.0; the ones that changed a default are named below.256257258
v0.172.0 (November 24). Thread links in search results and transcripts open saved conversations and nested agents (#62332). Tab completes arguments for supported slash commands, so /mcp lo becomes /mcp login (#62343), and Shift+Up and Shift+Down jump between task groups in the agent command center (#62200). Optional stdio MCP servers whose tool list is cached now start on their first tool call instead of when the thread starts (mcp_lazy_stdio_startup, stable and on; mcp_lazy_stdio_startup = false under [features] restores startup with the thread; #62366). A single connected app tool can have its own approval reviewer: apps.<id>.tools.<tool>.approvals_reviewer takes user or auto_review (#62360). codex exec resume restores the saved sandbox permissions, working directory, and workspace roots unless you override them (#62194); provider errors surface as soon as they arrive in a response stream and name the API spend limit that was reached (#62329, #62356); and interrupting a parent turn keeps queued replies from child agents for the next turn (#62348). Code Mode uses gRPC for every host connection, and the code_mode_host_grpc flag is removed (#62476).256257
v0.171.0 (November 20). 341 commits past v0.170.0. The TUI workspace is on by default (tui_workspace, now stable): searchable document previews, image previews, and subagent transcripts open alongside the main conversation (#61352, #61888, #61889, #61919, #62157). Set tui_workspace = false under [features] to turn it off. /rc (also /remote) manages remote control for the local background server and shows device pairing codes from inside the TUI (#62121). codex exec --remote <ADDR> starts or resumes a non-interactive session on an existing app server, with --remote-auth-token-env for a bearer token (#61707). The non-Vim composer gains configurable undo and redo shortcuts that also restore attachments and large pastes (#61954). With the experimental tui_extensions_statusline flag on (“Custom status line” in /experimental), /statusline adds custom MCP status line selection and authoring (#61979, #61988, #62037). Fixes keep drafts, queued follow-ups, and interrupted input with their original threads when you switch or resume sessions (#61216), keep permission profiles intact across working-directory changes (#61195), and repair enterprise MCP sign-in for identity providers that issue ID tokens without refresh tokens (#62129).256257
v0.169.1 and v0.170.0 (November 17 and 18). v0.169.1 is four commits on v0.169.0: the GPT-6.2 catalog change, incremental tool updates on by default for Amazon Bedrock (incremental_tools_legacy, stable and on; set it to false under [features] to opt out; #61426), a Bedrock Mantle replay fix (#62095), and the release commit. v0.170.0, 52 commits past v0.169.0, adds WebRTC negotiation for realtime voice calls in the TUI (#61172), automatically refreshed authentication headers for OpenTelemetry HTTP exporters (#61028), and experimental support for identically named MCP servers across environments (#60905; the multi_environment_mcp flag arrives off and under development in the same release). Its fixes cover oversized WebSocket requests, which now fall back to HTTP without extra retries (#60840, #60841), MCP OAuth credential races during cancellation, login, and logout (#60849, #60981), and permission updates and child threads that lost existing sandbox restrictions (#60936, #61134).256257
v0.168.0 and v0.169.0 (November 13). Two stables under five hours apart. v0.168.0 (03:54 UTC) was cut from 0.168.0-alpha.7, a build dated November 5, so it lacks the Amazon Bedrock and Vertex AI incremental-tool flags that v0.167.1 and v0.167.2 shipped; v0.169.0 (08:37 UTC), 245 commits further on, has them. New in v0.168.0: Sessions → Model providers lists providers and sets the default for new chats (#59541, #59722); tui.notification_method accepts "osc777" (#59256; the config reference page still types the key as auto | osc9 | bel); recordings can be attached with an audio-capable model (#59234, #59268); and the workspace arrives as an opt-in (tui_workspace = true), showing a side conversation beside the main chat with leader z to zoom the focused pane (#58992, #59527, #59595). multi_agent is deprecated: setting it in a user or project config draws a startup warning, and enabled = false under [agents] is how to turn subagent tools off (#59479); the config reference page still calls the flag “stable; on by default”. New in v0.169.0: add or edit custom model providers from the terminal (#59779, #60009), search older tasks in the agent command center (#60286), “Collapse turn details” in the fullscreen transcript (#60554 to #60557), and Ctrl+S in the report editor to save a diagnostic ZIP locally (#60542). codex exec keeps project configuration and MCP servers disabled in an untrusted directory, even with --sandbox workspace-write; pass --trust to codex exec or codex review to save project trust (#60041).256257
v0.167.2 (November 11). Three commits on v0.167.1: Codex sends tool updates incrementally by default on Google Cloud Vertex AI (incremental_tools_legacy_gcp, stable and on; incremental_tools_legacy_gcp = false under [features] opts out; #60617, #60848).256257
What to do: upgrade to v0.172.0, then check the model in /status. With no model set you are now on GPT-6.2 Sol, at Standard speed, low reasoning, and a 500K context window; to stay on GPT-6.1 Sol, set model = "gpt-6.1-sol". In an Enterprise or Edu workspace the GPT-6.2 models are off until an administrator enables them, so pin a model your workspace has. If the workspace panes get in your way, set tui_workspace = false under [features]. If a config still sets multi_agent, delete the line, or use enabled = false under [agents] when the goal is to turn subagent tools off. If an MCP server has to be running before its first tool call, set mcp_lazy_stdio_startup = false. And if an automation runs codex exec in a directory Codex does not trust yet, add --trust or expect project config and MCP servers to stay off.256257258260
v0.167.0 and v0.167.1 (November 6 and 10, 2026)
One stable and a three-commit patch. v0.167.0 was published on November 6 (01:40 UTC; npm latest at 01:46 UTC), cut from the out-of-band 0.167.0-alpha.3.2 plus one release commit; the in-line 0.167.0-alpha.5 (November 4) carried 132 commits the stable does not have, the 0.163 pattern again. The compare from v0.166.0 counts 123 commits. One flag flips on and goes stable: deferred_tool_world_state, which lists deferred tool namespaces in the developer <tools> context instead of the tool_search description (deferred_tool_world_state = false under [features] puts them back). Two flags arrive stable but off, gcp_setup_wizard and suppress_model_change_announcements; respect_system_proxy moves from under development to experimental, still off; and five arrive off and under development (apps_early_resource_discovery, code_mode_host_output_truncation, incremental_exec_tools, interrupt_on_cancel, tui_extensions_statusline). v0.167.1 followed on November 10 (21:32 UTC; npm 21:39 UTC) with three commits and release notes that are only a compare link. The bundled model catalog and the TUI’s slash command source file are byte-identical to v0.166.0’s.200201
Agents, sessions, and the composer (v0.167.0). codex agents --no-daemon opens the agent command center in an embedded session, without the shared background server, and both the command center and the session picker mark unread results (#58238, #58239, #58263, #58264). The session picker switches between connected backends and keeps your draft when you switch (#58280, #58457). On supported terminals, local image attachments preview while you compose, and viewed local images open from clickable transcript paths (#58261, #58446). Patch details expand in the transcript while an approval prompt is open (#58281). The CLI reference had not caught up on November 10: it still said codex agents does not support --no-daemon.200201
Sign-in and networking (v0.167.0). Onboarding groups API-key and cloud-provider options under “Sign in another way.” The Google Cloud Vertex AI setup wizard is opt-in: with gcp_setup_wizard = true under [features], that screen offers setup with Application Default Credentials or a credential file (#57857, #58427); without the flag, configure the gcp provider by hand as shown in Custom Model Providers. /experimental gains a “System proxy” entry that makes Codex requests use the macOS or Windows system proxy settings (respect_system_proxy, off by default; #58157). Provider OAuth sign-in waits ten minutes before timing out (#57859), and network approval prompts close when their requests end, with concurrent requests to the same endpoint prompting one at a time (#58350, #58351).200201
Fixes and housekeeping. Saved chats stay visible after you switch model providers, and a chat that cannot resume still shows its transcript and offers an editable prompt to continue in a new chat (#58202). Ctrl+L clears the terminal display while keeping earlier messages available through Ctrl+T (#58266); deleting text that exposes a leading ! keeps an ordinary draft in chat mode (#58412); long realtime V3 conversations save completed speech to chat history (#58221); and automatic compaction accounts for retained output from failed responses and responses with missing token usage (#58404). PreToolUse hooks run before direct Guardian review policy checks (#58368), MCP approval metadata includes tool names and annotation hints (#58161), and the default models for memory extraction and consolidation were updated (#58091). Linux musl builds use fewer allocator arenas, which cuts idle memory after conversations unload (#58399). v0.167.1 carries two changes besides its release commit: incremental_tools_legacy, an opt-in flag for incremental tool declarations on regular Responses requests (#59832), and a follow-up that limits it to the amazon-bedrock and amazon-bedrock-runtime providers (#60040). It shipped off in v0.167.1 and is on by default since v0.169.1.200201257
What to do: upgrade. Nothing changes a default you would notice. Deferred tool namespaces now sit in the developer context (deferred_tool_world_state = false under [features] returns them to the tool_search description); if you are setting up Vertex AI, gcp_setup_wizard = true turns the wizard on; and if you work behind a macOS or Windows system proxy, try “System proxy” in /experimental.200201
v0.165.0 and v0.166.0 (October 27 and 29, 2026)
Two stables in three days. v0.165.0 was published on October 27 (20:09 UTC; npm latest at 20:14 UTC), cut from 0.165.0-alpha.1 plus four commits, 71 commits past v0.164.0; the out-of-band 0.165.0-alpha.1.1 and 1.2 (October 27) ran alongside. v0.166.0 followed on October 29 (19:47 UTC; npm 19:56 UTC), cut from 0.166.0-alpha.6 plus one release commit after a line that ran alpha.1 (October 27) to alpha.6 (October 29) with 0.166.0-alpha.5.1 out of band; the compare from v0.165.0 counts 265 commits. One flag flips on and goes stable in the window: reasoning_effort_override, so reasoning effort can change during a conversation on supported models (reasoning_effort_override = false under [features] restores the old behavior). Two new flags arrive stable and on, prediction_preserve_parent_tools (inherited tool declarations survive in MCP-disabled prediction forks) and plugin_discovery_prefetch (removed again in v0.169.0); ten arrive off and under development (tui_multi_backend, untrusted_as_tool_output, critical_path_timing, mcp_connection_sharing, simplified_selection_hints, omit_skill_descriptions, skill_catalog_deltas, guardian_recorded_items, guardian_native_multi_agent_history, guardianv3); and code_mode_tool_description_first is removed. The TUI’s built-in slash command list is unchanged at 65 entries, plus /fast where the model catalog offers a Fast tier.198199
Models and providers (v0.165.0, v0.166.0). GPT-6.1 Terra enters the bundled catalog in v0.165.0 (#57337) and the Vertex AI and Amazon Bedrock catalogs in v0.166.0 (#57293): gpt-6.1-terra, sixth in the catalog’s order (after GPT-5.6 Sol), 500K context in the catalog (872K maximum) against 1.05M on the API, default reasoning low, image input, and code mode only. OpenAI’s October 26 note makes it available in ChatGPT Work and Codex on Plus, Pro, Business, Enterprise, and Edu plans as “a fast, efficient model for professional work that combines strong image understanding with precise computer use”; see Which Model Should I Choose? for prices. A built-in Google Cloud Vertex AI provider ships in v0.165.0: model_provider = "gcp" sends requests to Vertex AI with Google Application Default Credentials, and the provider’s project_id, location (defaults: GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, then global), and credential_file (overrides GOOGLE_APPLICATION_CREDENTIALS for the auth command) fill in what the environment does not (#56265, #56560, #57188); see Custom Model Providers. A provider that reports a model as not found is no longer retried, and its error message is kept (#56445).198199
Memory v2 (v0.165.0). A fresh profile, one with no ~/.codex/memories/ directory yet, now starts on memory v2, whose artifacts live under ~/.codex/memories_v2/; a profile that already has v1 memories keeps v1, an explicit memories.version (v1 or v2) wins either way, and memories.dual_write = false opts a fresh profile out of the switch. Importing external-agent memories into v2 is behind external_agent_memory_import, off and under development at both tags. See Memory System.198199
New in the TUI and CLI. Transcript selection is keyboard-driven, with word, line, and page motions, integrated search, and configurable shortcuts (#57221 to #57224); Markdown renders consistently in async questions, choices, answers, and transcript replies (#57259, #57292); a safety block explains itself and offers selectable safer follow-up prompts (#57363, #57365); and the session picker gains a repository filter while the agent command center groups by directory, for sessions across linked worktrees (#56308). codex queue --resume resumes an unloaded thread on the local daemon or the selected --remote server after queueing a message, warning rather than failing when the resume does not work (#57232). codex doctor --network-only runs only the configuration, connectivity, and WebSocket diagnostics (#57606). The app-server API gains experimental attached thread forks (#56351). Fresh TUI sessions honor the server’s default approval reviewer when nothing overrides it, TUI preferences stay editable when execution settings are invalid, a remote MCP tool request is cancelled when its local response future is dropped, and queued agent messages no longer restart work after an interrupt or a switch to Plan mode (#56090, #56091, #56132, #56330).198199
Fixes and housekeeping (v0.166.0). Acknowledged approval and permission settings survive resume and fork, local image attachments survive a killed composer, spawned descendant threads come back when their parent is unarchived, app-server thread startup and shutdown races are fixed with completed runtimes released promptly, TUI reconnection recovers better including offline /quit and /exit, and reasoning-token accounting survives resume and fork so compaction no longer fires early (#57227, #57502, #57635, #57787, #57788, #57820, #57839). Standalone release cleanup on macOS works when an installation is in use or a path has non-ASCII characters (#57503). v0.165.0 closed a marketplace URL validation gap that could let Git connect to a different host than the one checked against the allowed patterns (#56263). The standalone executor now ships in the canonical CLI and app-server packages, Bazel builds V8 from source, and builds standardize on Node.js 24.22.1 and Rust 1.95.0 (#57837, #57164, #57168, #57373).198
What to do: upgrade. Nothing changes a default you would notice unless you relied on the reasoning effort staying fixed for a conversation (reasoning_effort_override = false under [features]) or you start a new profile, which now writes memory v2. GPT-6.1 Terra needs no configuration; pick it in /model or run codex -m gpt-6.1-terra.198
v0.164.0 (October 23, 2026)
The 0.164 line ships stable from its own alpha. v0.164.0 was published on October 23 (04:48 UTC; npm latest at 04:52 UTC), cut from 0.164.0-alpha.11 plus one release commit; alpha.12 (October 22) ran nine commits ahead of that cut, and the out-of-band 0.164.0-alpha.11.1 (October 23, 01:58 UTC) added four commits on the alpha.11 base. The compare from v0.163.0 counts 330 commits. Three flags flip on and are marked stable: bedrock_setup_wizard (the Amazon Bedrock setup wizard, with API key entry grouped alongside the other AWS sign-in methods when credentials are detected), incremental_tools, and mcp_oauth_refresh_coordination. The worktrees and realtime_conversation flags are marked removed with their features left on, so managed worktrees and realtime conversation are no longer switchable; stable_environment_tools and transcript_v2 are removed too. Seven under-development flags are new and off. The bundled model catalog is the blob v0.162.1 shipped.196197
New in the TUI. /presets saves reusable prompts and slash commands in ten numbered slots with a keyboard menu; a preset can be made from composer text or from the current model, reasoning effort, and speed, and presets persist under tui.presets in the active user configuration (#54380, #54381). /model [model] --reasoning <level> --speed <tier> applies model, reasoning, and speed to the current session without changing saved defaults, with space-separated or = flag values; omitting the model applies the settings to the current one, and a bare /model still opens the picker (#54378). /permissions <profile-id> selects a built-in or custom permission profile inline, such as /permissions :read-only, with :ask-for-approval and :approve-for-me as aliases (#54383). On terminals that support Kitty or Sixel graphics, the fullscreen transcript previews viewed and generated images as bounded thumbnails; remote workspaces, unsupported terminals, and oversized images keep the text-only entry (#54216).196
Connections and credentials. Directly configured MCP servers can authenticate with account-scoped enterprise grants stored in the keyring or a dedicated sign-in, including OAuth clients that require secrets; the enterprise-managed authorization extension is negotiated with the 2026-07-28 protocol and the authorization is revoked when the account owner changes or an enterprise login replaces the grant (#55334, #55859, #56001). Credential masking reaches supported remote Bash commands and zsh snapshot sessions, including credentials from custom providers: the command sees placeholders and the executor-local proxy injects the real credentials for matching destinations, falling back to unmasked execution with a warning where masking is unavailable; the credential_masking flag still ships off at the tag (#54309, #54432, #56049).196197
Fixes and housekeeping. A failed compaction no longer leaves partial summaries in the conversation history, and a background compaction failure falls back without panicking (#53932, #55581). Resuming a session finds compressed histories and restores the saved thread settings instead of replacing them with global defaults (#54008, #55923). On Windows, HTTPS and WebSocket connections answer proxy authentication challenges with the signed-in user’s Negotiate or NTLM credentials (#55994, #56000). -c or --config given at several subcommand levels keeps every override (#56022); queued prompts wait for a pending permission selection to resolve (#55682); and the sandbox checks case-variant metadata paths on macOS and replaceable symlinks used to locate executables (#54273, #55384). Disk use drops: unused installations are pruned (the current and previous daemon selections are kept), abandoned marketplace checkouts are cleaned, and daemon logs are bounded (#53827, #55149, #55689, #55690, #55856); the embedded JavaScript runtime gains safety checks for optimized Array.sort (#54519).196
What to do: upgrade. Nothing changes a default you would notice unless you onboard on Bedrock, where the wizard now runs by itself (bedrock_setup_wizard = false under [features] turns it off); if you had set worktrees or realtime_conversation under [features], the keys are now ignored.196197
v0.163.0 (October 15, 2026)
The 0.163 line ships stable, from the out-of-band branch. v0.163.0 was published on October 15 (21:30 UTC; npm latest at 21:37 UTC), cut from 0.163.0-alpha.10.2, an out-of-band build on the alpha.10 base, plus one release commit; the in-line alpha.11 (October 14) carried 23 commits the stable does not have, the 0.158 pattern again. The compare from v0.162.1 counts 232 commits. Two feature flags flip on and both are marked stable: cli_daybreak (Daybreak controls, the /daybreak toggle, and automatic Cyber access-program routing for eligible OpenAI accounts; codex exec can select it with an OpenAI API key when the server offers access) and code_mode_interrupt (interrupting a turn also stops active Code Mode cells and their nested tool calls). api_key_cyber_access_programs, already stable, turns on. instant_interrupt stays on and still under development.194195
New in the TUI. /config opens a searchable preferences panel grouped into Appearance, Notifications, Input, Sessions, and Text selection tabs; supported changes apply immediately, the panel says which need a restart, and edits persist to the selected local configuration file (#52990, #53429). /keymap configures a leader key: tui.keymap.global.leader defaults to ctrl-x, bindings such as leader c follow it, shortcut hints stay open until you choose or cancel, and the voice mute shortcut moves from Ctrl+X to F9 (#52273). /daemon can restart a managed background server, warning about work the restart could interrupt and reconnecting afterwards (#53173). Codex runs independent read-only tools in parallel: skill, memory, and conversation-history lookups, plugin and agent listings, current time, remaining context, and get_goal (#52245). The v0.163.0 notes also list instant steering (#51812), but instant_interrupt is already on by default in the source at the v0.162.0 tag, and it has been available as an opt-in since v0.159.0; what v0.163.0 itself adds is code_mode_interrupt on by default (#51835).194276
Fixes and platform. Resuming a saved thread restores its permissions and network approvals, subject to explicit overrides and managed policy (#53150, #53419, #53424). The network proxy checks permission before a DNS lookup, rejects duplicate Host headers, and stops credential aliases from bypassing inspection hooks (#51650, #52661, #53506). /side returns to an existing side conversation after a thread switch, and answers to pending prompts go back to the thread that asked (#52184, #53436). On Windows, Ctrl+V and Shift+Insert paste text as well as images; on WSL, repeated pastes reuse the clipboard reader and copy attempts time out instead of hanging (#53224, #52967, #53453). Local commands finish promptly when a child keeps an output pipe open, remote commands keep late output for the final poll, and codex exec no longer repeats a file diff after an unrelated command (#52652, #53331, #53622, #53444).194
The patched zsh is gone. Codex uses its standard shell executor and no longer bundles a patched zsh; the codex-execve-wrapper and shell-escalation crate went with it, shell_zsh_fork and unified_exec_zsh_fork are ignored with a migration notice, and managed requirements that still name them draw a warning (#52160, #52213). Linux and macOS packages are smaller, with symbols stripped from the shipped binaries (#52178). The Linux sandbox crate’s names and README now say what the sandbox has been doing: bubblewrap for filesystem and namespace isolation, seccomp for syscall filtering, with the Landlock implementation retained as legacy; enforcement did not change (#52610). The bundled OpenAI Docs guidance covers migrations to the GPT-6 family (#51768).194195
What to do: upgrade. If a config.toml or requirements.toml names shell_zsh_fork or unified_exec_zsh_fork, remove it; if you had turned Daybreak on by hand, the flag is no longer needed; and if you relied on Ctrl+X to mute /voice, it is F9 now.194
v0.162.1 (October 9, 2026)
Two fixes, three commits on top of v0.162.0. A TUI crash on asynchronous questions with multiple lines is fixed, with line breaks and complete hyperlink destinations preserved. And the startup failures some v0.162.0 users hit, caused by differences between a running background server’s feature settings and the CLI’s defaults, are gone: the compatibility check now applies only to explicit command-line feature overrides. No defaults, config keys, or models change.
What to do: upgrade, especially if v0.162.0 refused to start while a background server from an earlier version was running.189
v0.162.0 (October 8, 2026)
instant_interrupt turns on by default. The flag v0.159.0 shipped as opt-in, which lets new input preempt a model response or yield a long-running code-mode call, is on for everyone from this release (PR #51812, merged October 7); it stays marked under development. Set instant_interrupt = false under [features] to restore the old behavior, where typed input waits for the response to finish.
New in the TUI: tools for creating and listing managed Git worktrees from trusted local projects, when the worktrees feature is on (#50148); pinning in the agent Command Center with p, which keeps pinned tasks in a shared Pinned group when the server supports it (#51500); /copy navigates transcript blocks, Ctrl+Insert copies a selection, and tui.mouse_scroll_speed (a finite positive number, default 1.0) tunes mouse-wheel scrolling (#50434, #50215, #50209); URLs are clickable in approval headers, questions, MCP prompts, warnings, and banners, including links that wrap. New TUI threads respect the server’s model and reasoning-summary defaults while keeping explicit launch overrides. codex doctor reports the configured TUI mode, and /status shows the account email again after an account update.
Providers and models: a custom Responses-compatible provider can declare external_web_access and remote_compaction under [model_providers.<name>.capabilities] (#50459). The ultrafast_mode feature ships on, so a model catalog that advertises an Ultra Fast tier (Amazon Bedrock’s Astra models, #50472) can offer it independently of Fast mode; the bundled catalog at this tag lists no such tier. Code mode gains JavaScript helpers for streaming promise results and an opt-in ranked tool search (code_mode_tool_search). apply_patch always preserves existing CRLF line endings, and the apply_patch_preserve_line_endings flag is removed. Retryable Responses and WebSocket failures honor the server’s Retry-After advice.
Sandbox and platform: Linux sandbox startup with multiple denied files is fixed, writable sandbox-construction executables are rejected, and ripgrep configuration can no longer weaken deny-glob masks; Windows 10 regains ordinary drive-letter file access, sandbox temp permissions match the child process, archive checksum verification works with PowerShell 7 module paths, and Windows releases ship a signed PowerShell installer.
What to do: upgrade; if you relied on typing ahead without interrupting the model, set instant_interrupt = false.188190
v0.161.0 (October 7, 2026)
Cut from 0.161.0-alpha.13.1 plus one release commit, 155 commits ahead of v0.160.1. Its release notes list GPT-6.1 Sol as the new default (#49318, #49339), but those are the catalog changes v0.159.1 already shipped: the bundled models.json at this tag is byte-identical to v0.160.1’s, so nothing changes for anyone on 0.159.1 or later.
New: /mcp login <name> signs in to an MCP server from a running terminal session (#49290). Voice device selection: choose your microphone, speaker, and microphone input channels for /voice conversations, with preferences saved locally (#49437, #49836). API-key model discovery is on by default (api_key_model_discovery, promoted to stable, #49807): signed in with an OpenAI API key against an endpoint that supports it, Codex refreshes the model catalog from the API instead of relying only on the bundled list; api_key_model_discovery = false under [features] turns it off, and the change takes effect in a new session. Amazon Bedrock supports multi-agent V2 and Ultra reasoning on compatible models, and Bedrock Mantle accepts AWS GovCloud regions (#49345, #49813).
Daybreak (opt-in). A new cli_daybreak flag, off by default and under development, adds Daybreak controls to the CLI: a /daybreak toggle, indicators, and automatic Cyber access-program routing, for ChatGPT sign-ins on the OpenAI provider whose account and model catalog advertise support. Turn it on with --enable cli_daybreak or cli_daybreak = true under [features]; a saved daybreak = true preference alone does nothing. Independently, codex exec --cyber-access-program <standard|daybreak_blue|daybreak_red> (and the TypeScript SDK’s cyberAccessProgram) requests a Cyber access program for one turn, with or without the flag, and leaves the saved choice unchanged (#49856, #49858, #49859, #49861, #49939, #51207). The bundled catalog already carries hidden gpt-daybreak-blue-latest and gpt-daybreak-red-latest entries. On by default, and marked stable, since v0.163.0.195
Fixes: an approved filesystem escalation can grant broader write access while keeping denied reads and network restrictions, and background tasks keep their originating turn’s permissions; explicit launch permissions survive terminal reconnects; elevated Windows terminal sessions can start with an embedded server; Enter submits buffered input after paste detection expires, in Vim insert mode too; thread resume includes the latest committed history, and startup detects recoverable SQLite corruption earlier, keeping damaged databases as backups; Responses retries and the WebSocket-to-HTTP fallback honor server retry guidance. The authentication docs now say credentials may live in the keyring rather than always in auth.json.
What to do: upgrade. Nothing here changes a default you would notice unless you sign in with an API key, in which case check /model for the discovered catalog.187190
v0.160.1 (October 5, 2026)
A fix for remote MCP servers on Windows. When Codex on a macOS or Linux host launches a stdio MCP server on a remote Windows executor, and that server’s config sets explicit remote environment variables, Codex now passes SYSTEMROOT, TEMP, and TMP through as well, so the Windows process keeps the startup environment it needs. Variables you did not request, secrets included, stay excluded. The release is one backport on top of v0.160.0 and changes no defaults, config keys, or models.
What to do: upgrade if you run remote stdio MCP servers on a Windows executor from a Unix host.184
v0.160.0 (October 1, 2026)
The 0.160 line’s stable release, cut from 0.160.0-alpha.6.1 plus one backport. No default changes. The bundled model catalog at the tag is byte-identical to v0.159.1 and v0.159.2, so GPT-6.1 Sol stays the default, and the two new feature flags ship off. The backport (#49763) brought the frozen 0.160 candidate, branched before v0.159.1, up to the 0.159 maintenance line: the GPT-6.1 Sol bundled and Amazon Bedrock catalogs and the account-security reminders from v0.159.3. Without it, 0.160 would have shipped without GPT-6.1 Sol.
Opt-in Guardian additions (both under development, off by default):
- Guardian can read earlier user messages. Set
guardian_conversation_history_tools = trueunder[features]. With Apps enabled, the reviewer getsuser_message.search_messagesanduser_message.read_messagesthrough the parent session’s own Apps connection, so it can check earlier instructions, restrictions, and revoked permissions before approving an action with side effects. Each call rechecks the parent’s current app and tool policy. Responses are capped at an estimated 4,000 tokens by default (auto_review.conversation_history_max_output_tokens), andauto_review.experimental_conversation_history_promptreplaces the built-in retrieval instructions. - Handoff-aware root context (
guardian_root_handoff_context): when Guardian reviews a worker agent’s action, it selects the three root messages before each handoff to that worker or its ancestors, plus the three latest root messages, so a recent cancellation stays visible.
Always on: encrypted agent messages now appear in Guardian transcripts, in order, instead of being dropped.
TUI changes: in a folder with no project config and no saved trust decision, a new session can start with workspace-write permissions and granular approvals, but only when local execution, your config, and managed policy all allow it. Resumed sessions restore their saved permissions unless you override them, and /cd can ask for folder trust with a “Keep current directory” option. The agent command center gains a “Show more” row that loads older tasks ten at a time. On local Linux X11 terminals (not Wayland, SSH, tmux, WSL, or VS Code), fullscreen transcript selections go to the primary selection, and middle-click pastes into the composer. The fullscreen status line shows Plan mode (shift+tab to cycle) when there is room. The Pro tiers now read “Pro 100,” “Pro 200,” and “Pro 500” in /status and analytics. Startup tips point to the desktop app for your platform instead of plan or Fast-mode promotions, and queued messages that were never sent resume after a reconnect without duplicates.
Providers and connections: the TUI keeps an app server’s provider, reasoning-summary, and verbosity settings, shows the right sessions in resume and fork history, and hides reasoning-summary settings in /status for server connections. A provider with an explicit model catalog (model_catalog_url) now gets only that catalog: no bundled models are merged in, metadata matches the exact model ID, a failed refresh discards cached entries instead of reusing them, and a startup with no available model reports a configuration error unless model is set. When a content filter stops a response, the retry tells the model to explain the limitation, offer a permitted alternative, and continue other work.
Fixes: Windows sandbox PowerShell fallbacks, ACL repair for long runtime paths, and no console windows from background helpers; subagents keep environments that are still starting; SQLite no longer stalls at connection setup and reports initialization errors instead of timeouts. The log database reclaims unused space in the background, and plugin loading caches parsed manifests and reuses HTTP connections. The provider docs now say that requires_openai_auth credentials use the backend chosen by cli_auth_credentials_store, and that env_key names the environment variable holding the API key.
What to do: upgrade. If a custom provider sets model_catalog_url, make sure its catalog lists every model you select.183
v0.159.3 (September 30, 2026)
Optional account-security reminders. Local TUI sessions signed in with ChatGPT on the OpenAI provider can show a dismissible banner asking you to finish account security setup, with a button that opens chatgpt.com. The server decides who sees it; the CLI fetches the notice in the background without blocking a turn, shows nothing when the state is unknown, skips remote workspaces and FedRAMP accounts, and remembers a dismissal across threads and reconnects. Usage banners take priority. It is the release’s only change, and v0.160.0 carries the same code.
What to do: nothing. The reminder is optional.185
v0.159.2 (September 29, 2026)
A Windows fix for flashing console windows. On Windows, Codex no longer opens a console window each time it starts a background process. That covers shell-tool commands, hooks, Git and npm calls, Amazon Bedrock credential refreshes run without a terminal, doctor checks, sandbox setup refreshes, and commands in the legacy Windows sandbox. Commands that need your terminal still inherit its console. The release is one backport of two fixes from main, published about three and a half hours after v0.159.1. It changes no defaults, config keys, or models, and the new launch helper behaves as before on macOS and Linux.
What to do: on Windows, upgrade if console windows flash while Codex works, especially with the background server installed.181
v0.159.1 (September 29, 2026)
GPT-6.1 Sol becomes the default model. When config.toml sets no model, the CLI now starts on GPT-6.1 Sol (gpt-6.1-sol) instead of GPT-6-Astra, and GPT-6.1 Sol replaces GPT-6 Sol as the default in the Amazon Bedrock Mantle and Runtime catalogs. The /model picker lists it first, as “Latest workhorse model for coding and everyday work,” followed by GPT-6-Astra, GPT-6 Sol (now “Previous generation workhorse model”), GPT-6 Luna, and the older models. Saved choices are not migrated: a config that names gpt-6-sol or gpt-6-astra keeps that model, and the migration prompts for older GPT-5 selections still point to GPT-6 Sol or GPT-6 Luna.
OpenAI’s docs added the model the same day and recommended it at launch for complex coding and agentic workflows; on November 11, 2026 the models page described it as “Near-Astra performance for complex work at a lower cost than Astra”; the card now reads “Performance close to GPT-6 Astra for complex work at a lower cost” and still suggests it for repeated, long-running work.233259 It costs 50 credits per 1M input tokens (2.5 cached, 250 output), and the Plus band is 15-160 messages.203 Two catalog details differ from GPT-6 Sol: it has no default service tier, so a session starts at Standard speed rather than Fast, and its default reasoning effort is low rather than medium. The launch rollout covered Plus, Pro, Business, Enterprise, and Edu, with Free and Go not included; the pricing page still keeps the model off in Enterprise and Edu until an administrator enables it, and the Free and Go plan cards list only GPT-6 Luna.179203234
What to do: upgrade, then check the model in /status. If your account does not have GPT-6.1 Sol yet, pin one it does have with model in config.toml or -m.179
v0.159.0 (September 29, 2026)
Cut from 0.159.0-alpha.13, about 27 hours after v0.158.0. Several items in its release notes shipped earlier, in v0.158.0, as backports: the Windows console-window and launcher fixes, Markdown-preserving copy, the welcome screen and turn tips, and the sign-in fixes. The tui.prompt_suggestions setting the notes list as removed never appeared in a stable release.
New in this release:
instant_interrupt(opt-in, under development): new input preempts a model response or yields a long-running code-mode call. Setinstant_interrupt = trueunder[features]to try it. On by default since v0.162.0.- The warnings viewer dismisses the warnings you have seen when it closes; press
kto keep one for later. - You can scroll the transcript while deciding whether to implement a plan.
- Mermaid rendering handles more flowchart edges, labels, and node groups.
- Blank sessions keep their drafts when you switch tasks, and threads can be archived before their first turn.
/statusrenders without borders and wraps long values.- App-server clients can page thread history from a specific item.
Sandbox changes: approved commands keep explicit filesystem denials, .aws directories under writable roots are protected by default (explicit rules still override), network-enabled macOS sandboxes allow TLS trust evaluation, and execution environments that require a proxy now get one. The bundled plugin-creator skill is removed.
What to do: if a sandboxed task writes under .aws, expect it to be blocked unless you add an explicit rule.178
v0.158.0 (September 28, 2026)
The 0.158 line’s stable release, cut from 0.158.0-alpha.15.4: alpha.15 plus sixteen backports, including the four Windows fixes from v0.157.1. It is 207 commits ahead of v0.157.0.
Defaults that change:
- Terminal input approval is on. When Codex sends input to a running command that has elevated permissions (extra permission grants, a sandbox bypass, or a policy that changed since the command started), the input needs approval first. Runtime-only grants, such as those plugins use for metrics, no longer trigger a review. To turn it off, set
write_stdin_approval = falseunder[features]. - Copy-on-select in the fullscreen transcript: mouse selections are copied when you release the button. The default,
auto, skips direct terminals that forward their own copy shortcut (Ghostty 1.2+, Kitty on macOS, Windows Terminal, and VS Code on Windows). Copies keep Markdown formatting. Setcopy_on_select = "never"(or"always") under[tui]. - Right-click paste in the fullscreen TUI on Windows, WSL, and Linux. Set
right_click_paste = "off"under[tui], or"on"to add macOS. - Guardian thread context is always on. The v0.157.0 off-switch is gone:
thread_contextunder[features.guardianv2]is ignored, including in profiles, and Codex shows a notice asking you to remove it.
Models and plans: GPT-5.4 leaves the bundled and Bedrock catalogs, and saved GPT-5.4 selections still get the migration prompt to GPT-6 Sol. Codex recognizes the Pro Max plan and labels the Pro tiers “Pro,” “Pro (More),” and “Pro (Max).” Reasoning shortcuts can reach Max.
Also new: MCP servers that need a pre-registered OAuth client secret (codex mcp add --oauth-client-secret), bearer tokens for exec-server WebSocket connections, transparent backgrounds for generated images, and multiline command previews in /ps. Fixes cover Windows sandbox failures (ordinary Windows 10 paths, rejected stored credentials, large permission policies), Linux sandbox startup with nested writable roots, Git metadata protection across writable roots, macOS path aliases in patch approvals, and Guardian reviews that now retry instead of aborting when you send a message mid-review.
What to do: if automation sends keystrokes to elevated commands, expect approval prompts or turn the feature off, and remove thread_context from your config.177
v0.157.1 (September 26, 2026)
A Windows patch of four fixes backported from main. Codex no longer opens a console window when it starts the code-mode host or a local stdio MCP server. The background server can launch when Windows leaves the process inside an outer job object, and a detached background server no longer holds the launcher’s output pipes open, which could leave the calling command waiting after the launcher exited. The GitHub release notes and the changelog entry say only that highlights “could not be determined”; the list above comes from the release’s commits.
What to do: upgrade if you run Codex on Windows. The four fixes are Windows-only.175
v0.157.0 (September 25, 2026)
The release that flips three more defaults.
- The fullscreen transcript is on by default. The fullscreen UI that v0.156.0 offered through
/tuiis now what a session opens in, including when config has no[tui]section. To keep terminal scrollback, pick Scrollback in/tuior setfullscreen_transcript = falseunder[tui];--no-alt-screenandtui.alternate_screen = "never"still take precedence. Shift-click now extends a transcript selection. - The background server starts automatically for eligible interactive launches, and the option leaves
/experimental. Launches with--no-daemon,--oss,--profile, or most-coverrides do not use it. If a running server’s settings do not match the session, Codex offers to run without it, restart it with the required settings, or cancel (the default). To turn automatic startup off, setdaemon_auto_start = falseunder[features]. - Guardian thread context is on by default for synchronous and asynchronous reviews, independent of the Guardian v2
enabledtoggle. To turn it off, setthread_context = falseunder[features.guardianv2].
Models: GPT-6 Sol and Luna, first shipped in v0.156.1, are in this release too, and the Amazon Bedrock catalogs now carry them, with GPT-6 Sol replacing GPT-5.6 Sol as the Bedrock default. GPT-5.6 Sol loses its ultrafast service tier, leaving Fast. The bundled catalog no longer marks GPT-6-Astra as supporting experimental context management (see Context Management).
Also new: an f shortcut forks a conversation that is open in another app, keeping drafts and queued prompts; /import works in remote and background-server sessions; and the terminal renders Unicode bullets, checkboxes, and aligned equations. Fixes keep voice conversations running when you switch threads, recover unsent answers when a turn ends, respect tmux mouse settings, route realtime connections and standalone web search through configured proxies, retry transient file uploads with a five-minute timeout, and enforce network restrictions across redirects and open HTTP and WebSocket connections. On Windows, sandbox object access is limited to the runner’s logon session.175
v0.156.1 (September 23, 2026)
A one-change patch that brings GPT-6 Sol and GPT-6 Luna to the stable CLI. Both now appear in the /model picker; in this release they sat below GPT-6-Astra, which stayed first and remained the bundled default when config.toml sets no model (GPT-6.1 Sol replaced it in v0.159.1). The picker relabels the GPT-5.6 family as older models (in this release GPT-5.6 Sol read “Older coding model for complex work”) and GPT-5.5 as a “Legacy coding model.” When you approach a rate limit, the switch prompt now suggests gpt-6-luna instead of gpt-5.6-luna.
If your config names an older model, expect a one-time migration prompt: saved selections of gpt-5.6-sol, gpt-5.6-terra, gpt-5.5, and gpt-5.4 point to GPT-6 Sol, and gpt-5.6-luna and gpt-5.4-mini point to GPT-6 Luna. The Amazon Bedrock catalogs do not change in this release: they carry no GPT-6 Sol or Luna, and GPT-5.6 Sol stays the Bedrock default.
One cost detail the docs do not mention: the bundled catalog sets Fast (priority) as the default service tier for GPT-6 Sol and Luna, so a TUI session with no service_tier set can start in Fast mode, which draws included ChatGPT plan limits at 2.5x the Standard rate (purchased credits at 2x). /fast toggles the Fast tier on and off (it takes no arguments); add the speed item with /statusline to see which tier is active, or set service_tier in config.toml to pin one.215
What to do: upgrade, then try codex -m gpt-6-sol on a familiar task. At launch, availability depended on your plan, workspace settings, and the rollout, and Enterprise administrators had to enable the new models first; the models page still says an administrator must enable Luna in Enterprise and Edu.172231229
v0.156.0 (September 22, 2026)
The release that flips three defaults at once; the docs changelog announced the first two the same day.
- Voice is on by default.
/voicestarts a live conversation on supported builds without a visit to/experimental. New alongside it: a configurable F8 toggle, a/voice settingspicker for the voice used in future conversations, bundled voice runtimes for Linux and Windows, and reduced-motion support. - Managed worktrees are on by default.
--worktreeand/worktreeno longer need a feature flag. Worktree sessions can attach to an existing local daemon and can be created from the agents overview. - Guardian parent-compaction reuse is on by default: when Guardian restarts a review session, it can reuse the parent thread’s encrypted compaction.
How to turn each off is in the /voice and /worktree rows of the slash-command table and in the Guardian section.
Also new: an optional fullscreen TUI, chosen with /tui, with transcript search, mouse selection and copy, right-click copy, clickable links, and a warnings viewer; six bundled themes in the /theme picker; the /usage analytics dashboard; Mermaid diagrams and TeX math rendered in the terminal, each with its own toggle; a /daemon menu and a --no-daemon flag; and reasoning summaries off by default for new TUI threads. Security fixes close Windows inbound-traffic, privileged-socket, and read-only-file-handle sandbox gaps, and codex doctor no longer echoes config values in its errors. Bug fixes keep streamed answers after failed or interrupted turns, repair clipboard forwarding in tmux and SSH, restore Plan mode on resume, and let login recover through system proxies.170
v0.155.1 (September 18, 2026)
A one-fix hotfix. On 0.155.0, a new local TUI thread with no model_reasoning_summary in config requested detailed summaries, and providers that do not support reasoning summaries rejected the request outright. 0.155.1 restores none as the fallback, so an unset key requests no summaries. Explicit auto, concise, and detailed settings were always honored and still are. The same one-line change also landed on main and shipped in 0.156.0.
What to do: if new TUI sessions on 0.155.0 failed against a non-OpenAI or self-hosted provider, upgrade. If you want summaries, set the key explicitly (see the config reference).167
v0.155.0 (September 17, 2026)
Voice arrived in the stable TUI as an experimental, opt-in feature: /voice opened a live conversation with a streaming transcript and microphone controls, enabled through /experimental on supported builds, with a configurable mute shortcut and signed voice resources in the macOS packages. v0.156.0 turned it on by default five days later. Managed worktrees stayed off by default in this release.
Also in 0.155.0:
- MCP user verification: Touch ID verification of MCP requests, signed by the Secure Enclave, in local TUI sessions on supported Macs, with workspace-scoped identity restriction and native verification in MCP tool continuations.
- The Windows
/sandbox-add-read-dirslash command is removed. - Worktree management: hide, archive, and delete worktree sessions in the agents overview, see ownership details, and confirm before deleting a clean managed worktree.
- Live reasoning summaries stream in the TUI status row, with completion timestamps on finished work.
- Daemon: configurable update schedules, a
codex app-server daemon updatecommand, and thread recovery after daemon restarts. - Amazon Bedrock AWS credential commands, and Python SDK publishing aligned with stable CLI releases.
Security fixes close WSL interop escapes and shell-snapshot credential exposure. Memory v2 lands as storage and consolidation groundwork only, not a usable feature.165
v0.154.0 (September 9, 2026)
This release was cut at roughly the 0.154.0-alpha.6 boundary, so everything that first appeared in alpha.7 (live TUI voice, MCP user verification, Memory v2, daemon auto-update configuration, reasoning-effort pinning) waited for 0.155.
Removed: codex mcp-server and the standalone codex-mcp-server binary. Move integrations to the app-server protocol or the Codex plugin for Claude Code; codex mcp, which connects Codex to external MCP servers, is unaffected (see Running Codex AS an MCP Server). The legacy Guardian approval review paths are gone too, and approvals are now rejected when new user instructions invalidate them.
New:
- Experimental managed worktrees via
--worktreeor/worktree, withcodex execsupport and a TUI worktree browser. - Asynchronous user messages: answer inline questions while Codex keeps working, without losing your draft.
- Windows service support: sandbox provisioning, the app-server daemon on Windows, and managed daemon updates.
- Remote permission profiles, discovered from the app server and selectable by name in the TUI.
- Vim
Rreplace mode, live context-compaction status, and experimental context management gated by model capability at session startup.
Security: PATH helpers no longer run before workspace trust is established, and the macOS sandbox is hardened against terminal input injection. MCP connections coordinate OAuth token refreshes, remote resume and fork keep saved permissions, and resuming a conversation open in another app shows a read-only transcript. Voice shipped only as runtime infrastructure, and Daybreak code landed in the TUI: cyber refusal notices tailored to Daybreak eligibility and Daybreak preferences kept in thread metadata (#42667, #42854).161162
v0.153.3 and v0.153.4 (September 4, 2026)
Same-day patches that carried the GPT-6-Astra launch into the CLI. v0.153.3 added Astra to the Amazon Bedrock catalogs (GPT-5.6 Sol stayed the Bedrock default) and corrected Astra’s async-clarification guidance. v0.153.4 put Astra in the model picker, made it the bundled default when no model is configured, and qualified async-question guidance by tool availability.
What to do: Astra works with -m gpt-6-astra from v0.153.1 and appears in the picker from v0.153.4; no minimum CLI version is documented, so treat those as the floors. If your account is not entitled to the model the bundled default selects, set model explicitly in config.toml rather than relying on the default.154155156157
v0.153.1 and v0.153.2 (September 3, 2026)
v0.153.1 makes Guardian’s computer-use scoring honor model requirements: computer-use-only scoring and fast approval decisions run only when the active model’s metadata sets node_repl_auto_review_required, and a model switch that skips scoring invalidates prior or in-flight scores, so switching back cannot revive a stale approval. The release body lists only a backported GPT-6-Astra catalog entry, configurable through the API; the picker and default did not change until v0.153.4. v0.153.2 corrects the Astra Fast-tier description from “1.5x” to “2x speed, increased usage” (display text only).151152
v0.153.0 (September 3, 2026)
- Vim undo and redo:
uandCtrl+Rrestore complete composer drafts, including pasted content and image attachments;vim_normal.redois a configurable keymap action. - Remote plugin marketplaces: the plugin CLI can list, install, and remove remote plugins, and
codex plugin listincludes remote catalog entries, with source, version, install policy, and authentication policy in its JSON output. tui.auto_recap = falseturns off automatic recaps; manual/recapstill works.- Earlier rate-limit warnings for Plus and Team when less than half the allowance remains in a roughly five-hour window; other plans keep the 75/90/95% thresholds.
- Guardian scope follows approval mode: Full Access skips Guardian reviews for confirmation-only actions, and User approval mode skips background scoring and prewarming.
features.context_management.experimental_mode(off by default) enables token-budget context, history notes, and thenew_contexttool for eligible Plus, Pro, and Pro Lite sessions on the Codex backend. The flag is still under development at v0.172.0, and the config reference says the feature “is not currently available.”247257tui.disable_paste_burstreplaces the top-level key, which still works as a fallback.
Fixes: TUI sessions reconnect after an app-server drop with drafts intact, Guardian review history survives compaction, restarts, and forks, and remembered MCP approvals are scoped to the selected account.149
v0.152.0 and v0.152.1 (September 1, 2026)
update_plan became opt-in: tools.update_plan.enabled defaults to false, and while it is off the bundled update_plan guidance is removed from model, collaboration-mode, multi-agent, compaction, prewarm, and goal-continuation prompts (see Plan Mode & Collaboration). Also new: Vim search with / and ? plus n/N, composable with operators, with fresh drafts starting in Insert mode; actionable rate-limit banners; credential-refresh progress, including Amazon Bedrock reauthentication; package-style MCP server names (:, @, /, and . are allowed); MCP openai/elicitation form requests; a per-tool MCP output_token_limit; cloud task credentials restricted to trusted origins; configurable thread/shellCommand timeouts; and token budgeting on by default through model metadata. v0.152.1 lets Guardian approval review source its Node REPL policy from model metadata.147148
v0.151.0 (August 29, 2026)
/recapsummarizes the conversation on demand, and Codex recaps eligible idle, unfocused conversations automatically.- Code-mode hosts drop the WebSocket transport (stdio and gRPC only).
- Durable threads default to paginated history where the store supports it.
- The
persistentreasoning effort arrives with clock tools and bundled proactivity guidance. - Guardian v2 defaults to computer-use reviews with images.
- Vim gains
f/F/t/Tfind and till motions plusgg/G. - Input to escalated terminals can require fresh approval (
write_stdin_approval, off by default). - A configurable grace period for optional MCP servers (
mcp_optional_startup_grace_ms, default 1,000 ms), and extensions can inspect or replace MCP tool results.
Fixes stop /cd from weakening sandbox restrictions and stop stale Guardian classifications from authorizing actions after permission changes. The release body lists only the last few PRs; the full change set is in the compare.144145
v0.150.0 and v0.150.1 (August 26-27, 2026)
Hooks gain an Interrupt event that runs when an active top-level turn is interrupted (1-second default timeout, 3-second cap, never for subagents). /copy opens a picker for the full response, individual code blocks, or blockquotes. Tasks become addressable with @ mentions, agents can read, create, and message tasks, and /rename suggests an editable title. Markdown links render as clickable labels, shortcuts can cycle permission modes, Vim gains . repeat, and untrusted projects no longer supply project-level AGENTS.md instructions. features.network_proxy.credential_broker and Guardian v2’s review_scope.computer_use_only arrive as configurable, default-off surfaces. v0.150.1 counts retained images toward remote compaction’s token budget.141142
v0.149.0 and v0.149.1 (August 20-24, 2026)
The untrusted approval policy is retired; move configs that name it to on-request. New: an interactive codex agents dashboard, /cd, /pwd, and /cwd, codex queue for messaging existing local or remote sessions, more Vim change motions, a broader codex doctor (endpoint protection, network and proxy failures, desktop-app state, update connectivity), and max/ultra reasoning efforts in the SDKs. Resumed and forked threads restore their permission profile. v0.149.1 adds codex exec --thread-source <SOURCE> (user, subagent, memory_consolidation, or a feature name; threadSource in the TypeScript SDK).
Pricing in the same window: OpenAI cut GPT-5.6 Sol pricing by more than 20% for three months from August 21 (through at least November 21, 2026), and the Codex credit rate for Sol dropped from 125/12.5/750 to 100/10/500 credits per 1M input, cached, and output tokens.129130135
v0.147.0 and v0.148.0 (August 7-18, 2026)
v0.147.0 removes codex exec --full-auto (deprecated since v0.128); use --sandbox workspace-write, or the --approve-for-me flag that the same release adds for automatically reviewed approvals. It also adds portable Agent Plugins with search across catalogs, the opt-in MCP 2026-07-28 protocol, and conversation sections. v0.148.0 adds /export to Markdown, codex exec fork, estimated credits or cost in /status, Amazon Bedrock Runtime as a built-in provider, asynchronous and MCP-invoking hooks, and sandbox restrictions that fail closed on denied or unreadable paths.123127
Earlier Releases (May-July 2026)
- v0.146.0 and v0.146.1 (July 29, August 5): configured proxies are honored across authentication, plugin downloads, MCP authorization, remote execution, WebSockets, redirects, and LM Studio connections; Agent Plugins manifests plus the Amazon Bedrock and Claude Code marketplaces; session naming with thread pinning; executor-provided skills; safer automatic-review defaults for cyber-capable models.121122
- v0.145.0 (July 21):
/importfrom Cursor as well as Claude Code; audio inputs and tool outputs arrive with streaming realtime V3 conversations; the opt-in multi-agent v2 experience is stabilized; CSV-backed agent jobs (spawn_agents_on_csv) are removed; experimental paginated thread history and Amazon Bedrock login; bundled GPT-5.4 selections migrate to GPT-5.6 Terra and Luna. v0.144.6 set the GPT-5.6 context windows to 272,000 tokens.116117241 - v0.140.0 (June 15):
/usage,codex deleteand/delete,/importfrom Claude Code, the unified@mentions menu, Amazon Bedrock API-key authentication, and encrypted local storage for CLI and MCP OAuth credentials; the old/realtimevoice controls were removed.107 - v0.139.0 (June 9): code mode can call web search directly, tool schemas keep
oneOf/allOf,codex doctorreports editor and pager details, and marketplace sources appear in JSON output.106 - v0.138.0 (June 8):
/apphands a CLI session to the desktop app, and parent-to-subagent task text is encrypted in multi-agent v2.105113 - v0.137.0 (June 4): multi-agent v2 keeps the runtime choice with each thread and gets cleaner follow-up and metadata defaults for spawned agents; F13-F24 TUI keybindings; and a v1 skills extension.104
- v0.132.0 through v0.135.0 (May 20-28): local conversation history search,
--profileas the primary profile selector, goals on by default, permission-profile inheritance and managedrequirements.toml,codex remote-controlstart and stop, richercodex doctorand/status, Vim text objects, named permission profiles in/permissions, Python SDK auth andSandboxpresets, andcodex exec resume --output-schema. The May 21 app update added Appshots, Goal mode GA, and opt-in locked Computer Use.96979899100101102
Legacy --full-auto is removed as of v0.147.0, and js_repl remains removed.86878991123
Stability note: Stable, documented surfaces: the core CLI and TUI, sandboxing and approval policies,
config.toml, AGENTS.md, skills, hooks, plugins, multi-agent tools, goals, permission profiles,/voiceand managed worktrees (default since v0.156.0), the fullscreen transcript and automatic background-server startup (default since v0.157.0), terminal input approval, copy-on-select, and right-click paste (default since v0.158.0), instant interrupt (default since v0.162.0, still marked under development), Daybreak and code-mode interruption (cli_daybreak,code_mode_interrupt; stable and on since v0.163.0), and the Bedrock setup wizard, incremental tool updates, and MCP OAuth refresh coordination (stable and on since v0.164.0), mid-conversation reasoning-effort changes (reasoning_effort_override, stable and on since v0.165.0), memory v2 for fresh profiles (v0.165.0), deferred tool world state (deferred_tool_world_state, stable and on since v0.167.0), the TUI workspace (tui_workspace, stable and on since v0.171.0), and lazy startup for optional stdio MCP servers (mcp_lazy_stdio_startup, stable and on since v0.172.0). Themulti_agentflag itself is deprecated since v0.168.0; subagent tools stay on by default andenabled = falseunder[agents]turns them off. Managed worktrees and realtime conversation are permanent as of v0.164.0: their flags are marked removed with the features left on. Browser, Computer Use, and Appshots are documented user-facing surfaces whose availability depends on platform and plan.Experimental or under development: the
codex cloudcommand, code mode and code mode tool search, external-agent memory import (external_agent_memory_import), the local agent message board, the Guardian history and handoff-context flags (v0.160.0), custom status lines (tui_extensions_statusline), and anything this guide marks experimental or lists under/experimental; these can change between releases. Experimental context management is, per the config reference, “not currently available.”Removed: spacebar voice transcription and custom prompts (v0.118.0),
js_repl(v0.128.0), the top-levelprofileselector and[profiles.*]tables (v0.134.0), CSV agent jobs (spawn_agents_on_csv, v0.145.0),--full-auto(v0.147.0), theuntrustedapproval policy (v0.149.0),codex mcp-server(v0.154.0), the repository’s devcontainer profiles (v0.155.0), the Guardianthread_contextopt-out (v0.158.0), and theshell_zsh_forkandunified_exec_zsh_forkflags with the patchedzshitself (v0.163.0).237238240241248Alpha channel: alpha builds ship several times a day, release bodies on the alpha lines are stubs, and out-of-band builds cut from older bases appear regularly. At least twice the npm
alphatag pointed at one of them, so@alphainstalled a build older thanlatest. If you track alphas, checknpm view @openai/codex dist-tagsand install an exact version rather than@alpha; on November 25 at 20:28 UTC the tag pointed at 0.174.0-alpha.6, published at 19:45 UTC.177180182186201257 A dated history of how earlier alpha lines resolved into stable releases is in 174. How the recent lines resolved:
- 0.158 and 0.159: the 0.158 line ran from 0.158.0-alpha.2 (September 23) to alpha.15 (September 25); its stable, v0.158.0 (September 28), was cut from the out-of-band build 0.158.0-alpha.15.4, alpha.15 plus sixteen backports, and was npm
latestuntil v0.159.0 published 27 hours later. The 0.159 line ran from alpha.1 (September 25) to alpha.13 (September 28), shipped as v0.159.0 from alpha.13, and got one more patch, v0.159.3, on September 30.177180182- 0.160: the line reached 0.160.0-alpha.6 (September 29) and froze there; 0.161.0-alpha.1 is alpha.6 with only the version number changed. On September 30, 0.160.0-alpha.6.1 added to alpha.6 the one v0.159.2 Windows console fix it lacked. The line shipped stable as v0.160.0 (October 1), cut from alpha.6.1 plus one backport, and v0.160.1 (October 5).182183184
- 0.161 and 0.162: v0.161.0 shipped on October 7 from 0.161.0-alpha.13.1 (one release commit on top of it); v0.162.0 followed on October 8 from 0.162.0-alpha.18.1, while 0.162.0-alpha.20 ran 52 commits ahead of that stable cut; v0.162.1 added three commits on October 9.186187188189
- 0.163:
alphawas 0.163.0-alpha.5 on October 10, moved through alpha.8, alpha.9, and alpha.10 on October 13, and was 0.163.0-alpha.11 on October 14. v0.163.0 was cut on October 15 from the out-of-band 0.163.0-alpha.10.2 (one release commit on top), while alpha.11 ran 23 commits ahead of that cut.190192193195- 0.164: the line opened on October 16 with alpha.1 and alpha.2 and reached alpha.12 by October 22, with the out-of-band builds 0.163.0-alpha.11.1 and 11.2 (October 21 and 22) and 0.164.0-alpha.11.1 (October 23) alongside. v0.164.0 shipped on October 23, cut from alpha.11 plus one release commit (alpha.12 ran nine commits ahead of that cut), and
alphamoved to 0.165.0-alpha.1 the same day.195197- 0.165 and 0.166: v0.165.0 shipped on October 27, cut from 0.165.0-alpha.1 plus four commits, with the out-of-band 0.165.0-alpha.1.1 and 1.2 the same day; the 0.166 line ran alpha.1 (October 27) to alpha.6 (October 29) with 0.166.0-alpha.5.1 out of band and shipped as v0.166.0 on October 29 from alpha.6 plus one release commit.198199
- 0.167, 0.168, and 0.169: the 0.167 line opened with alpha.2 and alpha.3 on November 1 (no alpha.1 was published) and reached alpha.5 on November 4; v0.167.0 shipped on November 6 from the out-of-band 0.167.0-alpha.3.2 plus one release commit, leaving alpha.5 with 132 commits the stable does not have, and v0.167.1 added three commits on November 10. Out-of-band builds followed from the alpha.4 base (alpha.4.1 on November 9, alpha.4.2 and alpha.4.3 on November 11), and v0.167.2 added three commits to v0.167.1 on November 11. The 0.168 line produced alpha.1 (November 4) through alpha.7 (November 5) and shipped eight days later: v0.168.0 on November 13, cut from alpha.7 plus one release commit. The 0.169 line ran from alpha.2 (November 6) to alpha.11 (November 11) and shipped as v0.169.0 on November 13 from the out-of-band 0.169.0-alpha.11.1; v0.169.1 added four commits on November 17.200201257
- 0.170 to 0.174: the 0.170 line ran alpha.1 (November 11) to alpha.4 (November 12) and shipped as v0.170.0 on November 18 from the out-of-band 0.170.0-alpha.4.2. The 0.171 line ran alpha.1 (November 13) to alpha.13 (November 18) and shipped as v0.171.0 on November 20 from the out-of-band 0.171.0-alpha.13.1. The 0.172 line had two in-line alphas (November 18 and 19) and shipped as v0.172.0 on November 24 from the out-of-band 0.172.0-alpha.2.1. Each of those stables is its alpha base plus one release commit. The 0.173 line has run alpha.1 (November 20) to alpha.5 (November 24) with no stable, and the 0.174 line opened on November 24 and reached alpha.6 on November 25. One more out-of-band build, 0.171.0-alpha.13.2, appeared on November 23, three days after v0.171.0 shipped.257
How Codex Works: The Mental Model
Before diving into features, understand how Codex’s architecture shapes everything you do with it. The system operates across five surfaces backed by a shared intelligence layer:
┌─────────────────────────────────────────────────────────┐
│ CODEX SURFACES │
├─────────────────────────────────────────────────────────┤
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────┐ │
│ │ CLI │ │ Desktop │ │ IDE │ │ Cloud │ │
│ │ Terminal │ │ App │ │Extension │ │ Tasks │ │
│ └──────────┘ └──────────┘ └──────────┘ └────────┘ │
│ Local exec Multi-task Editor-native Async │
│ + scripting + worktrees + editor ctx detached │
│ ┌──────────┐ │
│ │ Browser │ Signed-in browser workflows │
│ │Extension │ (launched May 2026) │
│ └──────────┘ │
├─────────────────────────────────────────────────────────┤
│ EXTENSION LAYER │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ MCP │ │ Skills │ │ Apps │ │ Search │ │
│ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │
│ External tools, reusable expertise, ChatGPT │
│ connectors, web search (cached + live) │
├─────────────────────────────────────────────────────────┤
│ SECURITY LAYER │
│ ┌─────────────────────────────────────────────────┐ │
│ │ Sandbox (Seatbelt / bubblewrap / seccomp) │ │
│ │ + Approval Policy (on-request → never) │ │
│ └─────────────────────────────────────────────────┘ │
│ OS-level filesystem + network restrictions │
├─────────────────────────────────────────────────────────┤
│ CORE LAYER │
│ ┌─────────────────────────────────────────────────┐ │
│ │ GPT-6 models (GPT-6.2 Sol default) │ │
│ │ Tools: Shell, Patch, Read, Web Search │ │
│ │ (legacy artifact, read_file, grep_files │ │
│ │ removed in v0.117.0) │ │
│ └─────────────────────────────────────────────────┘ │
│ Shared model across all surfaces; costs tokens │
└─────────────────────────────────────────────────────────┘
Core Layer: The GPT model family powers everything. The current generation is GPT-6.2: gpt-6.2-sol for everyday coding, writing, and work across several sources (the bundled CLI default when no model is configured, since v0.169.1) and gpt-6.2-astra for demanding work across code, apps, or research. Beside them sit gpt-6.1-terra for writing, visual understanding, and computer use and gpt-6-luna for focused, high-volume tasks. The picker labels gpt-6.1-sol and gpt-6-astra previous generation, and gpt-6-sol and the GPT-5.6 models (Sol, Terra, Luna) legacy. gpt-5.5 retired from Codex for ChatGPT sign-in on October 14, 2026 and gpt-5.4 on August 31, 2026; the API and API-key sessions are unaffected by either retirement.202229258259 It reads files, writes patches, executes shell commands, and reasons about your codebase. When context fills, Codex compacts the conversation to free space. This layer costs tokens.
Security Layer: Every command Codex runs passes through an OS-level sandbox. On macOS, Apple’s Seatbelt framework enforces kernel-level restrictions. On Linux, bubblewrap isolates the filesystem and namespaces and seccomp filters syscalls; the older Landlock implementation is retained as legacy. The sandbox operates at the kernel level, not inside containers. The approval policy then decides when to ask for human confirmation.
Extension Layer: MCP connects external services (GitHub, Figma, Sentry). Skills package reusable workflows that Codex loads on demand. Apps connect to ChatGPT connectors. Web search adds real-time context from the internet.
Surface Layer: CLI for terminal power users and automation. Desktop app for multi-threaded project management. IDE extension for edit-compile-test loops. Cloud for async tasks that run independently.
The key insight: The surfaces complement each other: Cloud for long-running tasks, CLI for deterministic repo operations, IDE extension for tight coding loops, the desktop app for planning and coordination, and the browser extension for signed-in browser workflows.
Table of Contents
- How Do I Install Codex?
- Quick Start: Your First Session
- Core Interaction Surfaces
- Configuration System Deep Dive
- Which Model Should I Choose?
- What Does Codex Cost?
- Decision Frameworks
- How Does the Sandbox & Approval System Work?
- How Does AGENTS.md Work?
- Hooks
- What Is MCP (Model Context Protocol)?
- Code Mode
- JavaScript REPL Runtime
- What Are Skills?
- Plugins
- Plan Mode & Collaboration
- Memory System
- Session Management
- Non-Interactive Mode (codex exec)
- Codex Cloud & Background Tasks
- The Codex Desktop App
- GitHub Action & CI/CD
- Codex SDK
- Performance Optimization
- How Do I Debug Issues? – including
codex doctor - Codex Security
- Enterprise Deployment
- Best Practices & Anti-Patterns
- Workflow Recipes
- Migration Guide
- Quick Reference Card
- FAQ
- Changelog
- References
How Do I Install Codex?
Standalone Installer
The OpenAI docs list the standalone installer first. Run the same command again to update:223
# macOS and Linux
curl -fsSL https://chatgpt.com/codex/install.sh | sh
# Windows (from a new PowerShell window)
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
Package Managers
# npm
npm install -g @openai/codex
# Homebrew (macOS)
brew install --cask codex
# winget (Windows)
winget install OpenAI.Codex
# Upgrade to latest
npm install -g @openai/codex@latest
How Do I Update, Downgrade, or Uninstall the Codex CLI?
Codex ships a self-update command as of v0.128.0; everything else runs through whichever package manager installed it.86 As of v0.146.0, release artifacts, channel metadata, and installer aliases are served from OpenAI-hosted release infrastructure, with GitHub as a fallback.121
# Check what you are running
codex --version # -> codex-cli 0.172.0
npm view @openai/codex version # Latest published version
# Update
codex update # Built-in self-update (v0.128.0+)
npm install -g @openai/codex@latest # Or update via npm
brew upgrade --cask codex # Or via Homebrew
# Pin or downgrade to an exact version
npm install -g @openai/codex@0.172.0
# Uninstall
npm uninstall -g @openai/codex
brew uninstall --cask codex
winget uninstall OpenAI.Codex
Pinning is the right move when a release breaks you. Codex tracks a fast stable line, so
installing an exact version is the fastest rollback – file the issue, pin, and move on.
Verify the rollback took with codex --version, since a shadowed second install on your
PATH will silently keep serving the old binary (codex doctor flags exactly this under
Environment).
Uninstalling the package does not remove your state. Auth, config, and session history live in
~/.codex/. Leave it in place to preserve logins and history across a reinstall; delete it only for a genuinely clean slate –rm -rf ~/.codexalso discardsconfig.toml,auth.json, and every stored session.
Direct Install Script (v0.106.0+)
Each GitHub release also carries the install script as an asset (install.sh for macOS and Linux, install.ps1 for Windows), which is useful when you want to pin the source to GitHub:60
curl -fsSL https://github.com/openai/codex/releases/latest/download/install.sh | sh
The script auto-detects your platform and architecture, downloads the correct binary, and places it on your PATH.
Binary Downloads
For environments without npm or Homebrew, download platform-specific binaries from GitHub Releases1:
| Platform | Binary |
|---|---|
| macOS Apple Silicon | codex-aarch64-apple-darwin.tar.gz |
| macOS x86_64 | codex-x86_64-apple-darwin.tar.gz |
| Linux x86_64 | codex-x86_64-unknown-linux-musl.tar.gz |
| Linux arm64 | codex-aarch64-unknown-linux-musl.tar.gz |
| Windows x86_64 | codex-x86_64-pc-windows-msvc.exe.zip |
| Windows arm64 | codex-aarch64-pc-windows-msvc.exe.zip |
System Requirements
- macOS: Apple Silicon or Intel (full sandbox support via Seatbelt)
- Linux: x86_64 or arm64 (sandbox via bubblewrap + seccomp)
- Windows: Windows 11 recommended (a fully updated Windows 10 is best effort). Three native sandbox implementations:
mxc(recommended on compatible Windows 11 builds), then the legacyelevatedandunelevatedfallbacks; details under Platform-specific enforcement. WSL2 is also supported and uses the Linux sandbox2
Authentication
codex login # Interactive OAuth (recommended)
codex login --device-auth # OAuth device code flow (headless)
codex login --with-api-key # API key from stdin
codex login status # Check auth state (exit 0 = logged in)
codex logout # Clear stored credentials
Two authentication paths:
- ChatGPT Account (recommended): Sign in with your existing Plus, Pro, Business, Edu, or Enterprise subscription. Full feature access including cloud tasks. The pricing page lists the CLI from Plus up; Free and Go get GPT-6 Luna at Standard speed in the desktop app, subject to rollout.203
- API Key: for the interactive CLI, pipe the key in:
printenv OPENAI_API_KEY | codex login --with-api-key. TheCODEX_API_KEYenvironment variable is for non-interactive entry points:codex exec,codex review, the TypeScript SDK, andcodex exec-server --remote. Some features (cloud threads) may be unavailable.224
Expert tip: Credential storage is configurable via
cli_auth_credentials_storeinconfig.toml. Options:file(default;auth.jsonunderCODEX_HOME),keyring(OS credential store; fails if it is unavailable),auto(keyring if available, file fallback), orephemeral(credentials kept in memory for the current process only).206
Amazon Bedrock login (v0.145.0, experimental): Teams whose model access runs through Amazon Bedrock get an experimental login path with custom endpoint and authentication support, alongside the existing managed API-key authentication (v0.140.0+) and the AWS credential chain (see Custom Model Providers). GPT-5.6 Sol was the default Bedrock model at v0.145.0;117 GPT-6 Sol took over in v0.157.0, GPT-6.1 Sol in v0.159.1, and GPT-6.2 Sol in v0.169.1, and it is the Bedrock default at v0.172.0.175179258 v0.150.0 fixes conversation compaction and multi-agent compatibility for Amazon Bedrock models.141 v0.151.0 adds a feature-gated Amazon Bedrock option to eligible TUI sign-in flows: onboarding discovers existing AWS profiles and environment credentials, offers manual setup for profiles, access keys, environment variables, and Bedrock API keys, collects the AWS Region, masks secrets during entry, and restarts the embedded server when the provider changes.145 v0.152.0 surfaces credential-refresh progress: the TUI and codex exec show progress while a model provider refreshes expired credentials, Amazon Bedrock session reauthentication included, backed by stable modelProvider/authRecoveryStarted and modelProvider/authRecoveryCompleted app-server notifications carrying the thread, turn, provider, and a user-facing message.147
Sign in another way (v0.167.0): the sign-in screen groups API-key and cloud-provider options under “Sign in another way.” With gcp_setup_wizard = true under [features], it also offers Google Cloud Vertex AI setup with Application Default Credentials or a credential file; the flag ships off, and the gcp provider can always be configured by hand (see Custom Model Providers).200201
Shell Completions
# Generate completions for your shell
codex completion bash > /etc/bash_completion.d/codex
codex completion zsh > ~/.zsh/completions/_codex
codex completion fish > ~/.config/fish/completions/codex.fish
Verify Installation
codex --version
# codex-cli 0.172.0
Quick Start: Your First Session
Get from zero to productive in 5 minutes.
1. Install and authenticate:
npm i -g @openai/codex # Install
codex login # Sign in with ChatGPT (opens a browser)
2. Navigate to a project:
cd ~/my-project # Any git repo works
3. Start Codex:
codex
You’ll see the interactive TUI. Codex reads your project structure automatically.
4. Ask a question:
> What does this project do? Summarize the architecture.
Codex reads key files and explains the codebase. A question like this makes no changes — Codex only patches files when you ask for a change, and the sandbox and approval policy govern when it must ask first.
5. Make a change:
> Add input validation to the login endpoint
Codex shows its edits as a diff. Whether it asks before applying them depends on the sandbox and approval policy. When it does ask, the prompt lists the choices: by default y is “Yes, proceed”, a is “Yes, and don’t ask again for these files”, and n or Esc is “No, and tell Codex what to do differently”.236
6. Use a slash command:
> /plan Refactor the database layer to use connection pooling
Codex creates a plan without executing. Review the plan, then approve to begin execution.
7. Check your work:
> /diff
See all changes Codex has made in the current session.
What’s next:
- Set up
AGENTS.mdwith project instructions (see How Does AGENTS.md Work?) - Configure a profile for your workflow (see Profiles)
- Try
codex execfor non-interactive automation (see Non-Interactive Mode)
Core Interaction Surfaces
Codex provides five distinct interfaces backed by the same intelligence. Each surface optimizes for a different workflow pattern.
1. Interactive CLI (Terminal UI)
codex # Launch TUI
codex "fix the failing tests" # Launch with initial prompt
codex -m gpt-6.1-terra # Specify model
codex --sandbox workspace-write --ask-for-approval on-request
The terminal UI is a full-screen application with:
- Composer: Type prompts, attach files with
@, run shell commands with!prefix - Output pane: Streaming model responses, tool calls, and command output
- Status line: by default the model with its reasoning effort, the current directory, and the thread name;
/statuslinechanges the items272
Key TUI shortcuts:
| Shortcut | Action |
|---|---|
@ |
Fuzzy file search (attach to context) |
!command |
Run shell command directly |
Ctrl+G |
Open external editor ($VISUAL / $EDITOR) |
Ctrl+R |
Reverse history search (v0.121.0+) — readline-style search through prior prompts, including slash commands issued in earlier turns82 |
Enter (while running) |
Inject new instructions mid-turn |
Esc twice |
Edit previous messages |
| Arrow keys | Navigate draft history |
Status line change (v0.121.0): v0.121.0 added a context-percent item to the status line (#17637).82
Slash commands available in the TUI:
| Command | Description |
|---|---|
/quit or /exit |
Exit the CLI |
/new |
Start new conversation in same session |
/resume |
Resume a saved conversation; since v0.167.0 the picker switches between connected backends, keeps your draft when you switch, and marks sessions with unread results200 |
/fork |
Fork current conversation into new thread |
/worktree |
Create an isolated managed-worktree checkout for a new or forked session (v0.154.0; on by default since v0.156.0). Also --worktree at launch; codex exec supports managed worktrees, and the TUI adds worktree session commands and a browser for resuming worktree sessions. v0.155.0: the agents overview adds hide, archive, and delete for worktree sessions, ownership details, and confirmed deletion of clean managed worktrees (#43942, #44424, #44433). v0.156.0: worktrees become a stable, default-on feature (#44870), worktree sessions can use an existing local daemon (#46498), and worktree sessions can be created from the agents overview (#45276). No off switch since v0.164.0: the worktrees flag is removed with the feature left on, and Codex skips the key when it loads [features], so the worktrees = false opt-out that worked from v0.156.0 through v0.163.0 no longer does anything.197201 If worktree creation or /cd fails with “The local Codex service cannot check background terminals”, your local daemon predates the method worktrees need: run codex app-server daemon update, then restart Codex (#44870).161165170172 v0.162.0: the model gets tools to create and list managed worktrees itself, in trusted local projects (#50148).188 |
/model |
Switch model and reasoning effort; since v0.164.0 /model [model] --reasoning <level> --speed <tier> applies to the current session without changing saved defaults (space or = flag values; a bare /model opens the picker)196 |
/presets |
Ten numbered slots for reusable prompts and slash commands, with a keyboard menu; a preset can capture composer text or the current model, reasoning effort, and speed, and persists under tui.presets in the active user configuration (v0.164.0)196 |
/compact |
Summarize conversation to free tokens |
/recap |
Summarize the current conversation now (v0.151.0). On-demand version of the recap Codex generates automatically for eligible idle, unfocused conversations, with visible progress and actionable errors.145 v0.153.0: tui.auto_recap = false turns off the automatic recaps; manual /recap stays available regardless.149 |
/diff |
Show git diff including untracked files |
/review |
Code review of working tree |
/plan |
Enter plan mode |
/goal |
Create, pause, resume, or clear persisted work goals (v0.128.0+). v0.133.0: goals are enabled by default, backed by dedicated storage, and track progress across active turns; OpenAI now documents Goal mode as generally available across the Codex app, IDE extension, and CLI.98100 |
/vim |
Toggle modal Vim editing in the composer (v0.129.0+). Configure via TUI keymap settings to set Vim as the default editing mode. v0.150.0: use . to repeat your last edit.89141 v0.151.0: line-local f/F/t/T find and till motions plus gg/G buffer jumps, all usable with c/d/y operators and dot-repeat.145 v0.152.0: draft-local / and ? literal search with highlighted matches and n/N repeat navigation, also composable with operators; fresh drafts start in Insert mode.147 v0.153.0: bounded undo/redo with u and Ctrl+R, restoring complete drafts including pasted content and attachments.149 v0.154.0: R replace mode with undo and dot-repeat, plus recovered Escape handling in legacy terminals.161 |
/voice |
Live voice conversations in the TUI, on by default since v0.156.0. Shipped experimental and opt-in in v0.155.0 (a live conversation with a streaming transcript and microphone controls, #43581, #43651, #44331; a configurable mute shortcut, #43690; signed macOS voice resources, #43983), then promoted to a stable, default-on feature in v0.156.0 (#44921), so /voice no longer needs /experimental on a supported build. v0.156.0 also adds a configurable F8 toggle (#46071), a /voice settings picker for choosing the voice used by future conversations (#44622), bundled voice runtimes for Linux and Windows (#44714, #44922), voice-session analytics attribution (#46058), reduced-motion handling (#46835), and playback preserved across pauses and packet bursts (#46880). No off switch since v0.164.0: the realtime_conversation flag is removed with the feature left on (the source calls it a “Removed compatibility flag. TUI voice availability follows platform support.”), so realtime_conversation = false under [features] no longer hides /voice; the config reference still described the old switch on November 10, 2026.197201 Distinct from the spacebar voice transcription that shipped in v0.105.0 and was removed in v0.118.0.165170172237 v0.161.0: pick your microphone, speaker, and microphone input channels; the choice is saved locally (#49437, #49836).187 |
/hooks |
Browse and toggle lifecycle hooks from the TUI (v0.129.0+). Discover available hooks, see which are active, and toggle individual hooks without leaving the session.89 |
/mention |
Attach file to conversation |
/init |
Generate AGENTS.md scaffold |
/status |
Session config and token usage; v0.148.0 adds estimated thread credits/cost for eligible workspaces127 |
/export |
Export the complete conversation to Markdown — clipboard or a new file (v0.148.0)127 |
/cd, /pwd, /cwd |
Manage the session’s working directory from inside the TUI (v0.149.0); as of v0.151.0, /cd preserves restored permission profiles and is rejected when a directory change cannot represent the profile safely, so it no longer weakens sandbox restrictions129144 |
/usage |
Daily, weekly, and cumulative account token activity (v0.140.0+). v0.142.0: also shows and redeems earned usage-limit reset credits, with confirmation, retry, and refreshed availability states.107109 v0.144.0: reset credits show their type and expiration, and the redemption picker lets you choose which credit to redeem.112 v0.156.0: /usage becomes an account analytics dashboard – stacked charts, a Summary tab, Top chats (consumer included), gated plan usage history, and plugin and skill activity (#45763, #45764, #45765, #45766, #45768, #45769, #45770, #45772), with keyboard help, mouse navigation, and preserved reading positions (#46863, #46864, #46866).170 |
/tui |
Choose the terminal UI mode for your next launch (v0.156.0). A picker between Scrollback and Fullscreen that, after confirmation, saves tui.fullscreen_transcript to your user config; the running session keeps its current mode until you restart, and launch overrides still apply (#46883). Fullscreen adds a transcript viewer with search and per-activity detail controls, mouse selection and copying, and right-click copy for transcript and composer selections (#46732, #46734, #46895). Fullscreen is on by default since v0.157.0 (#47178), after shipping off by default in v0.156.0: set fullscreen_transcript = false under [tui], or choose Scrollback here, to keep terminal scrollback; --no-alt-screen and tui.alternate_screen = "never" take precedence. v0.157.0 also adds Shift-click to extend a selection (#47414). v0.158.0 adds tui.copy_on_select (auto, the default, copies mouse selections on release except in direct terminals that forward their own copy shortcut; always; never) and tui.right_click_paste (auto, the default, on Windows, WSL, and Linux; on adds macOS; off), and copied selections keep Markdown formatting (#47639, #48469, #48118, #47896). The old features.transcript_v2 flag is deprecated and ignored (#46849).170172175177 |
/daemon |
Update the local background server from the TUI (v0.156.0) (#45854). Launch with --no-daemon to bypass the shared background server entirely (#46088); automatic background-server startup, opt-in in v0.156.0 (#46117), is on by default for eligible interactive launches since v0.157.0 (#47179); set daemon_auto_start = false under [features] to turn it off. /status identifies local background servers (#46905).170175 Since v0.163.0, /daemon can also restart a managed background server, warning about work the restart could interrupt and reconnecting afterwards (#53173).194 |
/rc or /remote |
Manage remote control for the local background server and show device pairing codes without leaving the TUI (v0.171.0); the shell command is codex remote-control256257 |
/import |
Selectively import setup, project configuration, and recent chats from Claude Code (v0.140.0+).107 v0.145.0: expanded to migrate from Cursor as well as Claude Code — settings, MCP servers, plugins, sessions, commands, and project-scoped memories.117 |
/delete |
Permanently delete the current session (v0.140.0+) — also codex delete on the CLI and thread/delete on the app-server, all with confirmation safeguards.107 |
/permissions |
Choose what Codex is allowed to do (permission profile and approvals); since v0.164.0 /permissions <profile-id> selects a built-in or custom permission profile inline (/permissions :read-only; :ask-for-approval and :approve-for-me are aliases)196 |
/personality |
Removed. The command is not in the TUI’s command list at v0.166.0 through v0.172.0; the personality feature flag was retired in v0.156.0 (#45809), and the personality config key is a deprecated compatibility setting: friendly and pragmatic no longer select a style, and none omits the built-in Personality section from model instructions170201206 |
/mcp |
List configured MCP tools; /mcp verbose for diagnostics, and since v0.161.0 /mcp login <name> signs in to a server from inside the session187; since v0.171.0 the login form also takes --environment <id>257 |
/apps |
Browse ChatGPT connectors |
/ps |
Show background terminals |
/skills |
Access and invoke skills |
/plugins |
Browse and manage installed plugins (v0.117.0+); v0.129.0 adds marketplace removal (Ctrl+R) and upgrade (Ctrl+U).89273 |
/title |
Configure which items appear in the terminal title (v0.117.0+) |
/warnings |
View retained warnings and diagnostic details217 |
/pets |
Choose or hide the terminal pet (/pet also works)217 |
/setup-default-sandbox |
Windows only: set up the elevated sandbox217 |
/config |
Searchable preferences panel (v0.163.0): Appearance, Notifications, Input, Sessions, and Text selection tabs; supported changes apply at once, the panel marks the ones that need a restart, and edits persist to the selected local config file (#52990, #53429)194 |
/debug-config |
Show config layers and requirement sources for debugging (before v0.163.0 there was no /config command)138141145 |
/statusline |
Configure TUI footer; v0.129.0 adds an optional theme-aware status line with PR + branch-change summaries.89 With the experimental tui_extensions_statusline flag on (“Custom status line” in /experimental, v0.171.0), it also selects and authors custom MCP status lines.256257 |
/theme |
Preview and persist a syntax-highlighting theme (v0.105.0+). v0.156.0: the picker adds six bundled themes (ada, babbage, curie, cushman, dali, davinci) and theme-aware accents for selected controls; a custom theme file with the same name takes precedence (#46504).61170 |
/feedback |
Send logs to Codex maintainers; since v0.169.0, Ctrl+S in the report editor saves a diagnostic ZIP locally instead, even when uploads are disabled256 |
/logout |
Sign out |
/keymap |
Remap TUI shortcuts; v0.150.0 adds bindable shortcuts that cycle permission modes138141; v0.163.0 adds a leader key (tui.keymap.global.leader, default ctrl-x; bindings such as leader c follow it, and hints stay open until you choose or cancel) and moves voice mute to F9194 |
/rename |
Rename the current thread; v0.150.0 suggests an editable title based on the conversation, and unnamed terminal tasks receive descriptive titles automatically138141 |
/approve |
Approve one retry of a recent auto-review denial138 |
/memories |
Configure memory use and generation138 |
/agents |
View and switch between all active agent sessions; /subagents switches between this session’s subagents138 |
/side or /btw |
Start a side conversation (an ephemeral fork when the command shipped138); since v0.163.0 it returns to an existing side conversation after you switch threads (#52184)194. With the TUI workspace on, the default since v0.171.0, the side conversation opens beside the main chat, several side chats sit in tabs, and saved local side chats can be reopened after a restart256 |
/raw |
Toggle raw scrollback mode for copy-friendly terminal selection138 |
/ide |
Include current selection, open files, and other context from your IDE138 |
/stop or /clean |
Stop all background terminals138 |
/experimental |
Toggle experimental features138. It gated live voice conversations and managed worktrees in v0.155.0; since v0.156.0 both are stable and on by default and no longer appear in this menu (#44921, #44870)165170. Since v0.167.0 the menu lists “System proxy,” which makes Codex requests use the macOS or Windows system proxy settings (#58157)200, and since v0.171.0 “Custom status line” (tui_extensions_statusline)257 |
/app |
Continue this session in the desktop app (macOS and Windows only)138 |
/daybreak |
Turn Daybreak on or off (v0.161.0). Present by default since v0.163.0, when cli_daybreak became stable and on, for eligible OpenAI accounts, API-key accounts included; cli_daybreak = false under [features] hides it187194 |
Workflow picker redesign (v0.129.0): The resume/fork picker is redesigned and a raw scrollback mode is new; the release notes describe TUI workflows as “easier to resume and copy from”.89
Argument completion (v0.172.0): Press
Tabto complete arguments for supported slash commands;/mcp locompletes to/mcp login.256Unified
@mentions menu (v0.140.0): Typing@in the composer now opens a single mentions menu spanning files, plugins, and skills by default, replacing the file-only attach flow.107
2. Desktop App (macOS, Windows, Linux preview)
codex app # Launch desktop app (opens the installer if the app is missing; macOS and Windows)
OpenAI now calls it the ChatGPT desktop app: inside it you choose ChatGPT (Chat or Work) or Codex. It runs on macOS and Windows, with a Linux preview.216 The desktop app puts these in one window; the CLI has its own worktrees (/worktree), forking (/fork), and agent command center (/agents):269
- Multi-tasking: Run projects in parallel and move between their chats
- Git worktree isolation: A chat can run in its own Git worktree, an isolated checkout of your repo
- Review pane: Read the diff, give line-specific feedback, and stage, revert, commit, or push without leaving the app
- Integrated terminal: Each chat has a terminal scoped to its project or worktree
- Pop-out windows: Pop an active chat out into a separate window, with an Always on top option
- Scheduled tasks (formerly Automations): Schedule recurring work, such as a report on recent codebase changes
- Appshots: Attach the frontmost app window (macOS and Windows) to a thread with a screenshot plus available text255
- Built-in browser comments: Preview local or public pages, leave element/area comments, and let Codex address precise visual feedback99
- Computer Use: Let Codex operate allowed apps on macOS and Windows for scoped GUI work; locked use is macOS-only and opt-in for eligible remote Computer Use turns99255
ChatGPT Voice, powered by GPT-Live (desktop 26.715, July 23, 2026): The desktop app can now be driven by speech: talk through work and coordinate tasks across Chat, Work, and Codex without typing. On macOS, turning on Screen context shares an appshot of your frontmost window with the conversation, so you can ask about what you’re looking at instead of describing it. Available on Plus, Pro, Business, Edu, and Enterprise, on the desktop app and through Remote on iOS. This is desktop-surface voice. The CLI has its own, separate voice feature:
/voicelive conversations in the TUI (on by default since v0.156.0).118170Shared thread snapshots (August 20, 2026): On all Codex plans, the macOS desktop app can share a read-only snapshot of a local Codex thread. The snapshot does not update when the original thread changes; personal-account links open for anyone with the link, workspace-account links only for members of the originating workspace. Codex redacts known secret patterns before sharing, but OpenAI tells you to review the shared content because sensitive content may remain. View or revoke links in ChatGPT data controls under Shared links.137
When to use the app vs CLI: Use the desktop app when you’re coordinating multiple workstreams or need visual diff review. Use the CLI when you want terminal composability, scripting, or CI/CD integration.
3. IDE Extension (VS Code, Cursor, Windsurf)
The Codex IDE extension integrates directly into your editor:
- Agent with permission modes: Reads files, makes edits, runs commands; the permissions control beneath the composer can offer Ask for approval, Approve for me, and Full access255
- Editor context: Reference open files, selected code, and recent chats from the composer, and review the changed lines beside your code269
- Shared configuration: The CLI and IDE extension share the same configuration layers269
- Same authentication: Sign in with ChatGPT account or API key224
Install from the VS Code Marketplace (VS Code and VS Code Insiders) or the Cursor and Windsurf extension stores. Xcode and JetBrains IDEs provide their own Codex integrations.3
Model choice in a shared config (November 2026): OpenAI’s docs list GPT-6.2 Astra and GPT-6.2 Sol for the Codex app and CLI and do not list the IDE extension. The extension reads the same
config.toml, and the docs say that when you share a configuration with it you should “pick a model available in every client you use, such asgpt-6.1-sol.”259
4. Codex Cloud
Cloud tasks run in a cloud environment, each task in its own workspace (the codex cloud CLI command that reaches them is marked experimental):4
- Fire and forget: A task keeps working while your computer is asleep
- Parallel execution: Each task has its own workspace, so several can start from the same published environment
- Review, then commit: Inspect the changed files and results, ask for follow-up changes, and commit or open a pull request when you are ready
- Local apply: Pull cloud results into your local repo with
codex apply <TASK_ID>
codex cloud list # List recent cloud tasks
codex apply <TASK_ID> # Apply diff from a specific cloud task
Outside the terminal, start and review cloud tasks on the web or in the desktop app (Work in > Cloud) or on mobile (open Codex).4
5. Browser Extension (Chrome, Edge, Brave, Opera, Vivaldi)
Codex ships as a browser extension for Google Chrome, Microsoft Edge, Brave, Opera, and Vivaldi, adding a fifth surface alongside the CLI, desktop app, IDE extension, and cloud. The extension launched for Chrome in May 2026; the August 25, 2026 changelog added the other four browsers, set up from Settings > Computer Use in the ChatGPT desktop app. All five support tab mentions and browser control; Opera does not support side chat, so start its tasks from the desktop app. The extension is designed to ride alongside your normal browsing rather than take it over: Codex works in parallel across tabs in the background, and you stay in control of which sites it touches.90136
- Signed-in sites: ChatGPT can read or act on sites where you are already signed in; the docs name LinkedIn, Salesforce, Gmail, and internal tools.270
- Per-site control: By default it asks before it interacts with each new website, and you choose Allow once, Allow for this site, Allow for all sites, or Decline. An allowlist and a blocklist live under Settings > Computer Use.270
- Tabs as context: Mention an open tab in the desktop app, or use side chat beside the page in Chrome, Edge, Brave, and Vivaldi.270
- Where it fits: Use it when a task needs signed-in browser context; the built-in browser handles localhost.270
Install from the browser extension docs, the page formerly titled Codex for Chrome.136
Configuration System Deep Dive
Codex uses TOML for configuration. Understanding the precedence hierarchy is critical because it determines which settings win when they conflict.
Precedence (Highest to Lowest)
- Session overrides (highest): CLI flags (
--model,--sandbox,--ask-for-approval,--search,--enable/--disable) and-c key=valueoverrides - Project config (
.codex/config.tomlfiles from the project root down to the current directory; the closest one wins; trusted projects only) - Profile file (
~/.codex/<name>.config.toml, when you select it with--profile <name>) - User config (
$CODEX_HOME/config.toml, defaults to~/.codex/config.toml) - Cloud-managed defaults (a
config.tomldelivered for the signed-in workspace, when there is one) - System config (
/etc/codex/config.tomlon Unix) - Built-in defaults (lowest)
A profile file therefore overrides your user config but not a trusted project’s .codex/config.toml, and cloud-managed defaults sit below anything you set yourself.207
requirements.tomlacts as a policy constraint layer that restricts what values users can select after normal config merging. See Enterprise Deployment.
Config File Locations
| Scope | Path | Purpose |
|---|---|---|
| User | ~/.codex/config.toml |
Personal defaults |
| Project | .codex/config.toml |
Per-repo overrides |
| Profile | ~/.codex/<name>.config.toml |
Per-mode overlay, selected with --profile <name> |
| System | /etc/codex/config.toml |
Machine-wide defaults |
| Managed | /etc/codex/requirements.toml |
Admin-enforced policy constraints |
Expert tip: The
CODEX_HOMEenvironment variable overrides the default~/.codexdirectory. Useful for CI/CD or multi-account setups.Desktop multi-folder projects (26.715, July 23, 2026): A local project in the ChatGPT desktop app can now span several related folders, with one of them designated the primary folder (project menu → Edit project). Automatic discovery of
config.tomlruns against the primary folder only; secondary folders stay available for file search, reading, and editing but contribute no configuration. A.codex/config.tomlsitting in a secondary folder is a file Codex can read, not a config it loads. This is desktop-app project scoping, not a change to the precedence rules above — the CLI still resolves project config by walking upward from the current working directory.118
Complete Configuration Reference
Top-level keys must come before the first [table] header: in TOML, every key after a header belongs to that table, and Codex loads a misplaced key without an error and without applying it (pass --strict-config to make unrecognized fields an error). The block below is ordered that way, top-level keys first, then tables.213
# ~/.codex/config.toml: annotated reference
# Part 1: top-level keys. Keep these above every [table] header.
# ─── Model Selection ───────────────────────────────────
model = "gpt-6.2-sol" # Docs' example; unset = bundled default (gpt-6.2-sol since v0.169.1)
model_provider = "openai" # Built-in ids: openai, ollama, lmstudio, amazon-bedrock, amazon-bedrock-runtime, gcp; or a custom provider id
model_context_window = 500000 # Token count available to active model (override; 500000 is GPT-6.2 Sol's catalog default)
model_auto_compact_token_limit = 200000 # Threshold triggering automatic history compaction
model_reasoning_effort = "medium" # low|medium|high|xhigh|max|ultra (model-dependent; GPT-6.2 Sol's catalog default is low)
model_reasoning_summary = "auto" # auto|concise|detailed|none
model_verbosity = "medium" # low|medium|high
# personality = "none" # Deprecated key: friendly/pragmatic no longer select a style; "none" omits the built-in Personality section
review_model = "gpt-6.2-sol" # Optional model for /review command
service_tier = "fast" # A tier the active model advertises: "fast" (sent as "priority"; 2x included usage on GPT-6.2 models, 2.5x on earlier ones) or "ultrafast" where offered. Also "flex", and "default" for Standard
oss_provider = "lmstudio" # lmstudio|ollama (used with --oss)
# ─── Sandbox & Approval ───────────────────────────────
sandbox_mode = "workspace-write" # read-only|workspace-write|danger-full-access
approval_policy = "on-request" # on-request|never|{ granular = { ... } } (untrusted retired in v0.149.0)
# ─── Web Search ────────────────────────────────────────
web_search = "live" # disabled|cached|indexed|live (constrained by allowed modes)
# ─── Tools ─────────────────────────────────────────────
tools.update_plan.enabled = false # Planning tool opt-in (v0.152.0); exposes update_plan when true
# ─── Instructions ──────────────────────────────────────
developer_instructions = "" # Additional injected instructions
# model_instructions_file = "/path/to/instructions.md" # Replaces the built-in model instructions (the schema discourages it)
compact_prompt = "" # Custom history compaction prompt (blank = built-in)
# ─── Shell ─────────────────────────────────────────────
allow_login_shell = false # Default true; false means shell tools never use a login shell
# ─── Authentication ────────────────────────────────────
cli_auth_credentials_store = "file" # file|keyring|auto|ephemeral
forced_login_method = "chatgpt" # chatgpt|api
# mcp_oauth_callback_port = 5555 # Fixed port for the MCP OAuth callback; unset = a port chosen by the OS
mcp_oauth_credentials_store = "auto" # auto|file|keyring
# ─── Storage ───────────────────────────────────────────
tool_output_token_limit = 10000 # Token budget per tool output stored in history (global; per-tool MCP overrides since v0.152.0)
# log_dir = "/path/to/codex-logs" # Custom log directory (default: $CODEX_HOME/log)
# sqlite_home = "/path/to/codex-state" # Where the SQLite state database lives (default: $CODEX_HOME)
# ─── UI & Display ──────────────────────────────────────
file_opener = "vscode" # vscode|vscode-insiders|windsurf|cursor|none
hide_agent_reasoning = false
show_raw_agent_reasoning = false
check_for_update_on_startup = true
# ─── Project Instructions ──────────────────────────────
project_doc_max_bytes = 32768 # Max combined project instruction bytes (32 KiB)
project_doc_fallback_filenames = [] # Alternative instruction filenames
project_root_markers = [".git"] # Project root detection
# ─── Notifications ────────────────────────────────────
notify = ["terminal-notifier", "-title", "Codex"] # Command for notifications
# Part 2: tables. Every key below a [table] header belongs to that table.
# ─── Sandbox Detail ────────────────────────────────────
[sandbox_workspace_write] # These four keys are the whole table
writable_roots = [] # Additional writable paths
network_access = false # Allow outbound network
exclude_tmpdir_env_var = false # true removes $TMPDIR from the writable roots
exclude_slash_tmp = false # true removes /tmp from the writable roots
# ─── Shell Environment ─────────────────────────────────
[shell_environment_policy]
inherit = "all" # all|core|none
ignore_default_excludes = false # false strips KEY/SECRET/TOKEN vars; the default is true, which keeps them
exclude = [] # Glob patterns to exclude
set = {} # Explicit overrides
include_only = [] # Whitelist patterns
# ─── History ───────────────────────────────────────────
[history]
persistence = "save-all" # save-all|none
# max_bytes = 10485760 # Optional cap on history.jsonl; the oldest entries are dropped past it
# ─── Terminal UI ───────────────────────────────────────
[tui]
notifications = false # Enable notifications
notification_method = "auto" # auto|osc9|osc777|bel (osc777 since v0.168.0; the config reference page still lists only auto, osc9, and bel)
animations = true
show_tooltips = true
alternate_screen = "auto" # auto|always|never
status_line = ["model", "context-remaining", "git-branch"]
mouse_scroll_speed = 1.0 # Mouse-wheel scroll multiplier, a finite positive number (v0.162.0)
# ─── Feature Flags ─────────────────────────────────────
# Use `codex features list` for current names/stages/defaults.
[features]
shell_tool = true # Shell command execution (stable)
unified_exec = true # PTY-backed exec (stable)
shell_snapshot = true # Shell env snapshots (stable)
enable_request_compression = true # zstd request compression where supported (stable)
fast_mode = true # Service-tier selection and Fast-tier commands (stable)
instant_interrupt = true # New input preempts the model's response; on by default since v0.162.0 (under development)
api_key_model_discovery = true # Fetch the model catalog when signed in with an OpenAI API key; on by default since v0.161.0 (stable)
goals = true # Goal mode; stable and on by default in v0.133.0+
hooks = true # Lifecycle hooks (stable)
tui_workspace = true # Workspace panes beside the main chat; on by default since v0.171.0 (stable)
mcp_lazy_stdio_startup = true # Optional stdio MCP servers with a cached tool list start on their first tool call; on by default since v0.172.0 (stable)
plugins = true # Plugin system (stable)
plugin_sharing = true # Workspace plugin sharing (stable)
browser_use = true # In-app browser automation (stable)
browser_use_external = true # Browser-extension browser use (stable)
computer_use = true # Computer Use, macOS and Windows (stable, plan/region gated)
in_app_browser = true # Shared rendered-page preview (stable)
image_generation = true # Image-generation tool (stable)
guardian_approval = true # Auto-review approval path (stable)
skill_mcp_dependency_install = true # Prompt/install missing skill MCP deps (stable)
tool_suggest = true # Tool/plugin suggestion surface (stable)
workspace_dependencies = true # Workspace dependency discovery (stable)
memories = true # Local memories (stable flag, off by default; this line opts in)
network_proxy = false # Sandboxed-command network proxy (experimental); boolean or table, see below
prevent_idle_sleep = true # Keep machine awake during active turns (experimental; off by default, this line opts in)
guardian_conversation_history_tools = false # Guardian reads earlier user messages (under development, v0.160.0)
# Removed or deprecated feature names still appear in `codex features list`
# for migration diagnostics. Do not set removed flags such as
# `collaboration_modes`, `request_rule`, `codex_git_commit`,
# `apply_patch_freeform`, `search_tool`, or `js_repl` in new configs.
# Also removed, and skipped when the config loads (v0.172.0): `personality`,
# `plugin_hooks`, `terminal_resize_reflow`, `worktrees`, `realtime_conversation`.
# Removed since then: `plugin_discovery_prefetch` (v0.169.0), `code_mode_host_grpc` (v0.172.0).
# Deprecated since v0.168.0: `multi_agent`. Setting it draws a startup warning;
# use `enabled` under [agents] below to turn subagent tools on or off.
# ─── Guardian Auto-Review (v0.160.0 history keys) ─────
[auto_review]
conversation_history_max_output_tokens = 4000 # Per history-tool response, estimated tokens (default 4,000)
experimental_conversation_history_prompt = "" # Blank = built-in retrieval instructions
# ─── Multi-Agent Roles (v0.102.0+) ───────────────────
[agents]
enabled = true # Subagent tools; true is the default, false turns them off (replaces the deprecated features.multi_agent)
max_concurrent_threads_per_session = 4 # Spawned-agent threads open at once, excluding the primary thread (legacy alias: max_threads). Unset, the default is 3 on multi-agent v2 and 6 on v1
[agents.explorer]
description = "Read-only codebase navigator"
config_file = "~/.codex/profiles/explorer.toml"
# ─── Per-Project Overrides ────────────────────────────
[projects."/absolute/path/to/repo"]
trust_level = "trusted" # Per-project trust override
features.network_proxy is boolean | table. The boolean form only starts or stops the proxy; the table form carries the policy. The proxy is what enforces permission-profile domain rules for sandboxed commands: with it off, [permissions.<name>.network] domain rules are not enforced and command network access is direct. It does not filter web search, apps, MCP servers, or other hosted tools.139
[features.network_proxy]
enabled = true
allow_local_binding = false
proxy_url = "http://127.0.0.1:3128"
[features.network_proxy.domains]
"api.github.com" = "allow"
"*.npmjs.org" = "allow" # subdomains only
"**.example.com" = "deny" # apex plus subdomains; deny wins on conflicts
| Key | Type | Default | Meaning |
|---|---|---|---|
enabled |
boolean | false |
Start the sandboxed-command network proxy when command network access is enabled |
domains |
map of host to allow or deny |
unset (no external destinations allowed) | Exact hosts, *.example.com (subdomains only), **.example.com (apex plus subdomains), or a global * allow rule; deny wins |
unix_sockets |
map of path to allow or deny |
unset | Unix socket policy; add allow entries for permitted sockets |
allow_local_binding |
boolean | false |
Broader local and private-network access; exact local IP or localhost allow rules still work without it |
enable_socks5 |
boolean | true |
Expose SOCKS5 support |
enable_socks5_udp |
boolean | true |
Allow UDP over SOCKS5 |
allow_upstream_proxy |
boolean | true |
Chain through an upstream proxy from the environment |
dangerously_allow_non_loopback_proxy |
boolean | false |
Permit non-loopback listener addresses (exposes the proxy beyond localhost) |
dangerously_allow_all_unix_sockets |
boolean | false |
Permit arbitrary Unix socket destinations instead of allowlist-only access |
proxy_url |
string | "http://127.0.0.1:3128" |
HTTP listener URL |
socks_url |
string | "http://127.0.0.1:8081" |
SOCKS5 listener URL |
Administrator-managed network requirements in requirements.toml can start the proxy without features.network_proxy. The table is [network_proxy] as of v0.166.0, with [experimental_network] still accepted as an alias; the docs say to use one name per requirements layer and to keep the alias in published policies until every client and policy validator supports the new name.139
Profiles
Named configuration presets for different work modes. Since Codex 0.134.0 each profile is its own file (~/.codex/<name>.config.toml, holding top-level keys only), and --profile <name> overlays that file on ~/.codex/config.toml. The older [profiles.<name>] tables inside config.toml are no longer read, and a leftover one makes --profile <name> refuse to start until you move its keys into the profile file. A leftover top-level profile = "<name>" selector is rejected outright: Codex stops with the message “legacy profile = "<name>" config is no longer supported; use --profile <name> with <name>.config.toml instead” until you delete the key.131238
# ~/.codex/fast.config.toml
model = "gpt-6-luna"
# GPT-6 Sol/Luna start on the Fast tier (2.5x included usage) unless service_tier is set; /fast toggles it
model_reasoning_effort = "low"
approval_policy = "on-request"
sandbox_mode = "workspace-write"
# ~/.codex/careful.config.toml
model = "gpt-6.2-astra"
model_reasoning_effort = "xhigh"
approval_policy = "on-request" # `untrusted` retired in v0.149.0
sandbox_mode = "read-only"
# ~/.codex/auto.config.toml
model = "gpt-6.2-sol"
# GPT-6.2 Sol starts at Standard speed; /fast toggles Fast (2x included usage)
model_reasoning_effort = "medium"
approval_policy = "never"
sandbox_mode = "workspace-write"
A profile file is a layer above your base user config and below project and CLI config, so it only needs the values that differ from your base.131
Activate a profile:
codex --profile fast "quick refactor"
codex --profile careful "security audit"
codex -p auto "fix CI"
Expert tip: There is no default-profile selector: since 0.134.0 a top-level
profile = "<name>"key is an error that stops Codex from starting, so delete it. Keep your everyday settings in~/.codex/config.tomland use profile files for the exceptions, selected per session with--profile fast.131238
Custom Model Providers
Connect to Azure, AWS Bedrock, local models, or proxy services:
[model_providers.azure]
name = "Azure OpenAI"
base_url = "https://YOUR_PROJECT.openai.azure.com/openai"
wire_api = "responses"
query_params = { api-version = "2025-04-01-preview" }
env_key = "AZURE_OPENAI_API_KEY"
# Built-in amazon-bedrock provider (v0.123.0+, first-class in v0.124.0+)
# AWS SigV4 signing + credential-based auth; AWS profile selectable via the
# nested `aws.profile` field (NOT a top-level `aws_profile` key).
# v0.130.0+ also accepts credentials from `aws login` (the AWS console-login
# flow): console-login profiles resolve through the AWS SDK's login
# credentials provider (#21623).
# v0.140.0+ adds managed Amazon Bedrock API-key authentication, and stores
# CLI and MCP OAuth credentials in encrypted local storage.
# Select it with a top-level `model_provider = "amazon-bedrock"`. On this
# built-in provider you can set only `base_url`, `auth`, `http_headers`, and
# the `aws` fields (`profile`, `region`, `credential_export`, `auth_refresh`);
# any other key, a `name` included, stops config.toml from loading.
[model_providers.amazon-bedrock.aws]
profile = "default" # any profile from ~/.aws/credentials
# Region/credential resolution otherwise follows the standard AWS chain;
# v0.130.0 added support for `aws login` console-login profiles in addition
# to static access keys and IAM role assumption.
[model_providers.local_ollama] # pick your own ID: `ollama` and `lmstudio` are reserved built-ins
name = "Ollama (custom endpoint)"
base_url = "http://localhost:11434/v1"
# wire_api defaults to "responses", the only supported value
On the built-in amazon-bedrock provider only base_url, auth, http_headers and the aws fields can be set; any other key, a name included, stops config.toml from loading.253 Managed Bedrock API-key authentication and encrypted credential storage arrived in v0.140.0,107 and aws login console-login profiles in v0.130.0.91
env_key names the environment variable that holds the provider’s API key; the key itself never goes in config.toml. A provider with requires_openai_auth = true shows the login screen on first run and stores its credentials in the backend chosen by cli_auth_credentials_store (file, keyring, auto, or ephemeral), not necessarily in auth.json. Since v0.160.0, a provider that sets model_catalog_url gets only the models in that catalog, with no bundled models merged in, and a failed catalog refresh discards cached entries rather than reusing stale ones.183 Since v0.162.0 a custom Responses-compatible provider can also declare what it supports under [model_providers.<name>.capabilities]: external_web_access = false keeps hosted web search off the live web for that provider, and remote_compaction = "v2" opts it into the Responses compaction_trigger protocol, which otherwise only OpenAI and Azure Responses providers get ("unsupported" keeps compaction local).188
Google Cloud Vertex AI (v0.165.0+). The built-in gcp provider sends requests to Vertex AI with Google Application Default Credentials: set model_provider = "gcp" and, when the environment does not already carry them, the project and location (the provider’s fields take precedence over GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION; the location defaults to global). credential_file points the auth command at a specific ADC file instead of GOOGLE_APPLICATION_CREDENTIALS. GPT-6.1 Terra is in the Vertex AI catalog since v0.166.0. Since v0.167.0 the sign-in screen can run a setup wizard for this provider (Application Default Credentials or a credential file) when you set gcp_setup_wizard = true under [features]; the flag ships off.198199200201
model_provider = "gcp"
[model_providers.gcp]
project_id = "my-project" # or GOOGLE_CLOUD_PROJECT
location = "global" # or GOOGLE_CLOUD_LOCATION; global when neither is set
# credential_file = "/path/to/adc.json" # overrides GOOGLE_APPLICATION_CREDENTIALS for the auth command
Warning: The
chat/completionswire API is gone from Codex. OpenAI announced the removal for February 2026,34 and current releases refuse to load a provider that setswire_api = "chat", with an error that says it “is no longer supported” and tells you to setwire_api = "responses".responsesis the only accepted value and the default when the key is omitted, so a custom provider has to expose a Responses-compatible endpoint. For Ollama and LM Studio, use the built-in local providers through--oss(below) instead of a Chat Completions URL.202207
Use local models with the --oss flag:
codex --oss "explain this function" # Uses default OSS provider
codex --oss --local-provider lmstudio "explain" # Explicit LM Studio
codex --oss --local-provider ollama "explain" # Explicit Ollama
Or set the default local provider for --oss in config. With neither --local-provider nor oss_provider set, the interactive CLI asks which one to use and codex exec exits with an error.207
oss_provider = "lmstudio" # or "ollama"
Inline Config Overrides
Override any config value from the command line:
codex -c model="gpt-6.2-sol" "refactor the API"
codex -c 'sandbox_workspace_write.network_access=true' "install dependencies"
codex -c model_reasoning_effort="xhigh" "debug the race condition"
Which Model Should I Choose?
Available Models (November 2026)
| Model | Input / Total Context | Default Reasoning | Best For |
|---|---|---|---|
| gpt-6.2-sol | 922K / 1.05M (API); 500K in the Codex catalog and the models docs (872K catalog maximum) | low (catalog); the docs say to start with the effort your client selects |
Everyday coding, writing, and multistep work; the bundled default since v0.169.1 (launched November 17, 2026). The models docs: “Choose GPT-6.2 Sol for everyday coding, writing, and work across several sources”; the API page: “Our go-to model for everyday work, from coding to powering agents at scale.” First in the CLI picker (“Fast, go-to model for coding and everyday work”) and the default in the Amazon Bedrock and Vertex AI catalogs too. Codex credits: 50 / 2.5 cached / 250 output per 1M tokens, the same as GPT-6.1 Sol, with a larger Plus band (17-180 messages against 15-160). API $2/$10 per MTok ($0.10 cached input; $4/$15 above 272K input tokens, applied to the full request), 128K max output, knowledge cutoff June 1, 2026. Reasoning Low through Ultra. The catalog sets no default service tier, so sessions start at Standard; Fast draws included limits and purchased credits at 2x. Ultrafast is open to Pro $200, Pro $500, and eligible Enterprise and Edu workspaces: 6x included limits, and purchased credits at 3x through February 28, 2027 (6x after). The catalog bundled with v0.172.0 advertises only Fast; /ultrafast shows up when the catalog your account is served offers the tier. Available on Plus, Pro, Business, Enterprise, and Edu in the Codex app and CLI per the pricing page (the launch announcement names Plus, Pro, Enterprise, and Edu, without Business), and off in Enterprise and Edu workspaces until an administrator enables it258259260261 |
| gpt-6.2-astra | 922K / 1.05M (API); 272K in the Codex catalog and the models docs (872K catalog maximum) | low (catalog); the docs say to start with the effort your client selects |
Demanding work across code, apps, or research (launched November 17, 2026). The models docs: “For demanding work across code, apps, or research, choose GPT-6.2 Astra. In Codex, try Astra to trace a bug across services, fix it, and test the change”; the API page: “Our most capable model for your hardest projects, from start to finish.” Second in the CLI picker (“Our most capable model for complex coding and professional work”). Codex credits: 200 / 10 cached / 1,000 output per 1M tokens, 20% below GPT-6 Astra on input and output and 60% below on cached input; Plus band 6-50 messages. API $8/$40 per MTok ($0.40 cached input; $16/$60 above 272K input tokens, applied to the full request), 128K max output, knowledge cutoff May 18, 2026. Reasoning Low through Ultra. Sessions start at Standard; Fast draws included limits and purchased credits at 2x. Ultrafast on Pro $500 and eligible Enterprise and Edu workspaces, not Pro $200, at the same multipliers as GPT-6.2 Sol. Same plans, clients, and administrator switch as GPT-6.2 Sol258259260261 |
| gpt-6.1-sol | 922K / 1.05M (API); 500K default in Codex per the models docs and, since v0.169.1, the bundled catalog (272K there before) | low (catalog) |
Previous-generation Sol; the bundled default from v0.159.1 until v0.169.1 (docs changelog September 29, 2026). The picker now reads “Previous generation model for coding and everyday work” and lists it fourth. The models docs keep a card for it, “Performance close to GPT-6 Astra for complex work at a lower cost. Consider it for repeated, long-running work across code, apps, and documents,” and give it as the example of a model available in every client when a configuration is shared with the IDE extension; the API page: “Use GPT-6.1 Sol for complex coding, computer use, and professional work.” Codex credits: 50 / 2.5 cached / 250 output per 1M tokens; API $2/$10 per MTok ($0.10 cached input), 128K max output, knowledge cutoff April 30, 2026. Reasoning Low through Ultra. Sessions start at Standard; Fast draws included limits at 2.5x and purchased credits at 2x. Ultrafast (Pro $500 and eligible Enterprise and Edu plans) draws included limits at 8x and purchased credits at 6x; on the API it is the ultrafast service tier at $12/$60 per MTok. Subscription usage carries no long-context surcharge. Available on Plus, Pro, Business, Enterprise, and Edu, and off in Enterprise and Edu until an administrator enables it; the Plus plan card still names it179202203204258259260 |
| gpt-6.1-terra | 1.05M (API); 500K in the Codex catalog (872K maximum) | low (catalog); medium on the API, where none through max are accepted |
Everyday writing and visual work (in ChatGPT Work and Codex since October 26, 2026; bundled catalog entry since v0.165.0, Vertex AI and Bedrock catalogs since v0.166.0) – the Codex models docs: “a fast, efficient choice for writing, visual understanding, and computer use”; third in the picker since v0.169.1 (“Efficient model that excels at visual understanding and computer use”);258259 the API page: “A fast, efficient model for visual reasoning, precise computer use, and clear, natural writing,” with image input. Not available in Chat; no UAE inference residency; Enterprise access depends on workspace settings. Codex credits: 25 / 1.25 cached / 125 output per 1M tokens; API $1/$5 per MTok ($0.05 cached input), 128K max output, knowledge cutoff June 1, 2026; prompts over 272K input tokens pay 2x input and 1.5x output. The docs set a floor for selecting it by name: “GPT-6.1 Terra requires Codex CLI 0.159.0 or later. To use it, run codex -m gpt-6.1-terra.”198202 |
| gpt-6-astra | 922K / 1.05M (API); 272K in the Codex catalog | low (the docs’ “Light” starting point and the bundled catalog agree) |
Previous-generation Astra (launched September 3, 2026; succeeded by GPT-6.2 Astra on November 17) – the models docs now pair the two, “GPT-6.2 Astra or GPT-6 Astra, for the hardest end-to-end work,” and its card reads “Combine reasoning and computer use to tackle complex work across code, apps, and research.” The picker labels it “Previous generation model for complex coding and professional work” and lists it fifth since v0.169.1. The bundled default when no model is configured from v0.153.4 until v0.159.1. API: $10/$50 per MTok at standard short-context rates ($20/$75 above 272K input tokens, applied to the full request), 128K max output, knowledge cutoff April 30, 2026. Codex credits: 250 / 25 cached / 1,250 output per 1M tokens, the highest rate of the models in the credit table below (GPT-6.2 Astra is 200 / 10 / 1,000). The models page has no Codex cloud availability line (on September 23, 2026 it marked Astra unavailable there). Reasoning ladder: Low, Medium, High, Extra High, Max, Ultra154157179231234258259260 |
| gpt-6-sol | 922K / 1.05M (API); 272K in the Codex catalog | medium (catalog and API default) |
Legacy Sol (docs changelog September 22, 2026; in the CLI picker since v0.156.1, labeled “Previous generation workhorse model” from v0.159.1 and “Legacy model for coding and everyday work” since v0.169.1) – the API page: “GPT-6 Sol is built for complex coding and agentic workflows”; the Codex models page no longer has a card for it. The docs’ configuration example now uses gpt-6.2-sol; the CLI’s migration prompts still move saved GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.5, and GPT-5.4 selections here. Codex credits: 50 / 5 cached / 250 output per 1M tokens (half of GPT-5.6 Sol’s promotional rate); API $2/$10 per MTok, knowledge cutoff April 20, 2026. Reasoning up to Ultra in the Codex catalog. The catalog defaults its service tier to Fast in the TUI (included limits at 2.5x); toggle it with /fast. The Amazon Bedrock default from v0.157.0 until v0.159.1. Not the same model as GPT-5.6 Sol172175179203231234258259 |
| gpt-6-luna | 922K / 1.05M (API); 272K in the Codex catalog | medium (catalog); the docs suggest starting at High |
Focused, high-volume tasks (in the CLI picker since v0.156.1) – “Our most efficient model for focused, high-volume tasks, including summarization, extraction, and focused coding.” The rate-limit switch prompt suggests it. Codex credits: 2.5 / 0.25 cached / 12.5 output per 1M tokens; API $0.10/$0.50 per MTok, knowledge cutoff May 18, 2026. Reasoning up to Max, not Ultra. Free and Go plans get it at Standard speed in the desktop app, subject to rollout; in Enterprise and Edu an administrator must enable it. Catalog default service tier is Fast in the TUI, as with Sol172203205229234 |
| gpt-5.5 (API-key sessions and the API only since October 14, 2026) | 272K in the catalog bundled with the CLI; 1.05M on the API | medium |
Former flagship (April 23, 2026) – 82.7% Terminal-Bench 2.0 at launch; labeled “Legacy coding model” in the picker. Retired from Codex for ChatGPT sign-in on October 14, 2026 (19:00 UTC); the OpenAI API and Codex sessions authenticated with an API key are unaffected. The docs name GPT-6.1 Sol (gpt-6.1-sol) as the replacement on Plus, Pro, Business, Enterprise, and Edu, and GPT-6 Luna in the desktop app on Free and Go. The April launch page gave 400K for Codex; the bundled catalog entry reads 272,000.83202205 |
| gpt-5.5-pro | 1M / 1M | high |
Highest-effort tier on GPT-5.5 (April 24, 2026, API-available)83 |
| gpt-5.4 | 1M / 1M | medium |
Prior flagship; bundled selections migrated to GPT-5.6 Terra/Luna in v0.145.0; retired from Codex for ChatGPT sign-in on August 31, 2026; since v0.156.1 the migration prompt points to GPT-6 Sol; removed from the bundled and Bedrock catalogs in v0.158.0, which keeps that prompt for saved selections117172177205229 |
| gpt-5.4-mini | 400K / 400K | medium |
Subagent work, simpler tasks – superseded as the bundled pick by the GPT-5.6 variants in v0.145.0; retired from Codex for ChatGPT sign-in on August 31, 2026; since v0.156.1 the migration prompt points to GPT-6 Luna76117172205229 |
| gpt-5.6 Sol / Terra / Luna | 272K / 272K | low (Sol), medium (Terra, Luna) in the catalog; max supported |
Legacy, still in the bundled catalog and on the credit rate card. The picker labeled them “Older” models from v0.156.1 and “Legacy” since v0.169.1, and offers a migration prompt (Sol and Terra to GPT-6 Sol, Luna to GPT-6 Luna); GPT-5.6 Sol was the Amazon Bedrock default until v0.157.0 moved that to GPT-6 Sol (GPT-6.1 Sol from v0.159.1, GPT-6.2 Sol since v0.169.1). Useful as a pin if your account does not have the GPT-6 models. Bundled CLI default family from v0.145.0 until v0.153.4; first shipped via Bedrock in v0.143.0; context corrected to 272,000 tokens in v0.144.6111116117157172175179203258 |
| gpt-5.3-codex | 272K / 400K | medium |
Legacy coding specialist: deprecated in Codex when signed in with ChatGPT; still available via the API until its April 1, 2027 shutdown (recommended replacement: gpt-6-sol)227233 |
| gpt-5.3-codex-spark | 128K / 128K | n/a | Retired September 14, 2026. No longer available in the ChatGPT desktop app, Codex CLI, or IDE extension, and absent from the bundled catalog; replace it in saved configurations, custom agents, and scripts. For low latency, use Fast mode on a current model. It was a text-only research preview for Pro users (Cerebras partnership)67202205 |
| gpt-5.2-codex | 272K / 400K | medium |
Shut down July 23, 2026 per OpenAI’s deprecation table; recommended substitute is now gpt-5.6-sol88 |
| gpt-5.1-codex-mini | 272K / 400K | medium |
Shut down July 23, 2026 per OpenAI’s deprecation table; recommended substitute is now gpt-5.6-terra88 |
GPT-5.5 (in Codex from April 23 to October 14, 2026) launched as OpenAI’s recommended choice for most Codex tasks and reached the API on April 24 at $5 input / $30 output per MTok. The launch page gave it a 400K context window in Codex and 1M in the API; the catalog bundled with the CLI now lists 272,000 tokens for it. Launch benchmarks: 82.7% Terminal-Bench 2.0, 84.9% GDPval, 78.7% OSWorld-Verified, and 98.0% Tau2-bench Telecom.83205 It retired from Codex for users signed in with ChatGPT on October 14, 2026, at 19:00 UTC; the OpenAI API and Codex sessions authenticated with an API key are not affected. For ChatGPT sign-in the docs say to choose GPT-6.1 Sol (
gpt-6.1-sol) on Plus, Pro, Business, Enterprise, and Edu, and GPT-6 Luna (gpt-6-luna) in the desktop app on Free and Go, each “when available,” and to replacegpt-5.5in workspace defaults, saved model settings, managed configurations, custom agents, scheduled tasks, and scripts.202GPT-5.4 and GPT-5.4 mini retired from Codex with ChatGPT sign-in on August 31, 2026.229 The models docs name
gpt-6-solandgpt-6-lunaas their replacements (in Enterprise and Edu, an administrator must enable Luna first); API-key use is unaffected.64229 The exact model list varies by account and rollout. Check your local cache:~/.codex/models_cache.json.Deprecation note (March 11, 2026): GPT-5.1 models are no longer available in ChatGPT. Existing conversations automatically continue on GPT-5.3 Instant, GPT-5.4 Thinking, or GPT-5.4 Pro. GPT-5.1-Codex-Mini remained available via API and CLI until the July 23, 2026 shutdown.7188
Free-tier note (May 5, 2026): GPT-5.5 Instant rolled out to the ChatGPT free tier on May 5, 2026. This widens the audience for the GPT-5.5 family beyond paid plans, though Codex CLI access requires Plus, Pro, Business, Enterprise or Edu, or an API key; Free and Go are limited to the desktop app.92203
GPT-5.4 mini (March 17, 2026; retired from Codex with ChatGPT sign-in on August 31, 2026): a smaller, faster variant of GPT-5.4 with 400K context at $0.75/$4.50 per MTok that used 30% of GPT-5.4 quota. It was the first model pitched for subagent delegation: a larger model plans and coordinates while smaller subagents handle narrower subtasks (codebase search, file review, document processing) in parallel.76 The docs name
gpt-6-solas the replacement forgpt-5.4andgpt-6-lunaforgpt-5.4-mini, so the same split now runs on the GPT-6 family.229Bedrock GPT-5.6 (Sol, Terra, Luna) (v0.143.0, July 8, 2026): Codex added first-class support for three GPT-5.6 model variants hosted on Amazon Bedrock, including support for the
maxreasoning-effort level. For teams whose model access runs through a Bedrock provider, these are selectable the same way as other custom-provider models (see Custom Model Providers); themaxeffort tier targets the hardest reasoning and agentic workloads.111 v0.144.6 (July 18, 2026) refreshed the bundled instructions for Sol, Terra, and Luna and corrected their context windows to 272,000 tokens.116 v0.145.0 (July 21, 2026) adds experimental Bedrock login with custom endpoint and authentication support, makes GPT-5.6 Sol the default Bedrock model, and migrates bundled GPT-5.4 model selections to the corresponding Terra and Luna variants.117GPT-6-Astra (launched September 3, 2026; in Codex via v0.153.1-v0.153.4): the chronology, with explicit dates: v0.153.1 staged an API-only catalog entry on September 3, 2026; OpenAI announced GPT-6-Astra the same day; and v0.153.4 added the picker entry and the bundled-CLI-default flip on September 4. The announcement described a phased rollout that began with a limited set of organizations (cybersecurity-program partners first) and extended to ChatGPT Plus, Pro, Business, and Enterprise “over the coming days,” plus the OpenAI API and AWS; the rollout facts are press-reported (CNBC, Axios, Forbes, Al Jazeera, 9to5Mac).154 Superseded September 4: OpenAI announced on X that GPT-6 Astra “is now available to all Pro, Enterprise, and Business Premium users in ChatGPT Work and Codex” and “live in the API,” with Plus and Business expected within days, and the Codex lead Tibo Sottiaux followed up the same evening: “Astra is now rolled out to all Plus and Business users too.” Entitlement was uneven in practice at first: September 5 community reports showed Plus accounts still seeing only GPT-5.6 models in Codex.158
Astra pricing and positioning: the API model page lists gpt-6-astra at $10/MTok input and $50/MTok output at standard short-context rates, with a 1.05M-token context window, 922,000 max input tokens, 128K max output, and a knowledge cutoff of April 30, 2026. Prompts above 272K input tokens are priced at 2x input and 1.5x output for the full request, which the pricing page lists as $20/MTok in and $75/MTok out. The page now calls it “A reasoning model for complex coding and professional work”; on November 11, 2026 it read “our most capable model for the most demanding work.”234261 History: in September 2026 the Codex docs said Astra availability “depends on the rollout, your sign-in method, and your client”; the models page now pairs it with GPT-6.2 Astra for the hardest end-to-end work.155259
Astra reasoning ladder: the Codex ladder is Low, Medium, High, Extra High, Max, Ultra. The bundled catalog sets
default_reasoning_leveltolow, which matches the docs’ suggested starting point of Light (low); check/statusin a session for the effective value. The catalog’s picker text for Ultra is “Maximum reasoning with automatic task delegation,” and the models docs say Ultra uses subagents to handle separate parts of a complex task in parallel.205233 History: in early September 2026 the models page marked Medium as the default while the v0.153.4 catalog shippedlow; by September 23, 2026 the page gave Light as Astra’s starting point. The SDKs gained themaxandultrareasoning-effort values in v0.149.0 (#39662).129155157231Astra in the CLI: Astra has been API-configurable since v0.153.1 (
-m gpt-6-astra), joined the Amazon Bedrock catalogs in v0.153.3 (GPT-5.6 Sol stayed the Bedrock default until v0.157.0 made it GPT-6 Sol175), and entered the model picker in v0.153.4, where it was the bundled default when no model is explicitly configured until v0.159.1. No minimum CLI version is documented, so treat those versions as the floors.151156157179 Codex cloud, as the docs read at the time: Astra was marked available there on September 15, 2026 and unavailable on September 23; the models page no longer has a Codex cloud availability line.155231233 Entitlement still varies by account, so if the bundled default is a model your account cannot use, pin one inconfig.toml(or pass-m); the docs’ own example is nowmodel = "gpt-6.2-sol".259Astra speed tiers: for GPT-6 Astra, OpenAI’s pricing page puts Fast mode at 2.5x the Standard rate for included subscription limits and 2x for purchased credits, and the API model page prices Fast at 2x the applicable rates ($20/$100 per MTok short-context, $40/$150 long-context on the API pricing page). The speed page states no Fast speed multiplier for GPT-6 Astra (it gives “about 1.5 times the speed of Standard” for GPT-6.2 Astra and GPT-5.6); “2x speed” appears only in the bundled catalog’s description of the tier.258260 Ultrafast covers GPT-6 Astra on Pro $500 and eligible Enterprise and Edu plans: the speed docs say that in Codex it “generates tokens at up to eight times its Standard speed with Ultrafast,” it draws included limits at 8x the Standard rate and purchased credits at 6x, and the API rate is $60/$300 per MTok. On GPT-6.2 Astra and GPT-6.2 Sol, Ultrafast runs “at up to 4.5 times the speed of Standard on the same model.”204260
How the recommendation moved: on September 23, 2026, after the GPT-6 Sol and Luna launch, the docs pointed complex coding and agentic workflows at GPT-6 Sol and focused, high-volume tasks at Luna, marked Astra and Luna unavailable for Codex cloud, and gave Astra’s starting effort as Light (
low), which matches the bundled catalog. Astra was still the bundled CLI default at that point.172231 On September 29, 2026, v0.159.1 made GPT-6.1 Sol the bundled default and moved Astra to second in the picker; the models docs recommended GPT-6.1 Sol for complex coding and agentic workflows.179181 By November 11, 2026 the page suggested GPT-6.1 Sol for repeated, long-running work and kept Astra for the hardest end-to-end work.233 On November 17, 2026 OpenAI launched GPT-6.2 Astra and GPT-6.2 Sol and v0.169.1 made GPT-6.2 Sol the bundled default the same day; the page now recommends GPT-6.2 Astra for demanding work and GPT-6.2 Sol for everyday work, and usesgpt-6.2-solin its configuration example.258259Power presets: in the desktop app and ChatGPT Work on the web, a Power slider maps onto models and reasoning levels. The models docs say “New Work chats start with GPT-6.2 Sol at Light on supported consumer plans or Medium in Enterprise workspaces with the model enabled,” that you move the slider “toward Smarter for deeper reasoning or Faster for faster, lower-cost work,” and that Advanced opens a specific model or reasoning effort. For starting effort they say to use the effort your client selects for GPT-6.2 Astra and GPT-6.2 Sol, High for Luna, and Light (
low) for GPT-6 Astra.259 History: on November 11, 2026 the page showed six Power presets, “Luna High, GPT-6 Sol Light (selected in this example), GPT-6 Sol Medium, Astra Light, Astra Medium, and Astra Extra High”;233 as read on September 7, 2026, the docs mapped the presets onto Astra for eligible Pro, Business ($100), and Enterprise accounts (“Terra Light, Sol Light, Sol Medium, Astra Light, Astra Medium, and Astra Extra High”), and the September 23 page, after the GPT-6 Sol and Luna launch, suggested Medium as the start for Sol.155231Experimental cross-context notes (history): in September 2026 the Codex models docs carried a section on experimental context management, which read: “On supported Codex clients, users signed in with ChatGPT Plus or Pro can opt in to experimental context management. Astra keeps notes across context windows and can search earlier messages and tool results from the same task. This experiment is off by default and isn’t available with Business, Enterprise, or API-key sign-in at launch.” The opt-in was
features.context_management.experimental_mode = trueinconfig.toml, the same surface v0.153.0 shipped (see Context Management); the v0.153.0 release notes had named eligible Plus, Pro, and Pro Lite sessions. v0.154.0 tightened the code side by gating eligibility on the active model’s capabilities at session startup (#43147). The section is no longer on the page; the next note covers what replaced it.149155161233Cross-context notes, later status. v0.157.0: the bundled model catalog no longer marks GPT-6-Astra, or any other bundled model, as supporting experimental context (#47397), and the CLI turns the experiment on only for a model marked that way. With the bundled catalog, then, the opt-in has no effect; whether the catalog served to signed-in accounts differs is not documented. The models docs still described the opt-in on September 26, 2026.175 Since September 29, 2026: the models page no longer carries the section, and the config reference describes
features.context_management.experimental_modeas “Experimental context-management setting. The feature is not currently available.” GPT-6.1 Sol, added in v0.159.1, was not marked as supporting it either, and neither are the GPT-6.2 models added in v0.169.1.179233258
Model Selection Flowchart
Is this a quick fix, extraction, or other well-defined repeatable task?
├─ Yes → gpt-6-luna (most efficient; docs suggest starting at High)
└─ No
├─ Do you need real-time pairing speed?
│ ├─ Yes → Fast mode (/fast) on gpt-6.2-sol (2x included usage) or gpt-6-luna (2.5x)
│ └─ No
│ ├─ Demanding work across services, apps, or research?
│ │ ├─ Yes → gpt-6.2-astra (most capable; four times the credits of gpt-6.2-sol)
│ │ └─ No → gpt-6.2-sol (everyday coding; default since v0.169.1)
├─ Mostly writing, screenshots, or computer use? → gpt-6.1-terra (half the credits of gpt-6.2-sol)
└─ GPT-6.2 not enabled for your account or workspace? → gpt-6.1-sol, then gpt-6-sol
Reasoning Effort
Control how much the model “thinks” before responding:
| Level | Behavior | When to Use |
|---|---|---|
minimal |
Minimal reasoning (older GPT-5 models only; no model in the catalog bundled with v0.172.0 offers it) | Trivial tasks, quick lookups |
low |
Brief reasoning (the catalog default for GPT-6.2 Sol, GPT-6.2 Astra, GPT-6.1 Sol, GPT-6 Astra, GPT-6.1 Terra, and GPT-5.6 Sol) | Standard coding tasks, formatting |
medium |
Balanced (the catalog default for GPT-6 Sol, GPT-6 Luna, GPT-5.6 Terra, and GPT-5.6 Luna) | Most development work |
high |
Extended reasoning | Complex bugs, architecture |
xhigh |
Extra-high reasoning (max and ultra sit above it on models that offer them) |
Security audits, deep analysis |
persistent |
Model-advertised persistent reasoning (v0.151.0); shown as “Persistent” in the TUI, preserved in local config while the Responses API receives the disabled wire value |
Long-lived proactive sessions where the model paces its own follow-ups |
max / ultra |
Top rungs of Astra’s documented six-level ladder, above xhigh; exposed in the SDKs since v0.149.0 (#39662); the bundled catalog describes Ultra as “Maximum reasoning with automatic task delegation,” and the models docs say it uses subagents to handle separate parts of a complex task in parallel |
The hardest problems, on models that support them129258259 |
Supported levels and the default are model-dependent: the catalog bundled with v0.172.0 starts GPT-6.2 Sol and GPT-6.2 Astra at
lowand offerslowthroughultraon both (GPT-6 Luna stops atmax). In the CLI, the docs say to “use/model, choose a model, then select More reasoning… to see its supported Max or Ultra options.”minimalis only available for older GPT-5 models. Not all models support every level.258259
persistentdetails (v0.151.0): turns running atpersistenteffort default the current-time reminder and the interruptibleclock.sleeptool on (explicitfeatures.current_time_remindersettings and managed requirements are preserved), and ship bundled proactivity and follow-up guidance that model metadata can override or disable viapersistent_instructions.145
codex -c model_reasoning_effort="xhigh" "find the race condition"
Expert tip:
xhighreasoning takes longer and uses more tokens thanmediumfor the same prompt.254 Reserve it for genuinely hard problems where the extra thinking pays off.
TUI quick reasoning controls (v0.124.0+).85 In an interactive TUI session, Alt+, lowers reasoning one step and Alt+. raises it one step, which is useful when a hard problem mid-session warrants a temporary medium → high → xhigh ramp without /model --reasoning or -c. When you accept a model upgrade mid-session, reasoning resets to the new model’s default rather than carrying the prior level over.
Model Switching
Switch models mid-session with the /model slash command, or set per-run via --model / -m:
codex -m gpt-6.2-sol -c service_tier="fast" "pair with me on this component" # Fast tier: 2x included usage on GPT-6.2 models
What Does Codex Cost?
See also Model Selection for capabilities and Decision Frameworks for choosing the right model per task.
Access via ChatGPT Plans
Codex availability depends on your ChatGPT plan and organization settings:59235
| Plan | Price | Codex Access | Rate Limits (5-hour window) |
|---|---|---|---|
| Free / Go | $0 / $8 | GPT-6 Luna at Standard speed in the desktop app, subject to rollout203 | Not published on the pricing page |
| Plus | $20/mo | Web, CLI, IDE extension, and iOS, plus cloud integrations; the plan card still names GPT-6.1 Sol and GPT-6 Luna, and the availability note adds GPT-6.2 Astra and GPT-6.2 Sol235260 | Per-model estimates: GPT-6.2 Sol 17-180 msgs, GPT-6.2 Astra 6-50, GPT-6.1 Sol 15-160, GPT-6.1 Terra 35-285, GPT-6 Sol 15-150, GPT-6 Luna 350-3,000, GPT-6 Astra 5-45; weekly limits may also apply260 |
| Pro | $100, $200, or $500/mo | Everything in Plus; Ultrafast with GPT-6.2 Sol on Pro $200, and with GPT-6.2 Sol, GPT-6.2 Astra, GPT-6 Astra, and GPT-6.1 Sol on Pro $500 (the plan card itself still says “access on Pro $500”)259260 | No five-hour limit (“Pro plans currently have no five-hour limit”); check the usage dashboard for current limits260 |
| Business | $25/user/mo ($20 annual, 2+ users) | Standard seat includes Codex + ChatGPT, SAML SSO | Standard seats get the same five-hour estimates as Plus203235 |
| Business (Codex-only seat) | Pay-as-you-go | Token-based billing with no fixed seat fee, as announced on April 2, 2026; the pricing page has no card for this seat type today, so confirm it with your workspace admin or OpenAI sales79235 | Token-based |
| Enterprise / Edu | Contact sales | Everything in Business plus enterprise security and admin controls (SCIM, EKM, RBAC), audit logs through the Compliance API, and data retention and residency controls | With flexible pricing, no fixed rate limits (usage scales with credits); without it, the same per-seat limits as Plus for most features235 |
| API Key | Usage-based | CLI, SDK, IDE only (no cloud features)235 | Token-based |
April 2026 pricing update: Business annual pricing dropped from $25 to $20/seat/mo. Codex-only seats with pay-as-you-go pricing became available for Business and Enterprise workspaces, with no fixed seat fee and billing on token consumption.79 The pricing page now publishes limits as per-model bands (see the table above) rather than the promotional 2x multipliers from the February 2026 Desktop App launch.16125203
May 2026 usage limit boost (expired May 31, 2026): Codex on the Plus plan ran at a 25× 5-hour limit (vs the standard 20× boost), and the $100/month tier was doubled for the same window.89
Rate-limit UX in the TUI (v0.152.0-v0.153.0): hitting a limit is no longer a dead end. v0.152.0 renders actionable rate-limit banners above the composer – check usage, manage credits, reset limits, notify the workspace owner, and manage plans – filtered to the authenticated account and user; usage refreshes after limit errors, and when the banner instructs it, Codex switches to the first available fallback model without changing unrelated thread settings.147 v0.153.0 adds earlier warnings for Plus and Team plans: a warning fires when less than half of the allowance remains in an approximately five-hour usage window, while other plans and window lengths keep the existing 75%, 90%, and 95% thresholds.149
Credit Costs
Codex operations consume credits from your plan allocation:
| Model | Credits / 1M input tokens | Cached / Output | Notes |
|---|---|---|---|
| GPT-6.2 Astra | 200 | 10 / 1,000 | Demanding work across code, apps, or research; 20% below GPT-6 Astra on input and output, 60% below on cached input259260 |
| GPT-6.2 Sol | 50 | 2.5 / 250 | Everyday coding and writing; the bundled default since v0.169.1, at GPT-6.1 Sol’s rates258260 |
| GPT-6 Astra | 250 | 25 / 1,250 | Previous-generation Astra; the highest rate in this table258260 |
| GPT-6.1 Sol | 50 | 2.5 / 250 | Previous-generation Sol; the bundled default from v0.159.1 until v0.169.1179258260 |
| GPT-6.1 Terra | 25 | 1.25 / 125 | Everyday writing and visual work; in Codex since October 26, 2026198203 |
| GPT-6 Sol | 50 | 5 / 250 | Legacy Sol; half the GPT-5.6 Sol promotional rate260 |
| GPT-6 Luna | 2.5 | 0.25 / 12.5 | Focused, high-volume tasks; the cheapest current model203229 |
| GPT-5.6 Sol | 100 | 10 / 500 | Legacy Sol; August 21 promotional cut (was 125 / 12.5 / 750). The page promised it “at least through November 21, 2026” and still listed this rate on November 25125130260 |
| GPT-5.6 Terra | 50 | 5 / 300 | Legacy everyday model260 |
| GPT-5.6 Luna | 5 | 0.5 / 30 | Legacy fast tier260 |
The rates are for Standard speed, and the pricing page says GPT-5.6 Sol, Terra, and Luna rates “remain unchanged.” For scale, the page says “A typical GPT-5.6 Sol task may use 2-15 credits” (the page gave an average of 5-30 credits per message in September, and 5-40 in August).125232 Fast mode draws included subscription limits and purchased credits at 2x the Standard rate on GPT-6.2 Astra and GPT-6.2 Sol; on GPT-6.1 Sol, GPT-6.1 Terra, and GPT-6 Astra, Sol, and Luna it draws included limits at 2.5x and purchased credits at 2x. The bundled catalog makes Fast the default tier for GPT-6 Sol and Luna (not the GPT-6.2 or GPT-6.1 models) in the TUI unless you set service_tier, so toggle Fast off with /fast, or set service_tier, if credits drain faster than expected. Image generation uses included limits 3-5x faster on average than comparable turns without it.234258260
Ultrafast has two rate sets. On GPT-6.2 Astra and GPT-6.2 Sol it draws included limits at 6x, and purchased credits or Enterprise pay-as-you-go usage at 3x through February 28, 2027 and 6x from March 1, 2027. On GPT-6 Astra and GPT-6.1 Sol it draws included limits at 8x and purchased credits at 6x. Pro $200 gets Ultrafast with GPT-6.2 Sol only; Pro $500 gets it with all four models. An Enterprise workspace needs a credit-based or USD usage-based agreement, an Edu workspace a credit-based plan, and in both an owner has to turn the separate Ultrafast permission on. Plus and Business have no access to it.259260
Enterprise and Edu plans scale credits with contract allocation. Check
/statusin the TUI for current usage.
API Billing
When using Codex through the API, OpenAI bills usage per token under standard OpenAI API pricing for the selected model (plus any applicable prompt-caching discounts). Current API rates per 1M tokens: GPT-6.2 Sol $2 input / $10 output ($0.10 cached input), GPT-6.2 Astra $8 / $40 ($0.40 cached input), GPT-6.1 Sol $2 / $10, GPT-6 Sol $2 / $10, GPT-6 Luna $0.10 / $0.50, GPT-6 Astra $10 / $50; for all six, prompts above 272K input tokens cost 2x input and 1.5x output for the full request, and Fast mode costs 2x.228234261 Ultrafast, the ultrafast service tier on the API, costs 6x Standard for GPT-6.1 Sol ($12 / $60) and GPT-6 Astra ($60 / $300). For the GPT-6.2 models it costs 3x through February 28, 2027 ($6 / $30 for Sol, $24 / $120 for Astra) and 6x from March 1, 2027.204261 ChatGPT credit multipliers do not apply to API-key sign-in. Check the API pricing page for current rates.20228
Cost Optimization Strategies
- Use profiles: Create a
fastprofile withgpt-6-lunaandmodel_reasoning_effort = "low"for routine tasks - Reserve high reasoning: Only use
xhighfor genuinely hard problems, as higher effort takes longer and uses more tokens254 - Use
codex exec --ephemeral: skip writing session files for CI/CD runs you will never resume (the flag exists only oncodex exec, and it does not change token cost)246 - Leave reasoning summaries off:
model_reasoning_summaryalready resolves tononefor every model in the bundled catalog, and settingauto,conciseordetailedadds summary output; a model missing from the catalog falls back toauto, so setnonethere253 - Batch with exec mode:
codex execavoids TUI overhead for automation workflows - Monitor usage: Check
/statusin the TUI and your org billing dashboards — as of v0.148.0,/status, status lines, and terminal titles show estimated thread credits or cost for eligible workspaces127
Real-World Cost Examples
Representative API costs for common tasks at GPT-6.2 Sol Standard rates ($2 input / $10 output per 1M tokens, the same as GPT-6.1 Sol), with no cached input and every request under the 272K-token long-context threshold:
| Task | Input Tokens | Output Tokens | Approx. Cost |
|---|---|---|---|
| Explain a 500-line module | ~15K | ~2K | ~$0.05 |
| Fix a failing test (1-2 files) | ~30K | ~5K | ~$0.11 |
| Add a new API endpoint with tests | ~60K | ~15K | ~$0.27 |
| Refactor auth module (10 files) | ~120K | ~30K | ~$0.54 |
Full repo audit via codex exec |
~200K | ~20K | ~$0.60 |
| Cloud task: triage 20 open issues | ~250K | ~40K | ~$0.90 |
Each figure is input tokens times the input rate plus output tokens times the output rate; the first row is 15,000 x $2/1M + 2,000 x $10/1M = $0.03 + $0.02. GPT-6.2 Astra ($8 / $40) costs four times these figures, GPT-6 Astra ($10 / $50) five times, GPT-6.1 Terra ($1 / $5) half, and GPT-6 Luna ($0.10 / $0.50) one twentieth. Real costs also vary with reasoning effort, caching (cached input is discounted), and conversation length.228261
Hidden Token Overhead
Every tool call adds tokens beyond your visible prompt:254
| Overhead Source | Approx. Cost |
|---|---|
| System prompt + AGENTS.md | Grows with your AGENTS.md files, up to project_doc_max_bytes (32 KiB by default) |
File reads (@file) |
Full file content tokens |
| MCP tool definitions | Every connected server adds context to your messages |
| Reasoning traces | Variable; higher effort uses more tokens |
Expert tip: Monitor your actual usage via
/statusin the TUI. The token count includes all overhead, not just your visible messages. If costs surprise you, check how many MCP servers are connected — each adds tool definitions to every API call.
Team Cost Management
| Team Size | Recommended Config | Monthly Seat Cost |
|---|---|---|
| Solo developer | Plus or Pro; default model, medium reasoning |
$20 (Plus), or $100, $200, or $500 (Pro) |
| Small team (3-5) | Business; profiles (fast/careful), code reviews via codex exec |
$75-125 billed monthly, or $60-100 on annual billing |
| Medium team (10-20) | Business or Enterprise; managed requirements.toml, CI integration |
$250-500 billed monthly, or $200-400 on annual billing (Business); Enterprise by quote |
| Large org (50+) | Enterprise with admin controls, audit logging, allocated budgets | Custom pricing |
The seat figures are the number of seats times the plan prices above: Business is $25 per user per month, or $20 on annual billing, for two or more users.203 They cover the usage each plan includes. Purchased credits beyond the included limits, and API-key usage billed per token (see Real-World Cost Examples), come on top and depend on how much the team runs, so they are not estimated here.
Strategies for team cost control:
- Use
requirements.tomlfor what it can enforce: it pins the model provider (model_provider) and the model catalog file (model_catalog_json), and[models.new_thread]sets the default model and reasoning effort for new threads. Those defaults are not limits (a user who picks another model or effort overrides both), and there is no model allowlist or reasoning-effort cap.219 - Use
gpt-6-lunafor CI/CD: automated pipelines rarely need maximum reasoning - Profile-based budgeting: define
ci,review, anddevprofiles with a model and reasoning effort suited to each - Monitor via OpenTelemetry — enterprise deployments can export usage telemetry to existing observability stacks
Decision Frameworks
When to Use Each Surface
| Scenario | Best Surface | Why |
|---|---|---|
| Quick bug fix | CLI | Fast, focused, scriptable |
| Multi-file refactor | CLI or App | CLI for deterministic patches; App for visual diff review |
| Exploring unfamiliar code | CLI | Terminal composability, grep/find integration |
| Parallel workstreams | Desktop App | Worktree isolation, multi-task management |
| Active file editing | IDE Extension | Open files and selections as context, diffs reviewed beside your code269 |
| Long-running migration | Cloud | Keeps working while your computer is asleep; you review the changes and open the PR4 |
| CI/CD automation | codex exec |
Non-interactive, JSON output, scriptable |
| Code review | CLI or App | /review command with presets |
| Team onboarding | Desktop App | Visual, guided, less terminal knowledge needed |
When to Use Each Sandbox Mode
| Scenario | Mode | Approval | Why |
|---|---|---|---|
| Exploring unknown code | read-only |
on-request |
Maximum safety, can’t break anything (untrusted retired in v0.149.0) |
| Daily development | workspace-write |
on-request |
Good balance of speed and safety |
| Trusted automation | workspace-write |
never |
Fast, uninterrupted, sandboxed |
| System administration | danger-full-access |
on-request |
Needs full access; with no sandbox boundary left, on-request rarely prompts132 |
| CI/CD pipeline | workspace-write |
never |
Automated, sandboxed to workspace |
When to Use Each Reasoning Level
| Task Type | Reasoning | Model | Profile |
|---|---|---|---|
| Formatting, linting | low |
gpt-6-luna |
fast |
| Standard coding | medium |
gpt-6.2-sol |
default |
| Complex debugging | high |
gpt-6.2-sol or gpt-6.2-astra |
careful |
| Security audit | xhigh |
gpt-6.2-astra |
careful |
| Rapid prototyping | low |
gpt-6-luna |
fast |
| Migration/refactor | medium-high |
gpt-6.2-sol or gpt-6.2-astra |
default |
Plan Mode vs Direct Execution
Will Codex need to change more than 3 files?
│
├── YES → Use Plan Mode (/plan)
│ Codex designs the approach before making changes.
│ You review and approve the plan.
│ Best for: refactors, new features, migrations
│
└── NO → Is the change well-defined?
│
├── YES → Direct execution
│ Just describe the task. Codex executes immediately.
│ Best for: bug fixes, small features, test additions
│
└── NO → Use Plan Mode (/plan)
Let Codex explore and propose an approach first.
Best for: unfamiliar codebases, ambiguous requirements
Steer Mode: Enter vs Tab
| Situation | Use Enter | Use Tab |
|---|---|---|
| Codex is about to make a mistake | Send correction immediately | |
| You have a follow-up task | Queue it for after current work | |
| Codex picked the wrong file | Send redirect immediately | |
| You want to add scope | Queue the addition | |
| Urgent priority change | Send new priority immediately | |
| Non-critical context | Queue it — no rush |
Rule of thumb: Enter = “stop, listen to this now.” Tab = “when you’re done, also do this.”
Desktop App vs CLI
How do you prefer to work?
│
├── Terminal-first → Use CLI
│ │
│ ├── Single focused task → codex (interactive TUI)
│ ├── Scripted automation → codex exec (non-interactive)
│ └── Quick one-shot → codex exec "prompt" -o result.txt
│
└── Visual/multi-project → Use Desktop App
│
├── Multiple parallel tasks → Multi-thread with worktree isolation
├── Visual diff review → Built-in Git diff viewer
├── Scheduled automation → Scheduled in the sidebar
└── Voice-driven → Dictate button in the composer
| Capability | CLI | Desktop App |
|---|---|---|
| Interactive sessions | Yes | Yes |
| Parallel agents | Subagents, the /agents command center, /worktree |
Parallel chats, each optionally in its own worktree269 |
| Diff review | /diff (text) |
Review pane: line comments, stage, revert, commit, push269 |
| Automations | No Scheduled interface; script codex exec with cron |
Scheduled tasks, listed under Scheduled in the sidebar255 |
| Voice input | Yes: /voice live conversations, on by default with an F8 toggle (v0.156.0; experimental and opt-in in v0.155.0)165170 |
Yes: Dictate in the composer249 |
| CI/CD integration | codex exec + GitHub Action |
No |
| Session handoff | /app opens the current session in the desktop app (macOS and Windows)269 |
Receives sessions handed over with /app |
Which Profile?
Match your task to a pre-configured profile:
| Task Type | Profile | Key Settings |
|---|---|---|
| Quick questions, formatting | fast |
model = "gpt-6-luna", model_reasoning_effort = "low" |
| Daily development | (default) | model = "gpt-6.2-sol", model_reasoning_effort = "medium" |
| Architecture, security | careful |
model = "gpt-6.2-astra", model_reasoning_effort = "xhigh" |
| Real-time pairing | pair |
model = "gpt-6.2-sol", service_tier = "fast" |
| CI/CD automation | ci |
model = "gpt-6-luna", model_reasoning_effort = "low", sandbox_mode = "workspace-write" |
Profile files (one per preset, in ~/.codex/; the legacy single-file profile = "default" + [profiles.*] layout is rejected since 0.134.0131238):
# ~/.codex/fast.config.toml
model = "gpt-6-luna"
# GPT-6 Sol/Luna start on the Fast tier (2.5x included usage) unless service_tier is set; /fast toggles it
model_reasoning_effort = "low"
# ~/.codex/careful.config.toml
model = "gpt-6.2-astra"
model_reasoning_effort = "xhigh"
# ~/.codex/pair.config.toml
model = "gpt-6.2-sol"
service_tier = "fast" # Fast tier: 2x included usage on a ChatGPT plan
# ~/.codex/ci.config.toml
model = "gpt-6-luna"
# codex exec does not apply the Fast-tier default the TUI gives GPT-6 Sol/Luna; set service_tier here if you want it
model_reasoning_effort = "low"
sandbox_mode = "workspace-write"
Switch profiles per-session: codex --profile careful
How Does the Sandbox & Approval System Work?
Codex uses a two-layer security model that separates what is technically possible from when Codex asks for human approval. Codex sandboxes every command by default; Claude Code’s Bash sandbox uses the same operating-system mechanisms on macOS and Linux but is off until you turn it on.5265 See also Enterprise Deployment for requirements.toml constraints that administrators enforce organization-wide.
v0.148.0 hardening: sandbox restrictions now fail closed — a denied or unreadable path is treated as blocked instead of silently allowed — on both Linux and Windows.127
Layer 1: Sandbox (What Is Possible)
The sandbox controls filesystem and network access using OS-native mechanisms:
| Mode | File Access | Network | When to use |
|---|---|---|---|
read-only |
Read only everywhere | Blocked | Strictest; mutations need explicit approval |
workspace-write |
Reads machine-wide on macOS (the Seatbelt profile allows file-read* unless unreadable roots are configured); writes in the workspace, /tmp and $TMPDIR, except .git, .agents, .codex and .aws inside a writable root, which stay read-only191214244 |
Blocked by default | Normal development; safe default |
danger-full-access |
Full machine access | Enabled | Maximum capability; use with caution (denylist-only variant removed in v0.121.0 — now binary on/off)82 |
Platform-specific enforcement:
- macOS: Apple’s Seatbelt framework via
sandbox-execwith mode-specific profiles compiled at runtime and enforced by the kernel6. As of v0.121.0, macOS sandbox profiles can allowlist specific Unix sockets (e.g.,docker.sock, editor IPC sockets) and private DNS resolution is no longer blocked by default.82 - Linux: bubblewrap (
bwrap) for filesystem and namespace isolation + seccomp for syscall filtering, run through a standalone helper process (codex-linux-sandbox); the Landlock implementation7 is retained as legacy, and v0.163.0 renamed the crate’s Landlock-named command type and syscall module without changing enforcement.5195 With transparent TCP off, Codex prefers the firstbwraponPATHoutside the working directory and falls back to the bundledcodex-resources/bwrap(vendored since v0.100.0), with a startup warning whenbwrapis missing or cannot create user namespaces.212 v0.117.0 made sandboxed tool calls more reliable on older distributions with olderbubblewrap.75 v0.129.0 made Linux sandbox startup more reliable across olderbwrap, slow mount probes, symlink-protected paths, and shared/tmpsetups, and updated the vendored Bubblewrap to 0.11.2.89 - Windows: three native sandbox implementations.
mxcis the recommended one on compatible devices: native process isolation with no administrator setup, extra Windows accounts, or firewall rules. It needs Windows 11 24H2 (build 26100.9278) or 25H2 (build 26200.9278).elevatedis the preferred legacy fallback: dedicated lower-privilege sandbox users, filesystem permission boundaries, and firewall rules, set up once with administrator approval (IT can provision it ahead of time withcodex sandbox setup --elevated --user 'DOMAIN\alice' --codex-home 'C:\Users\alice\.codex', naming the employee’s Windows identity and Codex home).unelevatedis the secondary legacy fallback: a restricted Windows token with ACL-based boundaries, weaker network isolation thanelevated, and no support for denied read paths. WSL2 is also supported and uses the Linux bubblewrap + seccomp sandbox; WSL1 has not been supported since v0.115.0.2 History: the native sandbox was promoted from experimental in v0.100.0, v0.117.0 made the restricted-token sandbox support more split-policy carveout layouts,75 and in v0.130.0 Windows sandbox setup grants sandbox users access to the desktop runtime binary cache.91
On Windows, pick the implementation in config.toml. The desktop app prefers MXC automatically for consumer accounts; for the standalone CLI, either select mxc explicitly or turn on prefer_mxc, which uses MXC when the device and policy support it and otherwise falls back to the legacy choice. The prefer_mxc flag is off by default and marked under development at v0.172.0. Administrators can block MXC (allow_mxc = false) or restrict the legacy choices (allowed_sandbox_implementations = ["elevated"]) under [windows] in requirements.toml.2
[windows]
sandbox = "elevated" # mxc | elevated | unelevated
[features]
prefer_mxc = true # Use MXC when available, else the legacy choice above
Why this matters: Unlike container-based sandboxing (Docker), OS-level sandboxing needs no image or daemon, and it restricts each command Codex spawns rather than isolating a whole environment. The operating system, not Codex, enforces the limits on the spawned process.
Security fixes:
- zsh-fork sandbox bypass (v0.106.0): Fixed a vulnerability where shell execution via zsh forking could bypass sandbox restrictions.60 If you are on an earlier version, upgrade immediately.
- Input size cap (v0.106.0): Codex now enforces an approximately 1-million-character input cap to prevent hangs from excessively large payloads.60
- Secure devcontainer profile (v0.121.0, removed in v0.155.0): v0.121.0 added a hardened devcontainer profile to the Codex repository that ran Bubblewrap inside the container (WSL2 supported, WSL1 rejected).82 v0.155.0 removed the repository’s devcontainer profiles, Dockerfiles, and firewall scripts (#43915), so at v0.172.0 there is no
.devcontainer/directory to copy; build your own container and rely on the sandbox inside it.248 - Guardian review + hooks (v0.121.0): Hooks are disabled during Guardian review sessions so pre/post-tool hooks cannot interfere with the Guardian subagent’s decisions.82 If you rely on hooks for logging or validation, be aware that a Guardian review skips them — fall back on app-server observability if you need a full audit trail.
- Linux /dev filesystem (v0.105.0): Sandboxed commands on Linux now receive a minimal
/devfilesystem, improving compatibility with tools that expect device nodes.61
Restricting reads: [sandbox_workspace_write] has no read-restriction key. Its only keys are writable_roots, network_access, exclude_tmpdir_env_var and exclude_slash_tmp, and a key Codex does not recognize there loads without an error and without effect, so a made-up key such as read_only_access leaves reads machine-wide. To make paths unreadable, use a permission profile: a custom profile that does not extend a built-in one reads only the paths it grants, so start from ":minimal" = "read" under [permissions.<name>.filesystem] and mark sensitive paths "deny" (see Permission Profiles below). The name readOnlyAccess comes from the app-server protocol, where it is a legacy sandbox-policy input and never a config.toml key; at v0.172.0 the app-server rejects its restricted form with an error that points to permission profiles.213257
Layer 2: Approval Policy (When To Ask)
The approval policy determines when Codex pauses to ask for human confirmation:
| Policy | Behavior | Use Case |
|---|---|---|
untrusted |
Auto-runs safe reads; prompts for everything else | Retired in v0.149.0. A config that still names it stops Codex from starting with the message approval_policy = "untrusted" is no longer supported; remove this setting. Delete the line or set on-request129243 |
on-request |
Approves within sandbox; prompts for boundary violations | Default; good balance |
never |
No prompts whatsoever | CI/CD, trusted automation |
on-failure still appears in some older examples. It is deprecated and no longer a policy of its own: the configuration reference says to use on-request or never instead, and at v0.172.0 the old name still loads as an alias of on-request. Use on-request for interactive runs and never for non-interactive runs that already have an external safety boundary.87243
As of v0.150.0 you can bind a keyboard shortcut that cycles permission modes from the composer – configure it via /keymap.141
Distinct Approval IDs (v0.104.0+)
v0.104.0 gave command approvals distinct IDs, so that a single shell command execution can carry more than one approval.57
Flexible Approval Controls (v0.105.0+)
The approval flow now supports extra sandbox permissions and granular rejection:61
- Extra sandbox permissions: When a command needs access beyond the current sandbox mode, Codex can request specific additional permissions rather than requiring a full mode change. At v0.172.0 this sits behind the
exec_permission_approvalsflag, which is under development and off by default247257 - Granular rejection: Reject individual tool calls with feedback so Codex can adjust its approach rather than simply re-attempting the same command
Runtime Permission Requests (v0.113.0+)
v0.113.0 added a built-in request_permissions tool that allows the model to request additional permissions at runtime.69 When the model encounters a task requiring elevated access, it can formally request specific permissions (filesystem paths, network access, etc.) through the TUI approval flow rather than failing silently or requiring the user to restart with different flags. At v0.172.0 the tool is not exposed by default: it sits behind the request_permissions_tool flag, which is under development and off. Set request_permissions_tool = true under [features] to try it, and expect it to change.247257
App Approval Mode writes (v0.144.0+)
Apps and connectors gain a middle approval tier: the writes app-approval mode lets an app’s declared read-only actions run without prompting while still pausing for anything that writes.112 Before this, app approvals were closer to all-or-nothing; writes matches the trust shape most operators actually want for integrations — free to look, ask to touch.
A reviewer per app tool (v0.172.0). apps.<id>.tools.<tool>.approvals_reviewer takes user or auto_review and decides who answers approval prompts for that one tool. It overrides a reviewer set for the connected account, which overrides the app’s reviewer (apps.<id>.approvals_reviewer), which overrides apps._default.approvals_reviewer, which falls back to the top-level approvals_reviewer; managed requirements still apply. Use it to keep a person on the one tool that sends or deletes while automatic review handles the rest of the app.256262277
Automatically Reviewed Approvals: --approve-for-me (v0.147.0+)
The --approve-for-me CLI flag turns approval prompts into automatically reviewed approvals: instead of interrupting you, each request is adjudicated by a review pass and approved or refused on your behalf.123 The flag sets three things at once: the auto_review approvals reviewer, the on-request approval policy, and the workspace-write sandbox, so it cannot be combined with --sandbox or --dangerously-bypass-approvals-and-sandbox. In codex exec, which otherwise never asks, this flag (or approvals_reviewer = "auto_review" in config) is how approval requests get answered.239 It sits between “approve everything” (the posture --full-auto used to encourage, now removed) and “interrupt for everything”: the prompts still exist as decision points, but a reviewer answers them. Pair it with the v0.146.1 safer auto-review defaults for cyber-capable models, which this flag inherits. Treat it like any delegation of authority: right for long unattended runs where interruption means a stall, wrong for sessions touching credentials or production state where you want to be the reviewer.
Approval for Escalated Terminal Input (v0.151.0; on by default since v0.158.0)
The write_stdin_approval feature flag – off by default when it arrived in v0.151.0, on by default since v0.158.0 – requires a fresh approval before non-empty input is sent to an escalated unified-exec terminal. These reviews route through hooks, Guardian, the app server, and the TUI as writeStdin approvals; the terminal’s environment, launch directory, and escalation state persist across turns, and the process identity is revalidated after approval before any bytes are written. The fully formatted action and approval reason must fit within 8,000 bytes – oversized or truncated actions are rejected before approval is requested or anything reaches the terminal.145 v0.158.0 turns the flag on (#47799) and stops runtime-only grants, such as those plugins use for metrics, from triggering a review, while extra agent permissions, sandbox bypasses, and policy changes since launch still do (#48073). To turn it off: set write_stdin_approval = false under [features] in config.toml.177
Permission Profiles (v0.113.0+, expanded in v0.128.0 and v0.133.0)
Permission profiles split filesystem and network sandbox policies into named, reusable sections. Set default_permissions to a built-in profile such as :read-only, :workspace, or point it at a custom [permissions.<name>] table.87 v0.133.0 promotes profiles as a managed surface: list APIs expose available profile metadata, profiles can inherit from one another, managed requirements.toml can declare permission requirements, active profiles refresh at runtime, and Windows sandbox setup now consumes the resolved profile rather than a separate ad hoc policy.98
default_permissions = "project-safe"
[permissions.project-safe.filesystem]
":minimal" = "read" # Platform and runtime paths common tools need
"/usr/local" = "read"
glob_scan_max_depth = 3
[permissions.project-safe.filesystem.":workspace_roots"]
"." = "write"
"**/*.env" = "deny"
[permissions.project-safe.network]
enabled = true
mode = "limited"
[permissions.project-safe.network.domains]
"api.github.com" = "allow"
"registry.npmjs.org" = "allow"
Use deny for sensitive files and globs that should be unreadable even when the workspace root is writable. Older configs spell these :project_roots and none; both still load as legacy aliases at v0.172.0, but the docs and the source use :workspace_roots and deny. Off macOS the sandbox cannot match an unbounded ** in a deny glob natively: Codex warns at startup unless glob_scan_max_depth is set, which caps how deep the glob is expanded, so set it as the example does or list explicit depths such as *.env and */*.env.213 Domain rules under [permissions.<name>.network.domains] are enforced only while the network proxy is on (network_proxy = true under [features]). For one-off command exceptions, prefer rules over broadly expanding a profile.87
v0.151.0: restored app-server threads keep their permission profiles instead of being flattened into legacy per-turn sandbox overrides – profiles survive turn routing and compatible /cd directory changes, and a /cd that cannot represent the restored profile safely as a legacy sandbox mode is rejected rather than silently weakening restrictions.144
Legacy --full-auto Guidance
Older guides described --full-auto as a convenience alias for:
codex --sandbox workspace-write --ask-for-approval on-request
In v0.128.0, release notes mark --full-auto deprecated, and current CLI help no longer lists it for interactive runs. Use the explicit flags above or a named permissions profile instead.86
v0.147.0 completes the removal: codex exec --full-auto is gone. A script still passing the flag now errors rather than running. The migration is mechanical: replace it with --sandbox workspace-write, or with --approve-for-me on its own if you want requests to leave the sandbox reviewed automatically (the two flags cannot be combined, and codex exec never prompts a person).239 Audit any automation that shells out to codex exec before upgrading: the failure shows up as a broken pipeline, not a deprecation warning.123
Sandbox reliability (v0.129.0): Linux sandbox startup is more reliable across older
bwrap, slow mount probes, symlink-protected paths, and shared/tmpsetups. The Windows sandbox and exec policy handle named pipes, ConPTY teardown, PowerShell-wrapped allow rules, worktreesafe.directory, and unsafe Git options more reliably. The vendored Bubblewrap is updated to 0.11.2, “including upstream security changes around setuid support.” No config changes required. Runcodex updateto pick these up.89
Recommended Configurations
Daily development (safe default):
sandbox_mode = "workspace-write"
approval_policy = "on-request"
Power user (full access, human-in-the-loop):
sandbox_mode = "danger-full-access"
approval_policy = "on-request" # `untrusted` retired in v0.149.0
Community write-ups recommend the pairing as a “sweet spot”8; understand what it actually does before repeating the advice: approval prompts fire when a command needs to leave the sandbox or reach the network, and danger-full-access removes both boundaries, so on-request has almost nothing left to escalate. It is maximum capability with minimal asking, not maximum capability with a human check on every command; if you want the latter, keep workspace-write and let the sandbox boundary do the prompting.132
CI/CD automation:
sandbox_mode = "workspace-write"
approval_policy = "never"
Smart Approvals with Auto-Review (v0.115.0+; formerly Guardian subagent)
Smart Approvals can route review requests through a reviewer subagent (auto-review, launched under the name Guardian) instead of requiring human approval for every action. The reviewer session is reused across approvals, which keeps a stable prompt cache key and avoids startup overhead, and its history is cleared before each review so earlier decisions do not carry into later ones (#14668).73
Configure the reviewer in config.toml:
approvals_reviewer = "auto_review" # "user" (default) or "auto_review"
This is particularly useful for CI/CD workflows where you want automated review with reasoning rather than blanket approval_policy = "never". auto_review is the documented value (“auto_review uses the reviewer subagent”); guardian_subagent, the name the setting launched with, is still accepted as a legacy alias at v0.172.0. The setting does not change sandboxing.206257
Guardian v2 defaults flipped (v0.151.0): Guardian v2 now defaults to computer-use reviews with images. features.guardianv2.review_scope.computer_use_only defaults to true – set it to false to retain the broader tool review scope – and features.guardianv2.transcript.include_images defaults to true – set it to false to keep images out of Guardian transcripts. Both shipped as configurable, default-off surfaces in v0.150.0; v0.151.0 is where the defaults turned on.145
Guardian scope follows the approval mode (v0.153.0): two modes now skip Guardian work that cannot change the outcome. In Full Access (which already combines approvalPolicy: "never" with unrestricted permissions), confirmation-only Guardian and MCP requests are approved without synchronous review, sampler prewarming, or background scoring – pending, failed, or restricted environments are not treated as Full Access, and the active permission state is re-evaluated each turn so an existing thread can enter or leave Full Access safely. In User approval mode (approvals_reviewer = "user"), Guardian prewarming and asynchronous scoring are skipped and ordinary node_repl.js execution confirmations are accepted automatically, while sensitive-action checks and requests for user input keep their existing behavior.149 This narrows when Guardian runs, not the human approval layer: the prompting behavior this guide describes for danger-full-access under on-request is approval policy, a separate mechanism. v0.152.1 additionally lets Guardian approval review source its Node REPL policy from model metadata (auto_review.node_repl_policy), falling back to the bundled policy when the field is absent.148
Guardian computer-use scoring honors model requirements (v0.153.1): computer-use-only Guardian scoring and fast approval decisions now run only when the active model sets node_repl_auto_review_required in its metadata, and prior or in-flight scores are invalidated when a model switch skips scoring – so switching back to a reviewed model cannot revive a stale approval decision. This is the main change in the v0.153.1 patch, and the release notes do not list it: #42422 appears only in the v0.153.0 to v0.153.1 commit comparison.151
Guardian parent-compaction reuse is on by default (v0.156.0): #46522 promotes guardian_reuse_parent_compaction to a stable feature and enables it by default, which lets Guardian reuse the parent thread’s encrypted compaction when it restarts a review session. Per the PR’s tests, cached review sessions are still invalidated when the parent history changes. To restore the previous behavior: set guardian_reuse_parent_compaction = false under [features] in config.toml, or run codex features disable guardian_reuse_parent_compaction.170172
Guardian thread context is on by default (v0.157.0): #47275 promotes guardianv2.thread_context to stable and enables it for synchronous and asynchronous Guardian reviews, so reviews use thread-owned context. It is independent of the Guardian v2 enabled toggle. In v0.157.0 you could turn it off with thread_context = false under [features.guardianv2]; v0.158.0 removed that option.175
Guardian thread context is always on (v0.158.0): #47686 and #47689 make thread-owned context unconditional for Guardian session capture and subagent history forks. Codex ignores thread_context under [features.guardianv2], including profile overrides and managed requirements, and shows a deprecation notice asking you to remove it from config.toml. There is no replacement off-switch.177
Guardian can read earlier user messages (v0.160.0, opt-in): the transcript Guardian reviews can omit an earlier instruction, restriction, or revoked permission. With guardian_conversation_history_tools = true under [features] and Apps enabled, the reviewer gets two tools, user_message.search_messages and user_message.read_messages, served through the parent session’s own Apps connection and identity. Each call rechecks the parent’s current app and tool policy and fails closed on a disabled tool or one that needs approval. Two [auto_review] keys tune it: conversation_history_max_output_tokens caps each response (an estimated 4,000 tokens by default; stricter parent limits still apply), and experimental_conversation_history_prompt replaces the built-in retrieval instructions (blank uses the default). A second opt-in flag, guardian_root_handoff_context, narrows the root-conversation evidence for a worker agent’s review to the messages around each handoff to it, plus the latest three. Both flags are under development and off by default; the config reference does not list them yet.183
[features]
guardian_conversation_history_tools = true
[auto_review]
conversation_history_max_output_tokens = 4000
PowerShell classifier tightening (v0.142.2): PowerShell commands containing executable AST regions the safety classifier cannot inspect now require approval.110
Dangerous-command detection expanded (v0.144.5): Detection now recognizes more forced rm forms, and denied commands come back with clearer rejection reasons.115
Enabling Network Access
Codex blocks network access by default in workspace-write mode. Enable it when needed:
# Per-run
codex -c 'sandbox_workspace_write.network_access=true' "install the packages"
Or persist it in config.toml:
[sandbox_workspace_write]
network_access = true
writable_roots = ["/path/to/extra/dir"] # Additional writable directories
exclude_slash_tmp = false # true removes /tmp from the writable roots
exclude_tmpdir_env_var = false # true removes $TMPDIR from the writable roots
WebSocket Proxy Support (v0.104.0+)
When the network proxy is active, Codex sets WS_PROXY and WSS_PROXY (and their lowercase forms) for sandboxed commands, pointing them at the same HTTP proxy listener as HTTP_PROXY and HTTPS_PROXY, so WebSocket clients that read only the dedicated variables go through the proxy too:57
# What a sandboxed command sees with the default proxy_url
WS_PROXY=http://127.0.0.1:3128
WSS_PROXY=http://127.0.0.1:3128
Codex sets these itself, so you do not export them. The SOCKS5 listener (v0.93.0+) reaches commands the same way, through ALL_PROXY.
v0.146.0 is the release that made “all transport layers” actually true. Configured proxies are now honored across authentication, plugin downloads, MCP authorization, remote execution, WebSocket connections, HTTP redirects, and LM Studio connections — seven paths that the changelog lists as previously ignoring the proxy.121 If you ran Codex behind a corporate proxy before v0.146.0 and saw logins or plugin installs fail while ordinary model calls worked, that gap is the likely explanation.
System proxy on macOS (v0.142.2+): with respect_system_proxy enabled, macOS authentication clients honor the system proxy, PAC, and WPAD settings.110 As of v0.143.0 this extends to Windows and to Responses API traffic: Codex routes both authentication and Responses API calls through the macOS or Windows system proxy, including PAC and WPAD autoconfiguration.111 v0.167.0 lists the setting as “System proxy” in /experimental, so you can turn it on without editing config.toml; respect_system_proxy is experimental and off by default.200201
Testing the Sandbox
Verify sandbox behavior before trusting it. codex sandbox runs one command under the sandbox Codex would use, without starting a model session. At v0.172.0 the form is codex sandbox [OPTIONS] -- <command>: there is no platform word, and the profile flag is --permission-profile (--permissions-profile and -P also parse).214257
# Run from a project directory that is not your home directory and not under /tmp or $TMPDIR.
# 1. Control: a write inside the workspace succeeds.
codex sandbox --permission-profile :workspace -- touch ./codex-sandbox-ok
# 2. A write outside the workspace must be denied.
codex sandbox --permission-profile :workspace -- touch "$HOME/codex-sandbox-test"
ls "$HOME/codex-sandbox-test" # must say the file does not exist
# 3. Under :read-only, a write inside the workspace must be denied too.
codex sandbox --permission-profile :read-only -- touch ./codex-sandbox-ro
What to expect follows from how v0.172.0 defines the two profiles: :workspace grants writes to the workspace roots and the system temp directories and nowhere else, and :read-only grants no writes at all. Step 1 should create its file; steps 2 and 3 should fail with a permission error and create nothing. A denied write prints a permission error; on macOS it reads Operation not permitted.214 If the file from step 2 exists, the sandbox is not confining writes and your configuration needs investigation. The location matters because :workspace also allows writes to the system temp directories: a project under /tmp proves nothing here. Delete codex-sandbox-ok afterwards.
Reads are a separate question. :workspace and workspace-write do not restrict reads, so ls /etc/passwd succeeds under a healthy sandbox, and a file such as /etc/shadow is unreadable to a normal user with no sandbox at all; neither tells you anything. To test a read restriction, run a read through a permission profile that marks the path "deny". With the project-safe profile above, first make sure a .env file exists in the workspace and run a control read of a file the profile leaves readable: codex sandbox --permission-profile project-safe -- cat README.md must print the file. Then codex sandbox --permission-profile project-safe -- cat .env should fail with a permission error, because the profile marks that path "deny". The second result is evidence only when the first succeeded. On macOS, add --log-denials to list what the sandbox blocked.213214
One trap: the OpenAI approvals page still prints an older form with a platform word (codex sandbox macos ...). At v0.172.0 the command still defines no such subcommand, so the word is taken as the program to run, and unless a program named macos is on your PATH the command fails for a reason that has nothing to do with the sandbox. A failure is only evidence when the control in step 1 succeeds.214
On Windows, the docs give a one-line check that MXC starts (CLI 0.162.0 or later); the expected output is MXC_OK with exit code 0:2
codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK
$LASTEXITCODE
How Does AGENTS.md Work?
AGENTS.md is Codex’s project instruction system — an open standard9 now governed by the Linux Foundation’s Agentic AI Foundation. Supported by Codex, Cursor, Copilot, Amp, Jules (Google), Gemini CLI, Windsurf, Aider, Zed, Factory, RooCode, and 60,000+ open source projects. It defines how Codex behaves within a specific repository or directory. See Skills for reusable expertise packages that complement AGENTS.md.
Discovery Hierarchy
Codex builds an instruction chain at session start by walking the directory tree:
- Global (
~/.codex/):AGENTS.override.md>AGENTS.md - Project (git root to current directory): Each level checked for
AGENTS.override.md>AGENTS.md> fallback filenames - Merging: Files concatenate root-down; closer files appear later in the prompt and override earlier guidance
~/.codex/AGENTS.md ← Global defaults
└─ /repo/AGENTS.md ← Project-wide rules
└─ /repo/services/AGENTS.md ← Service-specific rules
└─ /repo/services/payments/
AGENTS.override.md ← Read instead of this directory's AGENTS.md
Untrusted projects skip project AGENTS.md (v0.150.0): the walk above assumes the project is trusted. Since v0.150.0, “Untrusted projects no longer supply project-level AGENTS.md instructions, and managed deny-read rules remain enforced after permission changes” – project-scoped discovery is skipped while user-level ~/.codex/AGENTS.md instructions are preserved, so an untrusted checkout cannot inject an operating contract before you trust it.141
Desktop multi-folder projects (26.715, July 23, 2026): The walk above describes the CLI, which resolves everything relative to the current working directory. The ChatGPT desktop app now lets a local project span several related folders, and it resolves discovery against exactly one of them: “New chats, Git operations, and automatic discovery of AGENTS.md, skills, and config.toml use the primary folder. Secondary folders remain available for file search, reading, and editing.” You choose which folder is primary from the project’s menu via Edit project.118
That single setting governs three of Codex’s five core systems at once — instructions, skills, and configuration all follow the primary folder. Practically: an AGENTS.md in a secondary folder is a file Codex can open, not an operating contract it loads. If the repo carrying your rules is the one you attached second, either promote it to primary or restate those rules in the primary folder’s AGENTS.md; the same applies to repository skill folders you expected to be picked up. Nothing about the CLI’s directory walk changed — this is desktop-app project scoping.
What Makes a Great AGENTS.md
Based on direct guidance from Codex itself and community patterns10:
DO:
- Be specific:
"Use rg --files for discovery"beats"search efficiently" - Define closure: What does “done” mean? (tests pass, lint clean, etc.)
- Include commands: Build, test, lint, format (exact invocations)
- Organize by task: Coding, review, release, incident/debug sections
- Define escalation: What to do when blocked or encountering unexpected state
DON’T:
- Dump entire style guides without execution rules
- Use ambiguous directives (“be careful,” “optimize”)
- Mix contradictory priorities (speed + exhaustive verification + no runtime budget)
- Write prose documentation (AGENTS.md is operational policy, not README)
Example: Production AGENTS.md
# Repository Guidelines
## Build, Test, and Development Commands
- Run API (dev): `python3 -m uvicorn main:app --reload`
- Install deps: `pip install -r requirements.txt`
- Lint: `python3 -m ruff check .` (auto-fix: `--fix`)
- Format: `python3 -m ruff format .`
- Tests: `python3 -m pytest -v`
- Coverage: `python3 -m pytest --cov=app --cov-report=term-missing`
## Coding Style & Naming Conventions
- Python 3.11+. Type hints on all functions.
- Ruff enforced: 88-char lines, double quotes, spaces for indent.
- Naming: modules `snake_case.py`, classes `PascalCase`, functions `snake_case`.
## Commit & Pull Request Guidelines
- Conventional Commits: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`, `test:`
- Commits should be small and focused.
- PRs must include: description, test plan, and screenshots for UI changes.
## Security
- Never commit secrets. Use `.env` for local config.
- Validate all external API calls with proper error handling.
Secret Handling in Agent Sessions
Treat Codex-visible history as a security surface, not just source code. Codex release notes document shell snapshotting and environment-variable redaction work, and the memory system scans memory writes for secrets, but those protections do not turn command output, session transcripts, shell snapshots, local logs, or helper scripts into safe places to print credentials.375095
The operating rule is simple: do not print secrets for the model to inspect; keep helper credentials in environment-required config; separate executable source, docs, generated caches, session transcripts, shell snapshots, logs, and intentional secret stores during audits; redact local history when a high-confidence secret shape appears; and promote prevention hooks only after the manual hygiene loop is proven.95
The Override Mechanism
AGENTS.override.md at any directory level replaces the normal AGENTS.md for that scope. Use for:
- Release freezes: “No new features, fixes only”
- Incident mode: “All changes must be reviewed by on-call”
- Temporary hardening: “No dependency updates this sprint”
Configuration
# Custom fallback filenames (in addition to AGENTS.md)
project_doc_fallback_filenames = ["TEAM_GUIDE.md", ".agents.md"]
# Increase max size for large instruction files
project_doc_max_bytes = 65536 # 64 KiB (default: 32 KiB)
Scaffold Generation
codex # Launch TUI
/init # Generate AGENTS.md scaffold
Or verify your instruction chain:
codex --ask-for-approval never "Summarize your current instructions"
Hooks
Codex introduced hooks in v0.99.0 and v0.100.0 under the legacy AfterAgent and AfterToolUse names, added an experimental hooks engine in v0.114.0 with SessionStart and Stop,70 and made hooks stable in v0.124.0 (April 23, 2026).85 The engine registers fourteen events since v0.164.0 (HOOK_EVENT_NAMES in codex-rs/hooks/src/lib.rs): eleven at v0.149.1, twelve from v0.150.0 with Interrupt,141 and fourteen once the observation-only PreModelRequest and PostModelRequest arrived (#55144).208 The legacy names are gone from the configurable surface: AfterToolUse no longer appears anywhere in the source tree, and AfterAgent survives only as the internal payload name of the legacy notify bridge.133 Hooks run scripts or MCP tools during the agentic loop. Matching hooks from multiple files all run, multiple matching command hooks for one event launch concurrently, and every non-managed hook must be reviewed and trusted before it runs.133 v0.148.0 extends the engine: hooks can run commands asynchronously and can invoke MCP tools – set async = true on a command handler to let it run in the background while Codex continues, or use an mcp_tool handler to reach the same MCP servers the agent uses.127133
Available Hook Events
| Event | When It Fires | Matcher Applies To |
|---|---|---|
SessionStart |
When a session starts (startup, resume, clear, compact, or fork, the source a forked thread reports)133; plain-text stdout is added as developer context before the first turn |
source |
SessionEnd |
When the main thread ends: archiving or deleting an open conversation, a normal close, or 30 minutes idle with no connected client; never for subagents; 1-second default timeout, 3-second maximum, always synchronous | end reason (currently only other) |
UserPromptSubmit |
Before a user prompt is sent; receives prompt and can block or augment it |
not supported |
PreModelRequest |
Before each model request attempt, retries within a turn included (v0.164.0+); receives the model and turn_id, plus agent_id and agent_type when available. Observation only: “Hook output is diagnostic only. It can’t change the model’s context or block a request.”208 |
not supported |
PostModelRequest |
After each model request attempt (v0.164.0+); adds status (completed, failed, or cancelled), error, and token_usage. Observation only208 |
not supported |
PreToolUse |
Before Bash, apply_patch file edits, MCP tool calls, and other local function tools run; can block or rewrite the call |
tool_name (Bash; apply_patch, Edit, or Write; MCP names such as mcp__fs__read) |
PermissionRequest |
When Codex is about to ask for approval (shell escalation, managed-network approval); can allow, deny, or defer to the normal prompt; skipped for commands that need no approval | tool name |
PostToolUse |
After supported tools produce output, including Bash commands that exit non-zero; cannot undo side effects; supports continue: false |
tool name |
PreCompact |
Before Codex compacts the chat | trigger (manual or auto) |
PostCompact |
After Codex compacts the chat | trigger (manual or auto) |
SubagentStart |
When a subagent starts | agent_type |
SubagentStop |
When a subagent stops | agent_type |
Stop |
When a turn stops (the doc lists it under “During a turn”); stop_hook_active reports whether the turn was already continued by Stop; expects JSON on stdout. Not the session end, which is SessionEnd |
not supported |
Interrupt |
When an active top-level turn is interrupted (v0.150.0+): “New Interrupt hooks can run commands or MCP handlers when an active top-level turn is interrupted.” Never for subagents; 1-second default timeout, 3-second maximum (the same clamp as SessionEnd), and async handlers are supported141 |
not supported |
Hosted tools such as WebSearch do not pass through the hook path, and some specialized tool paths can opt out; OpenAI’s own framing is “a useful guardrail, not a complete enforcement boundary.”133
Hook Configuration
Hooks are organized in three levels – an event, a matcher group, and one or more handlers – and live either in hooks.json (~/.codex/hooks.json, <repo>/.codex/hooks.json, or a plugin’s hooks/hooks.json) or inline in config.toml and requirements.toml. Project-local hooks load only when the project .codex/ layer is trusted.133 The inline TOML form:
# ~/.codex/config.toml or <repo>/.codex/config.toml
[[hooks.SessionStart]]
matcher = "startup|resume"
[[hooks.SessionStart.hooks]]
type = "command"
command = "python3 ~/.codex/hooks/session_start.py"
additionalContextLimit = 5000
[[hooks.PreToolUse]]
matcher = "^Bash$"
[[hooks.PreToolUse.hooks]]
type = "command"
command = '/usr/bin/python3 "$(git rev-parse --show-toplevel)/.codex/hooks/pre_tool_use_policy.py"'
timeout = 30
statusMessage = "Checking Bash command"
[[hooks.PostToolUse]]
matcher = "^Bash$"
[[hooks.PostToolUse.hooks]]
type = "command"
command = "python3 ~/.codex/hooks/post_tool_use_review.py"
async = true
timeout = 120
Handler fields: type (command or mcp_tool; prompt and agent handlers are parsed but skipped), command, timeout in seconds (600 by default; SessionEnd and Interrupt 1 second, up to 3), statusMessage, additionalContextLimit (how much additionalContext reaches the model before Codex saves the full text to disk and sends a preview), commandWindows (Windows-only override), and async. Commands run with the session cwd as their working directory, so repo-local hooks should resolve paths from git rev-parse --show-toplevel rather than a relative .codex/hooks/... path.133
Review and trust. Codex records trust against each non-managed hook’s current hash; new or changed hooks are marked for review and skipped until trusted. Run /hooks to inspect hook sources, review, trust, or disable individual hooks; when hooks need review at startup, Codex prints a warning pointing at /hooks. Managed hooks from system, MDM, cloud, or requirements.toml sources are trusted by policy and cannot be disabled from the user hook browser. --dangerously-bypass-hook-trust runs enabled hooks without persisted trust for one invocation, for automation that vets hook sources elsewhere.133
The SessionStart hook’s stdout feeds into the model’s context, making it ideal for injecting dynamic information (dates, branch names, environment variables) at session start.
Replicating Claude Code Hook Patterns
Eleven of Codex’s fourteen hook events share a name with a Claude Code event, so hook configs for those events port by moving the JSON into hooks.json and trusting it through /hooks. Interrupt, PreModelRequest, and PostModelRequest exist only in Codex, and Claude Code documents 34 events, so most of its events have no Codex counterpart.265 The common patterns map like this:
| Claude Code Pattern | Codex Alternative |
|---|---|
PreToolUse file blocking |
PreToolUse hook matched on apply_patch (or Edit/Write) or Bash; return the deny shape to block, or rewrite the call |
PostToolUse linting |
PostToolUse hook matched on Bash or apply_patch running your linter; add async = true to keep it off the critical path |
SessionStart context injection |
SessionStart hook returning additionalContext (plain stdout also works) |
Stop notification |
Stop hook with a notification command (JSON output required) |
SubagentStop notification |
SubagentStop hook, matched on agent_type |
PreCompact |
PreCompact and PostCompact, matched on manual or auto |
SessionEnd cleanup |
SessionEnd hook; 1-second default timeout, 3 maximum, runs synchronously |
| Async hooks | async = true on a command handler (v0.148.0); SessionEnd hooks always run synchronously |
Expert tip: New hook events still ship in releases (v0.150.0 added
Interrupt,141 and v0.164.0 addedPreModelRequestandPostModelRequest208), so checkHOOK_EVENT_NAMESincodex-rs/hooks/src/lib.rsand the Codex changelog for the current list.In-TUI hook browser (v0.129.0): Run
/hooksin the TUI to discover available hooks, see which are currently active, and toggle individual hooks without editingconfig.toml.89
What Is MCP (Model Context Protocol)?
MCP extends Codex’s capabilities by connecting to external tools and services. The codex mcp command group is listed as stable in the CLI command reference.218 Codex supports two transport types: STDIO (local processes) and Streamable HTTP (remote servers).11
v0.121.0 MCP changes: All MCP tools are registered with a namespace (#17404). A
supports_parallel_tool_callsflag lets a server opt in to parallel calls (#17667). A server that advertises the experimentalcodex/sandbox-statecapability receives the current sandbox state in the_metaof model-initiated tool calls (#17763 added it in v0.121.0 ascodex/sandbox-state-meta, which the source at v0.172.0 keeps as a deprecated alias).275 MCP Apps can call their own MCP server’s tools through the app server (#17364), and a fix covers flattened deferred tool names (#17556).82v0.142.2 MCP changes (June 25, 2026): MCP tools now use tool search by default when supported, which the release notes describe as “improving tool discovery while preserving compatibility with older models and providers.” Remote stdio MCP servers also accept absolute working directories written in the remote platform’s path format.110
v0.147.0 MCP changes (August 7, 2026): Codex adds opt-in support for the MCP 2026-07-28 protocol revision: paginated discovery, multi-round requests, and non-blocking server startup.123 At v0.172.0 the switch is the
mcp_2026_07_28feature flag, which is under development and off by default; setmcp_2026_07_28 = trueunder[features]to turn it on.247257v0.151.0 MCP changes (August 29, 2026): Optional MCP servers get a configurable startup grace period –
mcp_optional_startup_grace_ms(default 1,000 ms) controls how long tool catalog capture waits for optional servers,0disables the shared grace so optional servers fall back to their configuredstartup_timeout_sec, and updated values apply during runtime and MCP configuration refreshes. Extensions can also inspect or replace MCP tool results before they reach the model:ToolLifecycleContributor::on_mcp_tool_resultruns before MCP completion is published and before the result is prepared for the model, for successful and error results alike, including through Code Mode.144v0.152.0 MCP changes (September 1, 2026): Three additive changes.
openai/elicitationform requests land: Codex advertises form support when the client declares an object-valuedformcapability, handlesopenai/elicitation/createrequests, and forwards their metadata and opaque schema through the app server asopenaiForm(preservingx-openai-*annotations); legacyopenai/formhandling stays independent, and the TUI automatically declines form requests it cannot render. Per-tool output limits: each entry under an MCP server’stoolsconfiguration accepts a positiveoutput_token_limit(for example[mcp_servers.context7.tools.search]withoutput_token_limit = 2000); the most restrictive limit wins when plugin and user policies overlap, and the effective budget is carried in conversation history so tool output, post-tool hook responses, and resumed sessions truncate at the same limit – additive alongside the globaltool_output_token_limit. Package-style server names: MCP server names may now contain:,@,/, and.(sonpm:@modelcontextprotocol/server-sequential.thinkingis a legal name), preserved acrossmcp add/get/list/remove, runtime tool namespaces, and OAuth credential lookup, with non-bare names quoted in generatedconfig.tomlrecovery hints.147v0.170.0 to v0.172.0 MCP changes (November 18-24, 2026): Lazy startup is the default from v0.172.0. An optional stdio server whose tool list Codex has cached no longer starts with the thread; it starts on its first tool call. The config reference describes the switch: “Start eligible stdio MCP servers on the first tool call when their tool list is cached. Defaults to
true. Set tofalseto start them when the thread starts.” Setmcp_lazy_stdio_startup = falseunder[features]when a server has to be running before any tool call. v0.171.0 lets/mcp login <name>take--environment <id>, and v0.170.0 adds experimental support for identically named MCP servers across environments and fixes MCP OAuth credential races during cancellation, login, and logout (#60849, #60981).256257262
Configuring MCP Servers
STDIO servers (local processes):
# In ~/.codex/config.toml or .codex/config.toml
[mcp_servers.context7]
enabled = true
required = true # Fail startup if unavailable
command = "npx"
args = ["-y", "@upstash/context7-mcp"]
env = { "MY_VAR" = "value" } # Static env vars
env_vars = ["PATH", "HOME"] # Forward host env vars
cwd = "/path/to/project" # Optional working directory
startup_timeout_sec = 10
tool_timeout_sec = 60
enabled_tools = ["search", "summarize"] # Tool allowlist
disabled_tools = ["slow-tool"] # Tool denylist
HTTP servers (remote):
[mcp_servers.figma]
enabled = true
url = "https://mcp.figma.com/mcp"
bearer_token_env_var = "FIGMA_OAUTH_TOKEN"
http_headers = { "X-Figma-Region" = "us-east-1" }
env_http_headers = { "X-Org-Id" = "FIGMA_ORG_ID" } # Headers from env vars
startup_timeout_sec = 10
tool_timeout_sec = 60
CLI Management
codex mcp add context7 -- npx -y @upstash/context7-mcp
codex mcp add context7 --env API_KEY=... -- npx -y @upstash/context7-mcp # With env vars
codex mcp add figma --url https://mcp.figma.com/mcp --bearer-token-env-var FIGMA_OAUTH_TOKEN
codex mcp list # List all configured servers
codex mcp list --json # JSON output
codex mcp get context7 # Show server config
codex mcp get context7 --json # JSON output
codex mcp login <server> # OAuth flow for HTTP servers
codex mcp logout <server> # Remove OAuth credentials
codex mcp remove <server> # Delete server definition
In-session: /mcp shows active servers and available tools. /mcp verbose (v0.123.0+)84 returns full server diagnostics, resources, and resource templates. Plain /mcp stays fast. As of v0.144.0, MCP tools can request authentication interactively without an experimental opt-in.112
Plugin MCP loading (v0.123.0+) accepts both the standard mcpServers schema and top-level server maps in .mcp.json, so plugins authored against either convention load.84
MCP user verification (v0.155.0, supported Macs): local TUI sessions on supported Macs can verify MCP requests with Touch ID, signed by the Secure Enclave (#43624, #43712, #43715). The verification identity is restricted to the workspace it was enrolled in (#43524), and verification carries natively into MCP tool continuations (#44346).165
Running Codex AS an MCP Server
Removed (v0.154.0, September 9, 2026). The
codex mcp-servercommand and the standalonecodex-mcp-serverbinary are gone as of stable 0.154.0 (#42993), completing the August 24, 2026 deprecation. The official changelog (September 5, 2026): “Thecodex mcp-servercommand and standalonecodex-mcp-serverbinary have been removed after their deprecation on August 24, 2026. Update integrations that launch either command before upgrading Codex.” Integrations should target the app-server protocol, the interface behind the VS Code extension and desktop app (authentication, conversation history, approvals, streamed agent events) – which the removal entry itself labels experimental and “isn’t supported for production workloads” – or, from Claude Code, the Codex plugin for Claude Code: “Use Codex from Claude Code to review code or delegate tasks.” Connecting Codex TO external MCP servers (codex mcp ...,/mcp) is unaffected.134161162
On CLI 0.153.4 and earlier the command still exists (deprecated since August 24, 2026; since v0.149.0 it prints warning: `codex mcp-server` is deprecated and will be removed in a future release. to stderr and then starts anyway, PR #39657), so pinning npm install -g @openai/codex@0.153.4 is the stopgap if an integration cannot migrate immediately:12134157161
codex mcp-server # Removed in 0.154.0; works only on 0.153.x and earlier (deprecated, warns)
On 0.153.x and earlier the server exposes two tools:
1. codex(): Start a new session with prompt, sandbox, model, and approval parameters
2. codex-reply(): Continue an existing session with threadId and prompt
Use with the Agents SDK (Python) – CLI 0.153.4 or earlier only:
from agents import Agent, Runner
from agents.mcp import MCPServerStdio
async with MCPServerStdio(
name="Codex CLI",
params={"command": "npx", "args": ["-y", "@openai/codex@0.153.4", "mcp-server"]}, # pin: removed in 0.154.0
client_session_timeout_seconds=360000,
) as codex_mcp_server:
agent = Agent(name="Developer", mcp_servers=[codex_mcp_server])
result = await Runner.run(agent, "Fix the failing tests")
Notable MCP Servers
| Server | Purpose | Install |
|---|---|---|
| Context7 | Up-to-date library docs | npx -y @upstash/context7-mcp |
| Figma | Design file access | HTTP: https://mcp.figma.com/mcp |
| Playwright | Browser automation | npx -y @playwright/mcp |
| Sentry | Error monitoring | HTTP: https://mcp.sentry.dev/mcp |
| GitHub | Repository operations | HTTP: https://api.githubcopilot.com/mcp/ (GitHub’s official MCP server) |
Practical Patterns
Pattern 1: Context-aware development — Pair Context7 with your framework docs so Codex always has current API references:
[mcp_servers.context7]
enabled = true
required = true
command = "npx"
args = ["-y", "@upstash/context7-mcp"]
Pattern 2: Output limits: a tool’s output is cut to the active model’s output budget before it is stored in history, and that budget is 10,000 tokens for every model in the catalog bundled with v0.172.0. tool_output_token_limit changes it globally, and mcp_servers.<id>.tools.<tool>.output_token_limit (v0.152.0+) changes it for one MCP tool. For tools that return large payloads (database queries, log captures), use enabled_tools to restrict to specific tools and keep responses focused.206258
Pattern 2a: Multimodal tool output (v0.107.0): Custom tools can return multimodal output, including structured content like images, instead of being limited to plain text.62
Pattern 3: Enterprise MCP governance. Lock down which MCP servers developers can use via requirements.toml. The server name must match the name in the user’s config, and the identity must match how that server is launched:
# In /etc/codex/requirements.toml: only approved servers stay enabled.
# Matches a server the user configures as: command = "npx", args = ["@company/internal-mcp"]
[mcp_servers.approved-internal.identity]
command = { executable = "npx", args = [
{ match = "exact", value = "@company/internal-mcp" },
] }
The shorter string form, identity = { command = "npx" }, compares only the configured command and ignores the arguments, so it would approve any npx package under that server name. The structured form above pins the invocation: the executable, the argument count, and the argument order must all match (exact, prefix, and regex matchers are available). For remote servers, match on identity = { url = "..." }. A server that is not listed or does not match is disabled, not started, and an mcp_servers table that is present but empty disables every MCP server.219 See Enterprise Deployment for full policy configuration.
Code Mode (experimental)
Code mode (first shipped as an experiment in v0.114.0) is a way of calling tools, not a limit on what the agent may do.70 Instead of one tool call per step, the model writes JavaScript that Codex evaluates “in a fresh V8 isolate as an async module,” with the session’s tools on a global tools object (await tools.exec_command(...), MCP tools included), so one script can chain several calls. The script itself gets “no Node, no file system, no network access, no console”: everything it does goes through those tools, and hook decisions apply to each nested call. The code_mode feature flag is under development and off by default at v0.172.0; features.code_mode.excluded_tool_namespaces keeps named tool namespaces out of it and direct_only_tool_namespaces limits them to direct calls. Separately, the catalog bundled with the CLI marks the current GPT-6 and GPT-5.6 models, GPT-6.2 Sol and GPT-6.2 Astra included, code_mode_only in their tool_mode field.211258
As of v0.139.0, code mode can call standalone web search directly, including from nested JavaScript tool calls, and receives plaintext results.106 v0.146.0 extends standalone web search to compatible custom model providers.121 At v0.172.0 the standalone web search tool has its own flag, standalone_web_search, which is under development and off by default, like code_mode itself.247257
v0.146.0 let app-server connect to remote Code Mode hosts, originally over WebSocket.121 v0.151.0 removes the WebSocket transport (#40692): app server --code-mode-host connections accept only http:// and https:// gRPC endpoints, and the standalone code-mode host is limited to stdio and gRPC listeners – at tag rust-v0.151.0 its listener doc reads verbatim “Transport endpoint: stdio, stdio://, or grpc://IP:PORT.” WebSocket survives only as an optional endpoint that streams raw OTLP trace batches for tracing, not as a session transport.145 v0.172.0 finishes the move: “Code Mode now uses gRPC for all host connections,” and the code_mode_host_grpc flag, which v0.169.0 had turned on, is marked removed.256257
Code mode is under development and off by default at v0.172.0. To try it, set
enabled = trueunder[features.code_mode], and expect it to change between releases.247257
JavaScript REPL Runtime (removed)
Codex v0.100.0 added an experimental JavaScript REPL runtime (js_repl) and v0.106.0 promoted it through the /experimental surface.60 That guidance is now historical. In v0.128.0, the release changelog includes “Remove js_repl feature,” and the current feature list marks both js_repl and js_repl_tools_only as removed.86
Do not add features.js_repl = true to new configs. Use shell commands, checked-in scripts, MCP tools, or a Codex skill with a scripts/ directory when you need repeatable executable logic.
What Are Skills?
Skills are reusable, task-specific capability packages that Codex loads on demand. They follow the open agent skills standard.13
Skill Structure
my-skill/
SKILL.md (required: instructions)
scripts/ (optional: executable scripts)
references/ (optional: reference docs)
assets/ (optional: images, icons)
agents/openai.yaml (optional: metadata, UI, dependencies)
Discovery Locations
Codex reads your personal skills from ~/.agents/skills ($HOME/.agents/skills), the user location the skills documentation lists today. $CODEX_HOME/skills (default ~/.codex/skills) is the older user location: the docs no longer list it, and the source at v0.172.0 still reads it but labels it the “Deprecated user skills location ($CODEX_HOME/skills), kept for backward compatibility,” so keep new skills in ~/.agents/skills and move old ones when convenient. Bundled system skills are installed under $CODEX_HOME/skills/.system. Codex supports symlinked skill folders.210257
| Scope | Path |
|---|---|
| Project/team | .agents/skills/ in every directory from the current working directory up to the repository root |
| User | ~/.agents/skills/ (deprecated but still read: ~/.codex/skills/) |
| Admin | /etc/codex/skills/ |
| System | Bundled by OpenAI, including skill-creator and skill-installer (installed under ~/.codex/skills/.system/) |
Creating a Skill
SKILL.md format:
---
name: security-audit
description: Run a thorough security audit on the codebase.
---
## Security Audit Procedure
1. Scan for hardcoded secrets using `rg -i "(api_key|password|secret|token)\s*=" --type py`
2. Check for SQL injection: look for string interpolation in queries
3. Verify input validation on all API endpoints
4. Check dependency vulnerabilities: `pip-audit` or `npm audit`
5. Review authentication and authorization patterns
6. Report findings with severity levels (Critical/High/Medium/Low)
Metadata (agents/openai.yaml):
interface:
display_name: "Security Audit"
short_description: "Full codebase security review"
icon_small: "./assets/shield.svg"
brand_color: "#DC2626"
default_prompt: "Run a security audit on this repository"
policy:
allow_implicit_invocation: false # Require explicit $skill
dependencies:
tools:
- type: "mcp"
value: "securityScanner"
description: "Vulnerability scanner MCP server"
transport: "streamable_http"
url: "https://mcp.example.com/mcp" # placeholder: your scanner's MCP endpoint
A dependencies.tools entry takes type, value, description, transport, and url; the URL above is a placeholder for a server you run or trust.250
Invoking Skills
- Explicit:
/skillsmenu or$skill-namemention in prompt - Implicit: Codex auto-detects matching skills from task description (if
allow_implicit_invocation: true) - Creator: Use
$skill-creatorto interactively build a new skill - Installer: Use
$skill-installer <name>to add a curated skill (for example$skill-installer linear); you can also ask the installer to download skills from other repositories250 - Executor-provided (v0.146.0): Codex discovers skills offered by the executor and reads their associated resources, including skills you select explicitly121
Context budgets truncate skill catalogs. v0.146.0 retains more available skills under tight context and warns when a catalog has to be truncated.121 If you rely on implicit invocation across many skills, watch for that warning.
Enable/Disable
[[skills.config]]
path = "/path/to/skill/SKILL.md"
enabled = false
Skills vs Slash Commands
| Skills | Slash Commands | |
|---|---|---|
| Defined in | SKILL.md files with optional metadata |
Built into Codex CLI binary |
| Scope | Project, user, or admin level | Global (always available) |
| Invocation | $skill-name in prompt, /skills menu, or implicit detection |
/command syntax |
| Customizable | Fully — you write the instructions | Fixed behavior |
| Dependencies | Can declare MCP server requirements | None |
| Sharing | Commit the skill folder under the repo’s .agents/skills/, or copy it to ~/.agents/skills/ |
Not shareable |
Debugging Skills
If a skill isn’t activating:
- Check discovery:
/skillsshould list it in the TUI - Verify path: Ensure the skill folder is in a recognized location (
~/.agents/skills/, a repository.agents/skills/folder, or/etc/codex/skills/) - Check
enabled: Skills withenabled = falsein config.toml won’t load - Check implicit activation: If relying on auto-detection, ensure
allow_implicit_invocation: trueinagents/openai.yaml - Use keywords: Include the skill’s
descriptionterms in your prompt to improve implicit matching
Production Example: Deploy Skill
A complete multi-file skill showing references and scripts working together:
deploy-skill/
SKILL.md
references/
runbook.md
rollback-checklist.md
scripts/
pre-deploy-check.sh
smoke-test.sh
agents/openai.yaml
SKILL.md:
---
name: deploy
description: Deploy the application to staging or production. Runs pre-flight checks, executes deployment, and verifies with smoke tests.
---
## Deployment Procedure
### Pre-flight
1. Run `scripts/pre-deploy-check.sh` to verify:
- All tests pass
- No uncommitted changes
- Branch is up to date with remote
2. Review the runbook at `references/runbook.md` for environment-specific steps.
### Deploy
3. Execute the deployment command for the target environment.
4. Monitor logs for errors during rollout.
### Verify
5. Run `scripts/smoke-test.sh <environment-url>` to confirm critical paths.
6. If smoke tests fail, follow `references/rollback-checklist.md`.
Invoke with: $deploy to staging or $deploy production with canary rollout
Plugins
Plugins package skills, MCP entries, and app connectors into a single installable unit (v0.110.0+), and since v0.128.0 a plugin can bundle hooks too.6586 As of v0.117.0, plugins are first-class citizens: product-scoped plugins sync at startup and /plugins provides an in-TUI browser for browsing, installing, and removing them.75 v0.128.0 expanded plugin workflows with marketplace installation, remote bundle caching, remote uninstall, plugin-bundled hooks, hook enablement state, and external-agent config import.86 v0.129.0 (May 7, 2026) adds workspace plugin sharing through the app server (plugin/share/save, plugin/share/list, plugin/share/delete), share targets that can be updated without re-uploading the plugin (plugin/share/updateTargets), a marketplaceKinds filter on plugin/list (local, workspace directory, shared with me), and marketplace removal (Ctrl+R) and upgrade (Ctrl+U) from the /plugins browser.89273 v0.133.0 (May 21, 2026) makes plugin discovery easier to inspect: codex plugin list prints one table per marketplace with installed versions, codex plugin marketplace list shows the marketplace roots, and remote collections are supported.98273 v0.130.0 (May 8, 2026) has three plugin changes:91273
- Bundled hooks visible in plugin details. The
/pluginsdetail view gains a Hooks row listing the hooks a plugin bundles, and it shows them for disabled plugins too. - Share link in
shareContext. A shared plugin’s summary now carries its share URL and its share targets, beside the creator metadata added in v0.129.0. - Discoverability on share updates. Updating a share’s targets must state its discoverability; an unlisted share adds the workspace automatically, and a share cannot be created as listed.
v0.143.0 (July 8, 2026) turns remote plugins on by default. The remote_plugin feature is stable and on, and setting it to false under [features] still turns it off. Marketplace entries can use npm sources, catalog rows are richer, and plugin summaries carry the version the remote marketplace advertises beside the local one.111273
Plugin Sources
| Source | Location | Description |
|---|---|---|
| Config | config.toml |
[plugins."<plugin>@<marketplace>"] entries enable plugins273 |
| Local marketplace | .agents/plugins/marketplace.json in a repository, or ~/.agents/plugins/marketplace.json |
A local plugin catalog that plugin/list reads273275 |
| Install endpoint | App server (plugin/install) |
Enables a plugin from an app-server client65 |
| Product-scoped | Synced at startup | Plugins scoped to a product, synced at startup (v0.117.0+)75 |
| Portable Agent Plugins | Installable packages | Plugin packages in the cross-vendor Agent Plugins 1.0 format, which ChatGPT and Codex, Cursor, GitHub Copilot, Kiro, and VS Code supported at launch (v0.147.0+)126 |
As of v0.147.0, Codex installs portable Agent Plugins and searches across local, personal, workspace, and remote plugin catalogs.123
Plugin Discovery
Codex tells the model which plugins are enabled at session start (v0.111.0), improving discovery of installed MCPs, apps, and skills.65 In v0.117.0, product-scoped plugins are synced at startup.75 As of v0.142.0, the /plugins menu organizes remote plugins into OpenAI Curated, Workspace, and Shared with me sections, and eligible turns can recommend and install relevant plugins.109 As of v0.151.0, plugin/list and plugin/installed load the effective plugin configuration for every requested cwd – local marketplaces combine in request order, installed and enabled state merges across repositories, and invalid project configurations are reported through marketplaceLoadErrors without dropping valid local catalogs or globally enabled remote catalogs.144
@plugin Mentions (v0.112.0+)
Reference a plugin directly in chat with @plugin-name.68 Codex then adds the plugin’s MCP servers, apps, and skills to the turn’s context, so you do not have to describe what the plugin does.273
@deploy push this branch to staging with canary rollout
@linter check for unused imports in src/
Plugin Marketplace (v0.113.0+)
v0.113.0 added curated marketplace discovery, richer plugin/list metadata (the optional interface fields in plugin.json), install-time auth checks that report which of a plugin’s apps still need sign-in, and a plugin/uninstall endpoint that removes the plugin from the plugin cache and its entry from the user config.69273
Adding Third-Party Marketplaces (v0.121.0+)
Current OpenAI Codex docs keep marketplace source management under codex plugin marketplace. It supports GitHub repo shorthand, HTTP(S) Git URLs, SSH URLs, and local marketplace root directories; use --ref to pin a Git ref and repeat --sparse PATH only for Git-backed marketplace repos.93
# GitHub repository (shorthand)
codex plugin marketplace add owner/repo
# Arbitrary git URL
codex plugin marketplace add https://git.example.com/team/plugins.git
# SSH Git URL
codex plugin marketplace add git@example.com:team/plugins.git
# Local directory
codex plugin marketplace add /path/to/local/marketplace
# Upgrade or remove a configured marketplace
codex plugin marketplace upgrade <marketplace-name>
codex plugin marketplace remove <marketplace-name>
Once added, a marketplace’s plugins appear in the /plugins browser alongside the default ones. App-server callers (IDE/desktop integrations) have a parallel endpoint to register marketplaces programmatically.82
Security consideration: A plugin can bundle hooks, which are commands that run at lifecycle points in the Codex runtime, and MCP servers. Vet a marketplace before adding it; OpenAI’s plugin docs say to “Review and trust plugin hooks before they run.”273
Agent Plugins: the Cross-Vendor Standard (v0.146.0–v0.147.0)
“Agent Plugins” is not just a Codex feature name: it is an open, vendor-neutral packaging standard, published as Agent Plugins 1.0.0 on August 6, 2026, whose official site summarizes it as “A portable package format for reusable components that extend AI agents.”126 A plugin is a directory with a required plugin.json manifest (a closed schema of exactly ten permitted top-level fields — $schema, name, version, description, author, homepage, repository, license, keywords, extensions — where “Clients MUST report and ignore each unknown field”), an optional skills/ folder (each immediate child directory containing a SKILL.md is one skill), an optional mcp.json declaring stdio, Streamable HTTP, or legacy HTTP+SSE servers, and optional reverse-domain client namespaces (the spec says “A client MUST ignore manifest entries for namespaces it does not implement”). Its normative scope is packaging: the spec “defines the canonical Agent Plugins Specification v1.0.0 for packaging reusable components that extend AI agents into distributable plugins” — Agent Skills and MCP keep their own specifications underneath it.126
Vercel initiated the proposal, and representatives from Amazon Web Services, Anysphere (Cursor), GitHub, Microsoft, OpenAI, and Vercel refined it into the 1.0 specification; the spec repository’s maintainer roster spans Amazon, Cursor, Microsoft, OpenAI, and Vercel, and Google has announced that it is joining the core maintainers.126 The named launch clients span ChatGPT, Codex, Cursor, GitHub Copilot, Kiro, and VS Code. One conspicuous absence: Anthropic, which created the underlying Agent Skills format and MCP itself, is not among the maintainers — Claude Code keeps its own plugin format, and Codex bridges the gap from its side with the Claude Code marketplace source (v0.146.0) and /import.126
In Codex terms: v0.146.0 adds Agent Plugins manifests, workspace plugin publishing, and two additional plugin marketplaces — Amazon Bedrock and Claude Code121 — and v0.147.0 completes the loop with portable Agent Plugins installation and search across local, personal, workspace, and remote catalogs.123 For workspace publishing, plugin share contexts carry a canPublishToWorkspace capability, so a client can decide whether to offer publishing to the workspace directory.273
Authoring and publishing. OpenAI’s Build plugins page documents both. A portable plugin has a
plugin.jsonmanifest at its root that declares the Agent Plugins schema, with skills underskills/and MCP servers inmcp.json; OpenAI-specific settings go underextensions.com.openai, and an existing.codex-plugin/plugin.jsonstill loads as a compatibility fallback. A repo marketplace is the file.agents/plugins/marketplace.jsonat the repository root, and a personal one is~/.agents/plugins/marketplace.json. Publishing to a workspace happens in ChatGPT, not in the CLI (at v0.172.0codex pluginhasadd,list,marketplace, andremove): a workspace admin opens ChatGPT Plugins, selects Personal, opens the plugin’s three-dot menu, selects Publish, and chooses the workspace roles that get access. An administrator can turn workspace publishing off withfeatures.plugin_sharing = falseinrequirements.toml.245257275
Managing Plugins
codex plugin marketplace add <src> # Add a marketplace source
codex plugin marketplace upgrade [name] # Upgrade one marketplace or all
codex plugin marketplace remove <name> # Remove a configured marketplace
codex plugin list # List plugins; includes remote catalog entries (v0.153.0)
codex plugin list --json # JSON adds source, version, install + auth policy (v0.153.0)
codex plugin list --available --json # JSON including uninstalled marketplace plugins
v0.153.0 extends the plugin CLI from marketplace management to plugin-level operations against remote marketplaces: codex plugin list includes remote catalog entries (with their source, version, install policy, and authentication policy in JSON output; in JSON output the uninstalled entries appear only with --available), and remote plugins can be added and removed through the existing plugin CLI. Remote catalogs are cached by scope and collection – fresh cached results are preferred, an add request that misses a plugin in the cache refetches once, and the local curated catalog is preserved when an unfiltered remote listing fails (errors still surface for explicitly selected remote marketplaces).149275
In the TUI, use /plugins (v0.117.0+) to browse, install, and remove individual plugins interactively without leaving your session.75
Expert tip: A single plugin can bundle skills, MCP servers, and app connectors, so a team installs one package where it used to configure each separately.
Plan Mode & Collaboration
Plan mode lets Codex design an approach before executing changes. It’s enabled by default (since v0.94.0).14 See Decision Frameworks for the “Plan Mode vs Direct Execution” decision tree.
Plan mode vs the
update_plantool (v0.152.0): these are two different things, and only one of them is on by default. Plan mode – the collaboration mode this section describes, where Codex proposes before executing – has been enabled by default since v0.94.0 and is unchanged.update_planis a planning tool the model can call to maintain a structured plan inside a turn, and it shipped opt-in in v0.152.0:tools.update_plan.enableddefaults tofalse, and while it is disabled Codex also strips the bundledupdate_planguidance from its model, collaboration-mode, multi-agent, compaction, prewarm, and goal-continuation prompts (custom base instructions, model catalog instructions, collaboration policies, and user goal text are preserved even when they mention planning). Enable it explicitly withtools.update_plan.enabled = trueinconfig.toml.147
Entering Plan Mode
/plan # Switch to plan mode
/plan "redesign the API layer" # Plan mode with initial prompt
In plan mode, Codex:
- Reads files and analyzes the codebase
- Proposes an implementation plan
- Does not make changes until you approve
- Streams the plan in a dedicated TUI view
Steer Mode
Steer mode (enabled by default since v0.98.0) allows you to inject new instructions into the turn Codex is working on.14 Since v0.162.0 the new input preempts the response in progress (instant_interrupt, on by default); set instant_interrupt = false under [features] to have it wait for the response to finish.188276
There are two injection methods:
| Input | Behavior | When to Use |
|---|---|---|
| Enter | Sends instructions immediately; Codex sees them during the current turn | Urgent corrections (“stop — don’t modify that file”), clarifications (“the config is in /etc/app.conf, not the default path”), or priority changes (“focus on the tests first”) |
| Tab | Queues instructions for the next turn; Codex finishes its current work first | Follow-up tasks (“after this, also update the changelog”), scope additions (“when you’re done, run the linter”), or non-urgent context (“the deploy target is staging, not prod”) |
Practical examples:
# Codex is refactoring the auth module...
[Enter] "Use bcrypt instead of argon2 — we already have it as a dependency"
→ Codex adjusts immediately, mid-turn
[Tab] "Once auth is done, update the migration script too"
→ Codex finishes auth refactor, then starts the migration
Steer mode is always active in the TUI. If you prefer to wait until Codex finishes before giving instructions, just type normally after the turn completes — no special mode needed.
TUI Enhancements (v0.105.0–v0.106.0)
Syntax highlighting (v0.105.0): The TUI now syntax-highlights fenced code blocks and diffs inline. Use /theme to choose a color scheme.61
New TUI commands (v0.105.0+):61
| Command / Key | Description |
|---|---|
/copy |
Copy picker (v0.150.0+): choose the full response, an individual code block, or a blockquote; earlier versions copy the last response141. v0.162.0: navigate and copy transcript blocks from the picker, and Ctrl+Insert copies a mouse selection (#50434, #50215)188 |
/clear |
Clear the terminal and start a new chat; /clear <name> names the new chat (use Ctrl+L to clear the display and keep the conversation)217 |
Ctrl+L |
Clear the terminal display; since v0.167.0 earlier messages stay available through Ctrl+T200 |
/theme |
Preview and persist a syntax-highlighting theme; v0.156.0 adds six bundled themes (ada, babbage, curie, cushman, dali, davinci) and theme-aware accents (#46504)170 |
/plugins |
Browse, install, and remove plugins (v0.117.0+)75 |
/title |
Configure which items appear in the terminal title; works in TUI and app-server TUI (v0.117.0+)75 |
/archive |
Archive the current session; archived sessions are protected from resume/fork until restored (v0.136.0+)103 |
Voice transcription (v0.105.0, removed in v0.118.0): v0.105.0 added experimental hold-the-spacebar dictation in the composer, behind the voice_transcription flag.61 v0.118.0 removed it (PR #16114, “Remove TUI voice transcription feature”), and the feature list at v0.172.0 has no voice_transcription flag. For voice in the terminal, use /voice.237257 As of v0.107.0, realtime voice sessions support microphone and speaker device selection, allowing you to choose specific audio input/output hardware.62 Removed in v0.140.0, returned in v0.145.0: the experimental /realtime voice controls and their audio dependencies were dropped from the TUI in v0.140.0.107 v0.145.0 brings voice back in a new form: audio inputs and audio tool outputs in common local audio formats, plus streaming realtime V3 conversations.117
v0.155.0 and v0.156.0: live voice conversations. v0.155.0 (September 17, 2026) added /voice as an experimental, opt-in feature: a live conversation with a streaming transcript and microphone controls, enabled through /experimental on supported builds (#43581, #43651, #44331), with a configurable mute shortcut (#43690) and signed voice resources in the macOS packages (#43983). v0.156.0 (September 22, 2026) made it stable and on by default (#44921), and the docs changelog announced it the same day: “Voice conversations are enabled by default, with an F8 toggle, a /voice settings picker, and bundled audio runtimes for Linux and Windows.” The off switch that shipped with it, realtime_conversation = false under [features], stopped working in v0.164.0, which removed the flag with the feature left on.197201 The CLI slash-command reference lists /voice now (it did not on September 22), and the docs Voice feature page covers ChatGPT Voice in the desktop app, a separate surface.165170
Other improvements:
- Long links now remain clickable even when wrapped across TUI lines (v0.105.0)61
- Local file links render with improved formatting (v0.106.0)60
- TUI markdown keeps web links clickable via OSC 8 metadata, and cramped tables fall back to readable key/value records without losing link targets (v0.136.0)103
- Markdown links appear as clickable labels in supported terminals, with visible URLs retained elsewhere (v0.150.0)141
Ctrl+Chandling for sub-agents fixed to properly terminate child processes (v0.106.0)60
Memory System
Codex has a local memory system (v0.100.0+) that carries useful context from earlier sessions into later ones.24 It is off by default: turn it on with memories = true under [features]. Once on, Codex writes the memories itself, in the background, from eligible earlier chats; you do not enter them by hand.209
Memory Commands
| Command | Description |
|---|---|
/memories |
Choose whether Codex uses existing memories, generates new ones, or keeps memory behavior off, without leaving the TUI |
codex debug clear-memories |
Reset local memory state for a fresh start (v0.107.0+; a hidden, internal subcommand at v0.172.0)62209257 |
Memories are generated files under your Codex home: ~/.codex/memories/ (v1) or, for a profile that turned memories on with no v1 store present, ~/.codex/memories_v2/. Codex skips active or short-lived sessions, redacts secrets from generated memory fields, and updates memories in the background rather than at the end of every chat. The docs say to “treat these files as generated state,” so inspect them when troubleshooting but do not rely on hand edits. There is no /m_update or /m_drop command.209
What to Store
Memories are a recall layer for preferences and project facts that came up in earlier sessions, such as:
- Project conventions: “This project uses tabs, not spaces” or “API responses always include a
metafield” - Tool preferences: “Use
pnpminstead ofnpm” or “Run tests withpytest -x --tb=short“ - Architecture decisions: “The auth module is in
src/core/auth/, notsrc/middleware/“ - Workflow preferences: “Always run the linter before showing me a diff”
Rules that must hold every time belong in AGENTS.md: the docs tell you to “treat memories as a helpful recall layer, not as the only source for rules that must always apply.”209
Memory in Pipelines
The memories documentation describes interactive sessions and does not say whether codex exec runs read the store. For CI/CD pipelines and scripts, put the instructions a run needs in AGENTS.md or in the prompt instead of counting on memories.209
Memory Refinements (v0.101.0 onward)
- Secret sanitization: Memories are automatically scanned for secrets before being written to disk
- CWD awareness: Memory files now include the working directory context for project-specific recall
- Developer message exclusion: Developer/system messages are excluded from phase-1 memory input, improving memory quality by focusing on user interactions
- Diff-based forgetting (v0.106.0): Memory uses diff-based forgetting60
- Usage-aware selection (v0.106.0): Memory selection is usage-aware60
- Configurable memories (v0.107.0): Memories are configurable, and
codex debug clear-memoriesfully resets saved memory state62 - Phase-2 model upgrade (v0.121.0): the phase-2 consolidation model moved to
gpt-5.4at the time. The phase-2 pipeline runs between sessions to distill phase-1 transcripts into durable facts. That default has since been replaced (see the v0.167.0 entry below).82 - TUI memories controls (v0.121.0): The TUI and app server gain controls for memory mode and for memory reset and deletion, and a reset no longer disables memories for past rollouts (#17919).82
- Memory v2 for fresh profiles (v0.165.0): a profile with no
~/.codex/memories/directory starts on memory v2, stored under~/.codex/memories_v2/; existing v1 profiles stay on v1,memories.version(v1orv2) sets it explicitly, andmemories.dual_write = falseopts a fresh profile out. Importing memories from external agents into v2 sits behind theexternal_agent_memory_importflag, off and under development at v0.166.0.198199 - Default memory models updated (v0.167.0): the default models for memory extraction and consolidation changed (#58091). The built-in defaults are
gpt-6-lunafor extraction andgpt-6.1-terrafor consolidation, unchanged at v0.172.0;memories.extract_modelandmemories.consolidation_modeloverride them.200206226257
Memory vs AGENTS.md
| Use Case | Memory (generated) | AGENTS.md |
|---|---|---|
| Personal preferences | Use memory (persists across all projects) | Not appropriate |
| Project conventions | Either (memory for personal recall, AGENTS.md for team sharing) | AGENTS.md for team |
| Architecture decisions | AGENTS.md (shared context) | Primary choice |
| Tool commands | Memory (quick personal reference) | AGENTS.md for team |
Tip: Leave memory generation on (
/memories) for sessions whose context is worth recalling later, and turn it off for throwaway ones. For session-specific context, just tell Codex directly in the conversation. For shared team context and anything that must always apply, use AGENTS.md.
Session Management
Codex persists sessions under ~/.codex/sessions/, enabling resume, forking, and multi-thread workflows across CLI and desktop surfaces.
v0.146.0 makes threads addressable. /new and /clear now take a session name, important threads can be pinned, and you can switch between side conversations without closing them.121 v0.147.0 adds conversation sections: conversations organize into persistent, manually ordered sections, and long transcripts browse incrementally.123 v0.148.0 adds /export and command-line forking: /export writes the complete conversation to Markdown (clipboard or a new file), codex exec fork forks a session non-interactively, and the resume picker can archive and restore sessions.127 v0.149.0 adds codex queue — send messages to existing local or remote sessions from the command line — and fixes resumed/forked threads to restore their active permission profile.129 v0.150.0 adds automatic titles: unnamed terminal tasks receive descriptive titles automatically, and /rename suggests an editable title based on the conversation.141 v0.151.0 adds /recap: request a short summary of the conversation’s recent progress and next steps on demand; Codex also generates the same recap automatically for eligible idle, unfocused conversations and adds it to the transcript, with bounded, isolated requests and retries only for automatic failures.145 v0.153.0 makes the automatic half optional: tui.auto_recap = false cancels scheduled automatic recap checks and discards pending automatic results, while manual /recap keeps working.149
codex agents (v0.149.0) is the interactive dashboard for every active agent session on the machine: search, start, open, rename, and stop tasks from one screen, with configurable shortcuts. Inside a session, /agents switches between all active agent sessions and /subagents switches between the current session’s subagents.129138 v0.150.0 makes tasks addressable from the conversation: reference other Codex tasks with @ mentions, and ask agents to read, create, or message tasks from the terminal.141 v0.166.0 adds codex queue --resume: after queueing a message to a thread that is not loaded, Codex tries to resume it on the local daemon or the selected --remote server; a failed resume warns and the queue still succeeds.198199 v0.167.0 adds codex agents --no-daemon: the command center opens in an embedded session, without the shared background server, and both it and the session picker mark sessions with unread results.200
Resume
Pick up where you left off:
codex resume # Interactive picker (sorted by recency)
codex resume <SESSION_ID> # Resume a specific session
codex exec resume --last "continue" # Non-interactive: resume most recent
The /resume slash command inside the TUI opens the same interactive picker with search.
Paginated thread history (v0.145.0, promoted in v0.151.0): Paginated thread history brings efficient resume, search across history, persisted thread names, sub-agent support, and memories to session management. Introduced as experimental in v0.145.0; v0.151.0 promotes the APIs out of experimental (thread/turns/list, thread/items/list, and thread/revert no longer need the experimental API capability) and makes paginated the resolved default only for durable threads whose store supports thread/turns/list and thread/items/list, and only when thread/start omits historyMode. Ephemeral threads and threads backed by stores without those APIs still default to legacy, explicit selections keep their behavior, and the protocol-level ThreadHistoryMode enum still defaults to Legacy at tag rust-v0.151.0 (protocol.rs:755-758) – a resolved default for supporting durable threads, not a blanket flip.117145
Fork
Branch a conversation to explore alternatives without losing your current progress:
/fork # Fork current conversation
/fork redis-experiment # Fork and name the new chat
The text after /fork names the new chat; it is not sent as a prompt, so type the prompt once the fork opens.253
Forks create independent threads sharing the same history up to the fork point. As of v0.146.0, fork history is paginated, and forks can be created as temporary — a temporary fork does not appear in thread listings, which keeps throwaway experiments out of the thread list you actually navigate.121 Changes in one fork don’t affect the other. This is useful for comparing approaches (e.g., “fork and try Redis instead of Memcached”) or exploring risky changes safely.
Thread forking into sub-agents (v0.107.0): A thread can be forked into sub-agents, which the release notes describe as “making it easier to branch work without leaving the current conversation.”62 As of v0.117.0, sub-agents use path-based addresses (e.g., /root/agent_a) with structured inter-agent messaging and agent listing.75
Encrypted inter-agent messages (v0.138.0+): Multi-agent v2 now encrypts the task text a parent agent sends when it spawns or messages a sub-agent. The message parameters of spawn_agent, send_message, and followup_task are marked encrypted: the Responses API encrypts the payload when the parent model emits the tool call, the locally running Codex carries only ciphertext (InterAgentCommunication.encrypted_content, with empty plaintext content), and the API decrypts it server-side when handing it to the receiving model.113 Three practical consequences:
- Your local session logs no longer contain delegation plaintext. You can see that a parent spawned a sub-agent and what came back, but not the exact instruction it sent. If you audit or debug multi-agent runs from session history, that record is gone; the regression issue tracking this is still open on November 25, 2026.114 Extension lifecycle events (subagent start/stop, tool execution, turn metadata — v0.133.0+) and app-server observability are the remaining hooks for reconstructing what happened.98
- Custom-provider models can break. A model endpoint that is not configured for encrypted tool use rejects the encrypted
spawn_agentschema with a 400 ("declares encrypted parameters but is not configured for encrypted tool use"). If multi-agent delegation fails with that error on a custom provider, that is the encryption change, not your config.114 - Codex-generated notifications stay readable. Child-completion notifications are produced by Codex itself, so they remain plaintext and now render as typed
agent_messageitems rather than serialized JSON envelopes.113
OpenAI has not published the threat model behind the change; the PR describes the ciphertext flow without stating what it protects against.
Multi-agent v2 stabilized (v0.145.0, opt-in): The multi-agent v2 experience that debuted in v0.137.0 and gained encrypted delegation in v0.138.0 was stabilized as an opt-in feature in v0.145.0. You rarely need to opt in at v0.172.0: the multi_agent_v2 flag is stable and still off by default, but the model catalog bundled with the CLI selects v2 for GPT-6.2 Sol and Astra, GPT-6 Astra, GPT-6.1 Sol and Terra, GPT-6 Sol and Luna, and GPT-5.6 Sol and Terra (GPT-5.6 Luna stays on v1), and multi_agent_v2 = true under [features] forces v2 for every model.247257258 The version also sets the default concurrency cap: on v2 a session holds four threads counting the primary, so three spawned agents run at once, and on v1 the cap is six spawned agents; max_concurrent_threads_per_session = N under [agents] allows N spawned agents on either.264
The older multi_agent flag is deprecated since v0.168.0. It still controls the v1 fallback, but a user or project config that sets it draws a startup warning (the config reference page still describes the flag as “stable; on by default”; the source at v0.172.0 marks it deprecated). To turn subagent tools off, set enabled = false under [agents]: that disables them even when the model selects a subagent version, unless multi_agent_v2 is enabled.256257262 v0.145.0 adds configurable sub-agent models, per-sub-agent reasoning levels, configurable concurrency, restored multi-agent roles, and improved agent navigation.117
Thread Listing
View and manage active sessions:
/status # Current session info and token usage
/ps # Show background terminals in session
In the desktop app, projects and their chats are listed in the sidebar.269
Session Lifecycle
| Action | CLI | Desktop App |
|---|---|---|
| Start new | codex or /new |
New chat (⌘+N or Ctrl+N)274 |
| Resume | codex resume or /resume |
Select the chat in the sidebar |
| Fork | /fork |
Not documented for the desktop app; use /fork in the CLI |
| End | /quit or Ctrl+C |
Archive the chat (⌘+⇧+A on macOS, Ctrl+Shift+A on Windows); restore it from Settings > Archived chats274 |
| Delete | /delete in the session, or codex delete <session> by ID or name (v0.140.0+)107 |
Not documented for the desktop app |
A CLI session can continue in the desktop app: on macOS and Windows, /app opens the current session there.269
Non-Interactive Mode (codex exec)
codex exec runs Codex non-interactively for scripting, CI/CD, and automation.15
Basic Usage
codex exec "summarize the repository structure"
codex exec --sandbox workspace-write "fix the CI failure" # exec never prompts: a command the sandbox blocks fails, and the model sees the failure
codex exec --approve-for-me "fix the CI failure" # workspace-write, with automatic review answering approval requests
codex exec --json "triage open bugs" -o result.txt
By default, codex exec writes progress/events to stderr and the final agent message to stdout. The design makes it composable with standard Unix pipelines.
Two defaults differ from the interactive TUI. codex exec runs in a read-only sandbox unless you choose another, so a task that edits files needs --sandbox workspace-write (or sandbox_mode in config). And it never stops to ask a person: it forces the approval policy to never, and neither -c approval_policy=on-request nor approval_policy in config.toml changes that. A command the sandbox blocks fails, and the model sees the failure. The exception is automatic review: with --approve-for-me, or approvals_reviewer = "auto_review" in config, exec keeps the configured policy and a reviewer answers each request.239
A third default arrived in v0.169.0: in a directory Codex does not trust, codex exec leaves project configuration and MCP servers disabled, even with --sandbox workspace-write. Pass --trust to codex exec or codex review to save trust for the project; it persists for future chats, even with --ephemeral, and does not override a project you marked untrusted. A CI job that relied on a repository’s .codex/config.toml or its MCP servers needs the flag, or a trusted-project entry in the runner’s config.toml.256257262
Session Archiving (v0.136.0)
Sessions can be archived to keep the resume/fork list focused without deleting history. Archive from the TUI with /archive, or from the shell:103
codex archive <session-id> # archive a session
codex unarchive <session-id> # restore it
An archived session is protected from resume or fork operations until you unarchive it — a guardrail against accidentally continuing a session you meant to retire. Same release: codex app-server --stdio launches the app-server in stdio mode for editor/host integrations, and /diff is now blocked from executing repository-provided Git helpers (a command-safety fix). On Windows, an alpha provisioning path adds codex sandbox setup --elevated for administrators.103
JSON Lines Output
With --json, stdout becomes a JSONL event stream:
codex exec --json "fix the tests" | jq
Event types: thread.started, turn.started/completed/failed, item.started/updated/completed, error246
{"type":"thread.started","thread_id":"019c5c94-..."}
{"type":"turn.started"}
{"type":"item.started","item":{"id":"item_1","type":"command_execution","status":"in_progress"}}
{"type":"item.completed","item":{"id":"item_3","type":"agent_message","text":"..."}}
{"type":"turn.completed","usage":{"input_tokens":24763,"cached_input_tokens":24448,"cache_write_input_tokens":0,"output_tokens":122,"reasoning_output_tokens":0}}
Structured Output
Enforce response shape with JSON Schema:
codex exec "Extract project metadata" \
--output-schema ./schema.json \
-o ./project-metadata.json
-o / --output-last-message writes the final message to a file.
Session Resume and Review
codex exec resume --last "continue where you left off"
codex exec resume <SESSION_ID> "fix the remaining issues"
codex exec review --base main # Code review against a branch
Since v0.172.0, codex exec resume restores the session’s saved sandbox permissions, working directory, and workspace roots unless you override them on the command line (#62194).256
Key Flags
| Flag | Description |
|---|---|
--sandbox workspace-write |
Workspace-scoped automation. codex exec has no --ask-for-approval flag and runs with approval policy never; -c approval_policy=... does not change that, so a command the sandbox blocks fails instead of prompting239 |
--approve-for-me |
Automatic review answers approval requests, with the workspace-write sandbox and the on-request policy; cannot be combined with --sandbox or --dangerously-bypass-approvals-and-sandbox239 |
--thread-source <SOURCE> |
Classify newly created or forked threads: user (default), subagent, memory_consolidation, or a feature name; global across codex exec subcommands, ignored when resuming; threadSource in the TypeScript SDK (v0.149.1)135 |
--remote <ADDR> |
Start or resume the non-interactive session on an existing app server instead of a local one; --remote-auth-token-env <ENV_VAR> names the variable that holds the bearer token (v0.171.0)256257 |
--trust |
Save trust for this project, for this run and future chats, so project config and MCP servers load; persists even with --ephemeral and does not override an explicitly untrusted project (v0.169.0)256257262 |
--json |
JSONL event stream to stdout |
-o, --output-last-message <file> |
Save final message to file |
--output-schema <file> |
JSON Schema file describing the shape of the final response246 |
--ephemeral |
Don’t persist session files |
-C, --cd <dir> |
Set working directory |
--add-dir <dir> |
Extra writable directories |
--skip-git-repo-check |
Allow running outside git repos |
--dangerously-bypass-approvals-and-sandbox |
No sandbox and no approvals; only for runs that an outer sandbox already contains, such as a disposable CI container239 |
CI Authentication
codex exec supports CODEX_API_KEY for non-interactive authentication in automation environments.
codex execstartup banner (v0.130.0). Thecodex execstartup banner no longer prints the legacy “research preview” wording. If your CI scrapes startup output, the banner text is now slimmer; structured--jsonevents are unchanged.91
codex remote-control (v0.130.0+)
codex remote-control is an experimental top-level command that starts the app-server with remote control enabled, for managed remote-control clients and SSH remote workflows. The bare command uses the managed background server when eligible and falls back to the foreground; --no-daemon forces the foreground, and start and stop manage the daemon explicitly. It is not a replacement for codex app-server --listen: the docs say to keep using that when you are building a local protocol client.218 The command arrived in v0.130.0 as a headless app-server entrypoint.91 v0.133.0 gave it its current shape: it can run like a foreground command, wait for readiness, and report machine status, alongside the explicit start / stop commands.98 v0.143.0 adds codex remote-control pair, which prints a short-lived manual pairing code from a running daemon, for connecting another device; it does not start or restart the daemon (#29913).111 v0.171.0 adds /rc (also /remote) inside the TUI, which manages remote control for the local background server and shows device pairing codes.256257 Add --json to any remote-control command for machine-readable output.
# Start remote control (managed background server when eligible, else foreground)
codex remote-control
codex remote-control --no-daemon # Force the foreground
# Manage the daemon explicitly
codex remote-control start
codex remote-control stop
# Print a short-lived manual pairing code from a running daemon (v0.143.0+)
codex remote-control pair
# Same lifecycle as a TUI session: thread store, hooks, plugins, MCP, sandbox
# all initialize from your normal config.toml.
If you are building your own UI or local protocol client, use codex app-server --listen with the pagination APIs below, which let you enumerate large thread histories without hydrating every turn into memory at once.
App-Server Thread Pagination (v0.130.0+)
App-server clients can now page large threads through three distinct turn item views, chosen with itemsView on thread/turns/list:91272
| View | Use Case |
|---|---|
notLoaded |
Omits turn items: thread structure only (cheapest) |
summary |
Summarized item data; the default when itemsView is omitted |
full |
Full item data, including tool calls and outputs |
v0.121.0 introduced the codex-thread-store interface and moved local thread listing behind it.82 v0.143.0 widens what a controller can inspect: app-server clients can now enumerate available environments, list a thread’s descendant threads, and fork history through a specific turn.111 v0.151.0 promotes the paginated thread history APIs out of experimental and defaults durable threads with supporting stores to paginated history when thread/start omits historyMode (ephemeral threads and unsupporting stores stay legacy); full-history hydration is deprecated for paginated threads (#40676).145
Live App-Server Config Refresh (v0.130.0+)
Live app-server threads pick up config changes without requiring a restart. After a config write through the app server, live threads are refreshed from the rebuilt config snapshot instead of re-reading only the user config.toml; settings that are fixed for a session do not change (#21187).91
Live turn-scoped settings (v0.151.0): a running turn’s settings can now change mid-flight. The experimental turn/settings/update app-server method updates model, effort, summary, and serviceTier for subsequent steps of a specific live turn without changing future turns, reporting whether the update was applied, rejected, or lost its target; managed constraints are revalidated and the turn’s admitted approval and Guardian safety properties are preserved before an updated settings snapshot is published. turn/start also accepts serviceTierForTurn, letting one new turn override the service tier without touching the thread’s saved tier (“default” means standard speed; omitted or null inherits the thread tier).145
Encrypted Remote Executors (v0.141.0)
As of v0.141.0 (stable, June 18, 2026), remote executors connect over authenticated, end-to-end encrypted Noise-relay channels. The same release made cross-platform remote execution preserve the executor’s native working directory and shell. TLS also now accepts P-521 certificate signatures, which the release notes call “commonly used by enterprise proxies.”108
Codex Cloud & Background Tasks
GitLab support (beta since August 19, 2026): the GitLab code review integration is in beta on all ChatGPT plans and runs in Codex cloud. Request a review with
@codex reviewon a merge request; fixing a finding or giving Codex another task from a comment needs a configured project environment and starts a legacy cloud chat. Signed project and group webhooks require GitLab 19.0 or newer.128266Status: the
codex cloudCLI command is marked experimental; its flags and output may change between releases. The Codex Cloud docs carry no such label for the product itself.218 Each cloud task runs in a VM whose default size follows your plan (2 vCPUs and 8 GiB of memory on Plus and Edu Plus; 4 vCPUs and 16 GiB on Pro, Business, Enterprise, Edu, and Edu Pro), and a task’s saved state is recoverable for up to seven days after you last start a turn or resume it.4
Codex Cloud runs coding tasks in cloud environments, so work continues while your computer is asleep, and you start and review tasks from the web, mobile, or the desktop app.4 As of CLI v0.150.0, tasks are also addressable from a terminal conversation: reference other Codex tasks with @ mentions, and ask agents to read, create, or message tasks.141 See also GitHub Action & CI/CD for integrating Codex into your CI pipeline.
Cloud task credentials hardened (v0.152.0): cloud task requests can carry saved ChatGPT credentials, so their destination is now constrained before authentication is even loaded –
CODEX_CLOUD_TASKS_BASE_URLis validated against trusted ChatGPT HTTPS origins on port 443 (URLs containing user information, queries, or fragments are rejected), and redirects are disabled for the cloud task backend and environment-discovery clients so credentials are never forwarded to a redirect destination.147
How It Works
- Choose where the task runs. On the web or in the desktop app pick Work in > Cloud (on mobile, open Codex); you can also start one from Slack or with
codex cloud exec. If the default environment is available you can start without choosing a repository. A published environment starts the task with its repositories, dependencies, and tools already prepared.4 - The task gets its own workspace on a cloud VM and keeps working while your computer is asleep. A new task in a published environment starts from that environment’s prepared filesystem; reopening a task continues with its own saved files, uncommitted changes included.4
- Codex edits files, runs commands, and checks its work.4
- You review the changed files and test results, ask for follow-up changes, and commit or open a pull request yourself.4
- Apply results locally with
codex apply <TASK_ID>
Two generations of Cloud. These steps describe the current Codex Cloud. Code Review and the Linear and GitHub integrations still run on what the docs now call Codex Cloud (Legacy), about which OpenAI writes “We plan to deprecate this experience.” A legacy task runs in a container with your repository checked out at the selected branch or commit, runs your setup script, and ends with a diff from which you can open a PR.266
Internet Access in Cloud
Public internet access is set in each environment’s configuration, and there are two ways to set it:4
- Full access: turn on Enable all public internet access. The narrower controls are disabled while it is on.
- Restricted access: turn that switch off, then allow the Package managers preset (npm and Yarn, PyPI, Rust, Go, Maven and Gradle, Ubuntu and Debian repositories, GitHub downloads, and more) or add hosts under Additional allowed domains.
For a credential that an HTTPS service needs, add a network secret with its allowed domains: programs receive a placeholder and the proxy substitutes the real value on port 443, during setup and during tasks. Saving an environment-owned network secret adds its destinations to restricted internet access. Private services are reached through a separate VPN setting (Tailscale is the supported provider), which restricting public internet access does not disable. In Enterprise workspaces, Agent Security requirements apply alongside the domain settings saved with each environment.4
Legacy environments (Code Review and the Linear and GitHub integrations) keep the older controls: agent internet access is off by default while setup scripts still run with internet access, and turning it on lets you restrict it with a domain allowlist (None, Common dependencies, or All) and limit requests to
GET,HEAD, andOPTIONS.266
Slack Integration
Mention @ChatGPT in a Slack channel to start a request; @Codex was the earlier mention, and the docs say to start new requests with @ChatGPT once an admin enables the ChatGPT app. If the workspace has Cloud delegation enabled, ChatGPT can send repository work to a separate Codex Cloud task and return the result to the thread.222
Prerequisites: 1. A ChatGPT workspace owner or admin sets up the workspace’s Slack deployment 2. The app is enabled in the channel (Slack Connect channels shared with another organization are not supported) 3. For repository work: Cloud delegation enabled, plus a published cloud environment shared with the workspace (personal environments are not used) 4. Your own account connected when ChatGPT asks, with access to the environment and its repositories
For coding work, name the repository in the request. Follow-ups go in the same thread, mentioning @ChatGPT again.
Cloud CLI (experimental)
codex cloud exec --env <ENV_ID> "Fix failing tests" # Start a cloud task
codex cloud status <TASK_ID> # Check task progress
codex cloud diff <TASK_ID> # View task diff
codex cloud list # List recent tasks
codex cloud list --json # JSON output
codex cloud apply <TASK_ID> # Apply from cloud subcommand
codex apply <TASK_ID> # Apply diff (top-level shortcut)
The Codex Desktop App
The ChatGPT desktop app, where Codex runs next to Chat and Work (macOS and Windows; Linux in preview), provides a graphical interface optimized for multi-project management.16216 The Windows version launched on March 4, 2026 with native PowerShell support and native Windows sandbox.66
Installation
codex app # Opens the app, or the installer if the app is missing (macOS and Windows)
Or download it: Download ChatGPT for macOS or Windows | Linux (preview): follow the Linux installation guide for Ubuntu 24.04 and 26.04 LTS, Debian 13, Fedora 43 and 44, and Arch, on x64 and ARM64. Some features, Computer Use among them, are not in the Linux preview yet.216
Key Features
| Feature | Description |
|---|---|
| Parallel threads | Run projects in parallel and keep every chat in view269 |
| Thread modes | Start threads in Local, Worktree, or Cloud mode269 |
| Built-in Git tools | Review pane: read the diff, give line-specific feedback, stage or revert the whole diff, a file, or a hunk, then commit or push; from a worktree you can open a pull request on GitHub269 |
| Integrated terminal | Per-thread terminal (Ctrl + backtick)255 |
| Voice dictation | Prompt by voice: select Dictate in the composer, then review the transcript before sending249 |
| Scheduled tasks (formerly Automations) | Schedule recurring tasks255 |
| Notifications | Turn-completion alerts never, only while the app is in the background, or always, plus separate permission and question notifications269 |
| Prevent sleep | Prevent sleep while running, on macOS and Linux, lets local chats continue while you step away269 |
| Skills + MCP | Agents in the app inherit the same configuration as the IDE extension and CLI269 |
| MCP shortcuts | MCP shortcuts in the composer, including an MCP server submenu in Add context (App v26.226)63 |
| Review mentions | @mentions and skill mentions in inline review comments (App v26.226)63 |
| Custom themes | Color controls and font selection in Settings (App v26.312)72 |
| Appshots | Appshots (macOS and Windows) attach the frontmost app window to a thread, including a screenshot and available text, and can be added with the Appshots hotkey.99255 |
| Built-in browser comments | The built-in browser can preview local/public pages and accept element or area comments for precise rendered-page feedback.99 |
| Computer Use + locked use | Computer Use lets Codex operate allowed apps on macOS and Windows for scoped GUI tasks; locked use is macOS-only, opt-in, and limited to trusted active Computer Use turns after the Mac locks.99255 |
Appshots, Browser Comments, and Computer Use
The May 21 app updates make the desktop app a stronger context surface rather than just a thread manager. Use Appshots when Codex needs the state of another app (macOS or Windows) before it can act: Codex captures the frontmost window, available visible/off-screen text exposed by the app, and stores the attachment locally in the session history.99255
For web and frontend work, use the built-in browser first: it gives Codex and you a shared rendered preview, supports browser-use actions such as clicking, screenshots, asset downloads, and read-only inspection JavaScript, and lets you mark page regions with comments that Codex can address in the next turn.99 It keeps its own profile, and you can sign in there when a task needs an account; to work in a browser where you are already signed in, use the browser extension (Chrome, Edge, Brave, Opera, or Vivaldi; Opera has no side chat).255 Site tools (WebMCP; launched August 25, 2026): in the desktop app’s built-in browser, ChatGPT Work and Codex can use tools a website provides to work with the page. The docs say site tools “require a supported model and a page that provides tools” and that “Your account or your managed workspace’s browser policy can grant access”; on eligible managed plans an administrator controls that path with browser_use.allow_webmcp in requirements.toml. At launch the changelog limited them to GPT-5.6 Sol and GPT-5.6 Terra and excluded Enterprise and Edu workspaces.136252
Use Computer Use only when a structured integration or browser preview cannot verify the task. It can inspect and operate allowed apps on macOS and Windows, but it inherits Codex approvals and sandbox rules for file edits and shell commands, and locked use, which is macOS-only, stays narrow: Codex can temporarily access allowed apps during active trusted Computer Use turns after the Mac locks, with relocking safeguards and local-input detection.99255
Thread Modes
Each thread runs in one of three modes, selected when you create it:269
| Mode | Isolation | File Access | Best For |
|---|---|---|---|
| Local | None — works directly in your project directory | Full read/write | Quick tasks, exploration, non-destructive work |
| Worktree | Git worktree: an isolated checkout of your repo (detached HEAD) | Isolated copy | Feature development, risky refactors, parallel experiments |
| Cloud | Remote server — runs on OpenAI infrastructure | No local access | Long-running tasks, CI-like workflows, async delegation |
Worktree isolation mechanics:
When you start a Worktree thread, the desktop app:269
1. Creates a Git worktree under $CODEX_HOME/worktrees (change the location under Settings > Worktrees)
2. Starts it at the HEAD commit of the branch you select and applies that branch’s uncommitted local changes to it
3. Leaves it in a detached HEAD state, with no branch, until you select Create branch here in the chat header
4. Runs the agent inside the worktree, so its file changes stay out of your local checkout
When the work is ready, either stay on the worktree (create the branch, commit, push, and open a pull request) or select Hand off in the chat header to move the chat and its code to your local checkout.
This means multiple Worktree threads can run in the same project without interfering with each other. Each gets its own working directory.269
Worktree settings and thread ownership (v0.151.0): managed worktree behavior is resolved from the existing [desktop] configuration by a dedicated settings parser – the worktree root defaults to $CODEX_HOME/worktrees, automatic cleanup defaults to enabled, and 15 worktrees are retained, with configured roots, cleanup flags, and retention counts validated before use. Each managed linked worktree can also carry a versioned codex-thread.json ownership record in its Git metadata binding it to a thread: writes are atomic and no-clobber (repeat bindings are idempotent, conflicting owners rejected), and primary, nested, and unmanaged checkouts are rejected before ownership metadata is touched.145
Managed worktrees reach the CLI in v0.154.0 (experimental): --worktree at launch or /worktree in the TUI creates an isolated checkout for a new or forked session, codex exec supports managed worktrees for automation, and TUI session commands plus a worktree browser let you list, browse, and resume worktree sessions (#42196, #42366, #42652, #43069, #43120, #43286). v0.155.0 adds the management adjacents while worktrees stay non-default: the agents overview can hide, archive, and delete worktree sessions, ownership details are surfaced, and deleting a clean managed worktree asks for confirmation (#43942, #44424, #44433). The default-on flip (#44870) merged September 11 but was not in stable 0.155.0.161165
Managed worktrees become the default in v0.156.0: #44870 promotes worktrees to a stable feature, enables it by default, and removes it from /experimental. Shipping alongside it: worktree sessions can attach to an existing local daemon instead of starting their own (#46498), and worktree sessions can be created directly from the agents overview (#45276), which also gains status filter tabs (#46839). If you have scripts or configs written on the assumption that worktrees are off unless requested, 0.156.0 is the release that changes their behavior. The opt-out is gone: from v0.156.0 through v0.163.0, worktrees = false under [features] (per run: --disable worktrees) turned the feature off; v0.164.0 removed the flag with the feature left on, and the key is now ignored.197201 Older local daemons: if worktree creation or /cd is blocked with “The local Codex service cannot check background terminals,” run codex app-server daemon update and restart Codex.170172
Worktree tools for the model (v0.162.0): in a trusted local project with the feature on, the model itself can create and list managed worktrees through new tools (#50148), and the new-conversation and fork prompts explain the worktree choices (#50416).188
Automations
Automations, which the docs now call scheduled tasks, run locally in the app, so the app must be running and the project available on disk:255
- In Git repos, each task runs either in your local project or on a dedicated background worktree (isolated from your working directory)255
- In non-Git projects, runs execute directly in the project directory269
- Automations run unattended with your default sandbox settings269
Setting up an automation: 1. Open a project in the desktop app 2. Ask Codex in a chat to create the scheduled task; Scheduled in the sidebar lists tasks and their runs 3. Set the schedule; event triggers (Gmail, Slack, GitHub) exist only in ChatGPT on the web and mobile 4. Write the prompt and select execution mode (local or worktree) 5. Leave the model and reasoning effort on their defaults or choose them for the run (reasoning level since App v26.312)72269 6. A standalone scheduled task starts a new chat for each run and reports results in Scheduled; a task scheduled inside a chat returns to that chat269
Example use cases (the docs’ own):269
- Evaluate telemetry errors and submit fixes
- Create reports about recent codebase changes
- Check a long-running operation, such as a deployment, until it finishes
- Check a pull request’s status and address new review feedback
Runs with findings appear in Scheduled, which works as an inbox with an unread indicator.255
Windows Support
The Codex Desktop App launched on Windows on March 4, 2026 (App v26.304) with native PowerShell support, a native Windows sandbox, and the same core features as the rest of the app (skills, automations, and worktrees), without requiring WSL.66
GitHub Action & CI/CD
The official GitHub Action integrates Codex into your CI/CD pipeline.18
Basic Usage
# .github/workflows/codex.yml
name: Codex
on:
pull_request:
types: [opened]
jobs:
codex:
runs-on: ubuntu-latest
outputs:
final_message: ${{ steps.run_codex.outputs.final-message }}
steps:
- uses: actions/checkout@v5
- name: Run Codex
id: run_codex
uses: openai/codex-action@v1
with:
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
prompt-file: .github/codex/prompts/review.md
sandbox: workspace-write
safety-strategy: drop-sudo
Configuration Options
| Input | Purpose |
|---|---|
openai-api-key |
API key for proxy/auth setup |
responses-api-endpoint |
Override endpoint (e.g. Azure Responses URL) |
prompt / prompt-file |
Task instructions (one required) |
working-directory |
Directory passed to codex exec --cd |
sandbox |
Legacy sandbox mode: workspace-write / read-only / danger-full-access |
permission-profile |
Permission profile for the run, such as :read-only, :workspace, or a named profile from codex-home/config.toml; the action’s own description prefers it over sandbox for new workflows |
codex-args |
Extra CLI flags (JSON array or shell string) |
output-schema / output-schema-file |
Structured output schema for --output-schema |
model / effort |
Agent configuration |
output-file |
Save final message to disk |
codex-version |
Pin CLI version |
codex-home |
Custom Codex home directory |
allow-users / allow-bots / allow-bot-users |
Trigger allowlist controls |
safety-strategy / codex-user |
Privilege-reduction behavior and user selection |
Output: final-message, the final Codex response text for downstream steps/jobs.
Safety Strategies
| Strategy | Description |
|---|---|
drop-sudo (default) |
Linux and macOS runners only; drops sudo privileges from the default user before Codex runs, and cannot be undone for the rest of the job (or afterward on a reused self-hosted runner)251 |
unprivileged-user |
Run Codex as a pre-created low-privilege user |
read-only |
Read-only sandbox (runner/user privilege risk still applies) |
unsafe |
No privilege reduction; required on Windows runners |
Access Controls
with:
allow-users: "octocat,hubot" # Also allow these users, who lack write access
allow-bots: false # The default: bot-triggered runs must pass the write-access check
Default: users with write access to the repository can run the action without being listed; allow-users adds others, and '*' allows everyone.251
Codex SDK
The Codex SDK embeds Codex’s agent capabilities into custom applications. It ships for TypeScript and for Python.19225
Installation
npm install @openai/codex-sdk # TypeScript (server-side; Node.js 18 or later)
pip install openai-codex # Python 3.10 or later; controls the local Codex app-server over JSON-RPC
The Python SDK is a stable release, and its published builds pin a Codex CLI runtime, so its version numbers track the CLI (0.172.0 on PyPI on November 25, 2026). The examples below use the TypeScript SDK.
Basic Usage
import { Codex } from "@openai/codex-sdk";
const codex = new Codex();
const thread = codex.startThread();
// Multi-turn conversation
const turn1 = await thread.run("Diagnose CI failures and propose a fix");
console.log(turn1.finalResponse);
const turn2 = await thread.run("Implement the fix and add tests");
console.log(turn2.items);
// Resume a previous session
const resumed = codex.resumeThread("<thread-id>");
await resumed.run("Continue from previous work");
Advanced SDK Features
runStreamed(...): Async event stream for intermediate updates- Python SDK auth (v0.132.0+): API-key login, ChatGPT browser/device-code flows, account inspection, and logout are first-class SDK paths.97
- Text-only turn convenience (v0.132.0+): Python turn APIs accept plain strings and return richer
TurnResultmetadata with collected items, timing, and usage.97 outputSchema: Enforce JSON-shaped final output- Multimodal input: Pass text + local images (
{ type: "local_image", path: "..." }) - Image workflows (v0.117.0):
view_imagereturns URLs, generated images are reopenable, and image history survives session resume75 - Multi-environment
view_image(v0.130.0): For sessions that span multiple environments (introduced in v0.124.0 with per-turn environment + working-directory selection, refined in v0.125.0 with sticky environments),view_imagenow resolves file paths through the selected environment rather than the orchestrator’s local filesystem: the path is resolved against the selected environment’s working directory (#21143).91
Thread and Client Configuration
// Custom working directory, skip git check
const thread = codex.startThread({
workingDirectory: "/path/to/project",
skipGitRepoCheck: true,
});
// Custom environment and config overrides
const codex = new Codex({
env: { CODEX_API_KEY: process.env.MY_KEY },
config: { model: "gpt-6.2-sol" },
});
Sessions persist under ~/.codex/sessions.
Runtime: Node.js 18+.
Performance Optimization
Context Management
Context windows vary by model. In the catalog bundled with v0.172.0, GPT-6.2 Sol, GPT-6.1 Sol, and GPT-6.1 Terra run a 500K window and GPT-6.2 Astra, GPT-6 Astra, GPT-6 Sol, GPT-6 Luna, and the GPT-5.6 family 272K; OpenAI’s models docs give the same defaults for both GPT-6.2 models and for GPT-6.1 Sol. (Before v0.169.1 the catalog listed GPT-6.1 Sol at 272K.) To go higher, the docs say to set model_context_window and that GPT-6.2 Astra and GPT-6.2 Sol “each support a context window of up to 1 million tokens”; the bundled catalog’s max_context_window for both is 872,000. These are the values in the catalog file that ships inside the CLI, so check ~/.codex/models_cache.json for the ones your account was served. GPT-5.5 (retired from Codex for ChatGPT sign-in on October 14, 2026) and GPT-5.4 / GPT-5.4-mini (retired August 31, 2026) are API-key options now. All of them fill faster than you’d expect, so manage proactively:202258259
- Use
/compactregularly: Summarizes conversation history to free tokens - Provide local docs: High-quality
AGENTS.mdand local documentation reduce exploration overhead (which consumes context) - Use
@to attach specific files: Reference files directly instead of asking Codex to find them - Keep prompts focused: Scoped prompts with exact files consume less context than open-ended exploration
Experimental context management (v0.153.0, disabled by default): features.context_management.experimental_mode activates a coordinated context stack – token-budget context, history notes, and a new_context tool – for eligible ChatGPT Plus, Pro, and Pro Lite sessions using the Codex backend. API-key sessions, custom providers, non-Codex endpoints, and temporary structured threads are excluded, and the flag is explicitly under development: treat it as a preview of where context handling is heading, not something to build workflows on.149 v0.154.0 adds a capability gate: eligibility is resolved against the active model’s capabilities at session startup (#43147) – the same surface the Codex models docs tied to Astra by name for Plus and Pro sign-in in September 2026 (see the cross-context note under Which Model Should I Choose?).155161 As of v0.157.0 no model in the bundled catalog is marked as supporting it (#47397), so with that catalog the setting has no effect.175 GPT-6.1 Sol, added in v0.159.1, is not marked either, nor are the GPT-6.2 models added in v0.169.1, and the config reference describes the key as “not currently available.”179233258
Token Efficiency
| Technique | Impact |
|---|---|
Leave model_reasoning_summary unset (none for every bundled model) |
No reasoning summaries are requested253 |
Use model_verbosity = "low" |
Shorter explanations, more action |
Use lighter tiers (gpt-6-luna) for simple tasks |
Significantly cheaper per message |
| Split complex tasks into focused sessions | Better per-session token efficiency |
| Use profiles to switch settings by task | Avoid paying for high reasoning on routine work |
Speed Optimization
- Fast mode (
/fast, orservice_tier = "fast"): faster responses on supported GPT-6 models, at 2x included usage on the GPT-6.2 models and 2.5x on the earlier ones (2x for purchased credits on all of them). Ultrafast (/ultrafast, where your model’s catalog entry offers it) runs GPT-6.2 Sol on Pro $200, and GPT-6.2 Sol, GPT-6.2 Astra, GPT-6 Astra, and GPT-6.1 Sol on Pro $500 and eligible Enterprise and Edu workspaces260 --profile fast: Pre-configuredgpt-6-lunawith low reasoning- Parallel tool execution: Codex runs independent reads/checks concurrently, so structure prompts to enable this
- Outcome-driven loops: Ask for “implement, test, fix, stop when green” instead of step-by-step instructions
How Do I Debug Issues?
Common Problems and Solutions
| Problem | Cause | Solution |
|---|---|---|
| 401 auth errors | A stored credential is no longer valid | codex logout clears the current credentials (in whichever store cli_auth_credentials_store selects); then run codex login268 |
| Startup fails on 0.162.0 with a feature-settings mismatch while a background server runs | The CLI compared the running server’s feature settings with its own defaults | Upgrade to 0.162.1, where the check covers only explicit command-line feature overrides; or launch with --no-daemon189 |
| Network blocked in sandbox | Default behavior: the agent runs with network access turned off | -c 'sandbox_workspace_write.network_access=true'268 |
| Model is not the one you expected | A config layer or a managed requirement sets it | Run /debug-config to print the config layers, lowest precedence first, and the policy sources268 |
| Plan mode makes a change | Reported in early 2026; the issue was closed as not planned on February 8, 2026 | When you need a guarantee that nothing is written, run with the read-only sandbox instead of relying on plan mode; history in Issue #11115 |
| Forgetting AGENTS.md instructions | Codex stops adding instruction files once their combined size reaches project_doc_max_bytes (32 KiB by default) |
Keep instructions concise; use skill files for detailed procedures263 |
| Stalling in Read Only mode | Historical report from 2025 (answered; no activity since December 2025) | Discussion #7380 |
Error Symptoms Reference
Codex’s exact error wording changes between versions, so this table describes symptoms instead of quoting messages. The last three rows are literal messages.
| Symptom | Meaning | Fix |
|---|---|---|
Permission denied or Operation not permitted on a file write |
The sandbox blocked a file operation | Check the sandbox mode or permission profile; use workspace-write (:workspace) if Codex needs to edit files |
| A rate-limit error from the API | API or plan rate limit hit | Wait and retry; reduce model_reasoning_effort or switch to a lighter model |
| Context window exceeded | The conversation exceeded the model’s context window (the size differs by model) | Use /compact to summarize, or start a new session with /new |
| An MCP server fails to start or times out | The server process crashed or took too long | Check codex mcp get <name> for config; increase startup_timeout_sec |
| Not signed in, or authentication required | No valid session or API key | Run codex login; for codex exec, set CODEX_API_KEY |
| A command fails only inside the sandbox | The command needs something the sandbox denies | Re-run it with codex sandbox --permission-profile <profile> -- <command> to see the failure in isolation (--log-denials on macOS lists what was blocked) |
| A skill is not listed | The skill is not at the expected path | Check the /skills list; verify the skill folder location |
wire_api = "chat" is no longer supported |
A provider entry still sets the removed Chat Completions wire API | Set wire_api = "responses" (or delete the key; it is the default) and point the provider at a Responses-compatible endpoint (see Custom Model Providers)207 |
legacy profile = "<name>" config is no longer supported |
config.toml still has the top-level profile selector that 0.134.0 retired |
Delete the profile = ... line, keep that preset’s settings in ~/.codex/<name>.config.toml, and start Codex with --profile <name> (see Profiles)238 |
approval_policy = "untrusted" is no longer supported; remove this setting |
A config file or profile file still names the approval policy retired in v0.149.0 | Delete the line, or set approval_policy = "on-request"243 |
What Does codex doctor Do?
codex doctor is the single command to run before filing a bug or debugging a broken
install. It captures the local runtime, configuration, auth, terminal, network, and state
in one report, and the project’s own issue template asks you to paste its output.120
codex doctor # Full human-readable report (the default)
codex doctor --network-only # Only configuration, connectivity, and WebSocket diagnostics (v0.166.0+)
codex doctor --summary # Compact view
codex doctor --json # Redacted structured JSON, for bug reports
codex doctor --all # Expand truncated lists
codex doctor --no-color # Strip ANSI color
The report is organized into stable sections, so you can skim to the one you need:120
| Section | What it reports |
|---|---|
| Notes | Anomalies promoted to the top: available updates, oversized rollout directories, optional MCP problems, mixed auth signals |
| Environment | Runtime provenance, install consistency, search-tool readiness, terminal/multiplexer metadata, database health |
| Configuration | config.toml load status, auth details, MCP server config, sandbox policy, feature flags |
| Updates | Whether update configuration is locally consistent |
| Connectivity | Network environment, WebSocket diagnostics, provider-aware endpoint reachability |
| Background Server | App-server daemon status |
Each check carries a status marker – ✓ ok, ✗ fail, ⚠ warn, ○ idle – with a summary
line. --json keys every check by a stable identifier, which makes it usable in CI or a
support script rather than only by eye.120
The command has grown across releases: it landed in v0.131.0, gained environment, Git, terminal, app-server, and thread-inventory reporting in v0.135.0, and added editor and pager details (with sensitive values redacted in JSON) in v0.139.0.96102106
Use it first, not last. Most “Codex is broken” reports resolve to something
doctoralready names: a stale auth mode, aconfig.tomlthat failed to parse, or a second install shadowing the one on yourPATH.
Diagnostic Tools
codex doctor # Full local diagnostic (start here)
codex --version # Check CLI version
codex login status # Verify authentication
codex mcp list # Check MCP server status
codex debug app-server --help # Debug app server issues
In-session TUI diagnostics:
/status # Token/session overview
/debug-config # Show config layers and requirement sources
/compact # Summarize history to reclaim context
Note:
codex --verboseis not a valid top-level flag. Use the debug subcommands and TUI diagnostics above.
Clean Reinstall
npm uninstall -g @openai/codex && npm install -g @openai/codex@latest
Preserves ~/.codex/ (auth, config, sessions). For pinning to an exact version, downgrading
after a bad release, or a full state wipe, see
Update, Downgrade, or Uninstall.
Debug Mode
codex debug app-server send-message-v2 "hello" # Send one message through the app-server test client; the message is required
The message argument is required.253
Reporting Issues
/feedback # Send logs to Codex maintainers (in TUI)
Or file issues at github.com/openai/codex/issues.1
Codex Security
Codex Security entered research preview on March 6, 2026, bringing context-aware application security review into the Codex stack.77 It now ships four ways: Daybreak Defense Factory (a preview plugin on the web and in the desktop app that scans connected GitHub repositories in Codex cloud; on November 11, 2026 the docs still called it “formerly Codex Security Cloud”), the Codex Security plugin (local scans in the desktop app or Codex CLI), a standalone CLI for repeatable terminal scans and CI checks, and a TypeScript SDK. The CLI and SDK are in the public @openai/codex-security package:221
npm install -g @openai/codex-security # Node.js 22.13.0 or later in the 22 line, or Node.js 24 or 26; also needs Python 3.10 or later
Some cybersecurity requests and protected findings require Trusted Access for Cyber, and the standalone CLI runs with your operating-system permissions without pausing for approval, so read the quickstart for the route you pick.221
How it works: in Daybreak Defense Factory, Codex Security drafts a threat model from the repository’s code (entry points, trust boundaries, sensitive data and privileged actions) and uses it to guide commit scans and prioritize findings. A finding shows its summary, root cause, and supporting evidence, including how someone could exploit the issue. A proposed fix comes with a diff and a patch-checker result, and Create PR opens a draft pull request on GitHub.221
Performance (OpenAI’s figures at the March 2026 launch): in the 30 days before the preview opened, Codex Security scanned more than 1.2 million commits in its beta cohort and reported 792 critical and 10,561 high-severity findings. OpenAI said false positive rates had fallen by more than 50% across all repositories, findings with over-reported severity by more than 90%, and noise in one case by 84%. Fourteen CVEs were assigned for issues it reported in projects including OpenSSH, GnuTLS, and Chromium.77
Note: Codex Security is separate from the CLI’s built-in sandbox security model. Codex Security scans application code; the sandbox and approval settings govern Codex itself.221
Enterprise Deployment
Admin Controls (requirements.toml)
Administrators enforce enterprise policy via requirements.toml, an admin-enforced configuration file that constrains security-sensitive settings users cannot override:21219
v0.146.0 adds enterprise-plan recognition and administrator controls over in-app updates.121 The documented key is
in_app_updates = falseunder[features]inrequirements.toml. It disables the ChatGPT desktop app’s own updater on restart, where supported, so the admin’s package deployment decides when a version rolls out; it does not affect external package deployment.219
# /etc/codex/requirements.toml
# Restrict which approval policies users can select. Add "untrusted" to keep the
# stricter approvals Codex derives for projects marked trust_level = "untrusted";
# approval_policy = "untrusted" itself was retired in v0.149.0.
allowed_approval_policies = ["on-request", "never"]
# Limit available sandbox modes
allowed_sandbox_modes = ["read-only", "workspace-write"]
# Control web search capabilities
allowed_web_search_modes = ["cached"]
# Allowlist MCP servers by identity (both name and identity must match).
# This form pins the executable and every argument: command = "npx", args = ["approved-mcp-server"].
# The string form, identity = { command = "npx" }, compares the command only.
[mcp_servers.approved-server.identity]
command = { executable = "npx", args = [{ match = "exact", value = "approved-mcp-server" }] }
# Admin-enforced command restrictions
[[rules.prefix_rules]]
pattern = [{ token = "rm" }, { any_of = ["-rf", "-fr"] }]
decision = "forbidden"
justification = "Recursive force-delete is prohibited by IT policy"
[[rules.prefix_rules]]
pattern = [{ token = "sudo" }]
decision = "prompt"
justification = "Elevated commands require explicit approval"
Unlike user-level
config.tomlwhich sets preferences,requirements.tomlis a hard constraint layer that restricts what values users can select, and users cannot override it. Admin requirements rules can only prompt or forbid (never silently allow).
macOS MDM Configuration
Distribute via MDM using the com.openai.codex preference domain.21 Codex honors standard macOS MDM payloads (Jamf Pro, Fleet, Kandji, etc.). Encode TOML as base64 without line wrapping:
| Key | Purpose |
|---|---|
config_toml_base64 |
Base64-encoded managed defaults (starting values users can change) |
requirements_toml_base64 |
Base64-encoded admin-enforced requirements (users cannot override) |
Precedence (highest to lowest):
- macOS managed preferences (MDM),
com.openai.codex:requirements_toml_base64 - Legacy
managed_config.tomlfields that the client reinterprets as requirements - Cloud-managed requirements delivered in the cloud config bundle (ChatGPT Business / Enterprise)
- The system file:
/etc/codex/requirements.tomlon macOS and Linux,%ProgramData%\OpenAI\Codex\requirements.tomlon Windows
Higher-precedence layers override scalar and list values from lower layers, and tables merge by key; rules, hooks, and filesystem restrictions have their own composition behavior. The cloud layer is not best-effort. The client uses a valid, identity-matched cached bundle when it has one, and if the fetch fails or times out with no valid cache, loading the cloud bundle returns an error instead of starting without the cloud-managed requirements.219
OpenTelemetry Integration
Telemetry export is off by default. Opt in under [otel] in config.toml; the standard OTEL_EXPORTER_OTLP_* environment variables do not turn it on:220
[otel]
environment = "production" # Tag on emitted events (default "dev")
log_user_prompt = false # Raw user prompts stay out of the logs unless you opt in
exporter = { otlp-http = { endpoint = "https://otel-collector.internal:4318/v1/logs", protocol = "binary" } } # Log events
trace_exporter = { otlp-http = { endpoint = "https://otel-collector.internal:4318/v1/traces", protocol = "binary" } } # Trace spans
span_attributes = { team = "platform", cost_center = "eng-42" } # Added to every exported trace span
- The exporter endpoint, protocol, and headers come from
[otel].exportersends log events, andtrace_exporterandmetrics_exporterare separate keys; each takesotlp-http(withendpointandprotocol) orotlp-grpc(withendpoint), plus optionalheaders. With no exporter set, Codex records events but sends nothing - Codex continues an incoming trace when the
TRACEPARENTenvironment variable is set (with optionalTRACESTATE), and propagates trace context to its API calls, enabling end-to-end observability - Trace metadata (v0.130.0+). v0.130.0 made trace metadata configurable.91 At v0.172.0 the key is
span_attributes, a table of string attributes added to every exported trace span, for dimensions such as team, cost center, or project ID - Administrators can enforce the exporters and the individual logging settings in
requirements.toml - Keep privacy requirements in mind before enabling prompt or response logging:
log_user_promptandlog_agent_responsesexport text that may contain code
Enterprise Access
- ChatGPT Business / Enterprise / Edu: Org-admin controlled access, with cloud-managed requirements applied automatically.219 OpenAI lists SAML SSO among its enterprise controls.267
- API: Standard API auth, billing, and org/project controls. OpenAI says its API Platform “has been audited and certified for SOC 2 Type 2 compliance” and that it can sign a Business Associate Agreement for customers who need HIPAA compliance.267
- Codex SDK: Embed in internal tools and workflows
- Policy enforcement at scale: Use MDM-distributed
requirements_toml_base64or filesystem-level/etc/codex/requirements.toml
Data handling and compliance:
- By default OpenAI does not train its models on data from ChatGPT Business, Enterprise, and Edu or from the API platform.267
- Data residency: eligible ChatGPT Enterprise, ChatGPT Edu, and API platform customers can store customer content at rest in the U.S., Europe, UK, Japan, Canada, South Korea, Singapore, Australia, India, and the UAE.267
- The CLI keeps session transcripts on your machine, under
~/.codex/sessionsby default.267 - OpenAI says its data protection practices support customers’ compliance with GDPR, CCPA, and other privacy laws.267
Rollout Strategy
Recommended phased rollout for organizations:
- Pilot: Deploy to 3-5 senior engineers with
requirements.tomlenforcing theread-onlysandbox withon-requestapprovals andcachedweb search. Collect feedback on AGENTS.md patterns and MCP server needs. - Team expansion: Roll out to full team. Distribute team-standard
config.tomlvia MDM or repo. Enableworkspace-writesandbox for trusted repositories. - CI integration: Add
codex-actionto CI/CD pipelines for automated PR review and test generation. Pass--ephemeraltocodex execwhen a run should leave no session files on the runner; it does not affect cost.246 - Org-wide: Deploy via MDM with
requirements.tomlenforcing approved MCP servers, sandbox policies or permission profiles, and the model provider. It can set new-thread model defaults but has no model allowlist.
Audit Patterns
Track Codex usage and enforce compliance:
- OpenTelemetry traces: Monitor API call volume, token usage, and latency per team
- Session persistence: Audit
~/.codex/sessions/for compliance review (codex exec --ephemeralruns without writing session files; the interactive TUI has no such flag)246 - MCP identity enforcement: a server that
requirements.tomldoes not approve is disabled, andcodex mcp listreports the reason asrequirements (<source>), which shows what policy turned off on a given machine - Git audit trail: All Codex file changes go through standard git — review via branch history and PR diffs
Best Practices & Anti-Patterns
Prompting Patterns
- Constraint-driven prompts: Lead with boundaries. “Do NOT change the API contracts. Only refactor internal implementation.”
- Structured reproduction steps: Numbered steps produce better bug fixes than vague descriptions
- Verification requests: End with “Run lint + the smallest relevant test suite. Report commands and results.”
- File references: Use
@filenameto attach specific files to context - Outcome-driven loops: “Implement, run tests, fix failures, stop only when all tests pass.” Codex iterates until done
Testing Philosophy
The community converges on test-driven AI collaboration:22
- Define tests upfront as completion signals
- Let Codex iterate until tests pass (red → green → refactor)
- Consider Tiger Style programming patterns, which one contributor to that thread reports trying with Codex
Context Management Best Practices
- Provide high-quality local documentation rather than relying on web search
- Maintain structured markdown with tables of contents and progress files (“progressive disclosure”)
- Keep
AGENTS.mdconcise: Codex stops adding instruction files once their combined size reachesproject_doc_max_bytes(32 KiB by default)263
Git Workflow
- Always create a new branch before running Codex on unfamiliar repos
- Use patch-based workflows (
git diff/git apply) rather than direct edits - Review Codex suggestions like code review PRs
- Use
/diffto verify changes before committing
Community Skills
The feiskyer/codex-settings repository is a community-maintained set of skills, profile files, and command rules. It installs as a plugin marketplace:23
codex plugin marketplace add feiskyer/codex-settings
codex plugin add codex-settings@codex-settings
Skills it ships (a selection):
claude-skill: Delegate a task to the Claude Code CLI, typically a headlessclaude -prundeep-research: Multi-source research split into sub-tasks, invoked explicitly with$deep-researchgithub-fix-issue: Investigate or fix a GitHub issue by number or URLgithub-review-pr: Review a pull request by number or URL for evidence-backed defectscode-simplifier: Simplify existing code without changing behavior
The repository also carries profile files for ChatGPT, Azure, GitHub Copilot, and OpenRouter (<name>.config.toml). It no longer ships reusable prompts: custom prompts in ~/.codex/prompts/ were removed from the CLI in v0.118.0 (PR #16115), and skills replace them.240
Anti-Patterns
Common mistakes that waste tokens, produce poor results, or create frustrating workflows.
Cost Anti-Patterns
| Anti-Pattern | Why It Fails | Fix |
|---|---|---|
Using xhigh reasoning for everything |
Higher token cost with diminishing returns on simple tasks | Use medium by default; reserve xhigh for multi-file architecture decisions |
Never using /compact |
Context fills (500K on the default GPT-6.2 Sol, 272K on GPT-6.2 Astra), responses degrade | Compact after every major milestone or when /status shows >60% usage |
| Running flagship model in CI | Expensive for routine checks | Create a ci profile with gpt-6-luna and low reasoning |
Context Anti-Patterns
| Anti-Pattern | Why It Fails | Fix |
|---|---|---|
| Open-ended “explore everything” prompts | Codex reads dozens of files, burning context on irrelevant code | Scope with specific files: “Review src/auth/login.py and tests/test_auth.py“ |
No AGENTS.md in the project |
Codex wastes turns discovering project structure | Add a 20-line AGENTS.md with key paths, conventions, and test commands |
| Attaching entire directories | Floods context with irrelevant files | Use @filename to attach only the files Codex needs |
Workflow Anti-Patterns
| Anti-Pattern | Why It Fails | Fix |
|---|---|---|
Working on main directly |
No safety net; risky edits are hard to revert | Always create a feature branch before starting Codex |
Skipping /diff before committing |
Codex may have made unintended changes | Review /diff after every task, before any commit |
| Ignoring test output | Codex iterates past failures if you don’t flag them | Use “run tests and stop only when all pass” in your prompt |
| Never forking conversations | One wrong turn pollutes the entire context | /fork before risky explorations; discard bad branches |
Prompt Anti-Patterns
| Anti-Pattern | Why It Fails | Fix |
|---|---|---|
| “Fix the bug” (no context) | Codex guesses which bug, reads everything | “Fix the TypeError in src/api/handler.py:42 — user.name is None when unauthenticated” |
| Multi-task prompts in one message | Codex conflates tasks, misses some | One task per message; use steer mode (Tab) to queue follow-ups |
| Repeating context every message | Wastes tokens on duplicate information | Put standing facts in AGENTS.md (or turn on memories with memories = true); reference earlier context |
Workflow Recipes
End-to-end patterns for common development scenarios.
Recipe 1: New Project Setup
mkdir my-app && cd my-app && git init
codex
> Create a FastAPI project with: main.py, requirements.txt, Dockerfile,
basic health endpoint, and a README. Use async throughout.
> /init
Review the generated AGENTS.md, edit to match your conventions, then:
> Run the health endpoint test and confirm it passes
Recipe 2: Daily Development Flow
cd ~/project && git checkout -b feature/user-auth
codex
> @src/models/user.py @src/api/auth.py
Add password reset functionality. Requirements:
1. POST /api/auth/reset-request (email → sends token)
2. POST /api/auth/reset-confirm (token + new password)
3. Tests for both endpoints
Run tests when done.
Review with /diff, then commit.
Recipe 3: Complex Refactor with Plan Mode
codex
> /plan Migrate the database layer from raw SQL to SQLAlchemy ORM.
Constraints: don't change any API contracts, keep all existing tests passing.
Review the plan. Approve or steer:
[Tab] Also add a migration script using Alembic
After Codex executes, verify:
> Run the full test suite and report results
> /diff
Recipe 4: PR Review with codex exec
codex exec --model gpt-6-luna \
"Review the changes in this branch against main. \
Flag security issues, missed edge cases, and style violations. \
Format as a markdown checklist." \
-o review.md
Recipe 5: Debugging with Cloud Tasks (experimental)
codex cloud exec --env my-env "Diagnose why the /api/orders endpoint returns 500 \
for orders with > 100 line items. Check the serializer, database query, \
and pagination logic. Propose a fix with tests."
Check progress later:
codex cloud status <TASK_ID>
codex cloud diff <TASK_ID>
Apply the fix locally when done:
codex apply <TASK_ID>
Migration Guide
From Claude Code
| Claude Code Concept | Codex Equivalent |
|---|---|
CLAUDE.md |
AGENTS.md (open standard; Claude Code reads it too when a project has no CLAUDE.md)265 |
.claude/settings.json |
.codex/config.toml (TOML format) |
--print flag |
codex exec subcommand |
--dangerously-skip-permissions |
--dangerously-bypass-approvals-and-sandbox |
| Hooks (34 events) | Hooks (fourteen events since v0.164.0. Eleven share a Claude Code event name: PreToolUse, PermissionRequest, PostToolUse, PreCompact, PostCompact, SessionStart, SessionEnd, UserPromptSubmit, SubagentStart, SubagentStop, and Stop. Three are Codex-only: Interrupt, and the observation-only PreModelRequest and PostModelRequest. Twelve events at v0.150.0, eleven at v0.149.1; hooks.json or inline TOML)133141208265 |
| Subagents (the Agent tool, named Task before v2.1.63) | Subagents: ask for them in the prompt or in AGENTS.md, switch threads with /subagents, define custom agents as TOML files in ~/.codex/agents/ or .codex/agents/, or as roles under [agents]. By default three spawned agents run at once on models that use multi-agent v2 (the GPT-6.2 models and most of the catalog) and six on v1; max_concurrent_threads_per_session under [agents] changes the cap, and enabled = false there turns subagent tools off230262264265 |
/compact |
/compact (identical) |
/usage (/cost is an alias)274 |
/status (session configuration and token usage) and /usage (account token usage)274 |
| Model: Fable/Opus/Sonnet/Haiku265 | Model: gpt-6.2-sol / gpt-6.2-astra / gpt-6-luna (GPT-6.2 Sol is the bundled CLI default since v0.169.1), with gpt-6.1-terra for writing and visual work, gpt-6.1-sol, gpt-6-astra, gpt-6-sol, and gpt-5.6 Sol/Terra/Luna still available, and gpt-5.5 retired from Codex for ChatGPT sign-in on October 14, 2026 |
claude --resume |
codex resume |
| Permission rules | Sandbox modes or permission profiles + approval policies |
MCP servers in .mcp.json or ~/.claude.json |
MCP servers in config.toml ([mcp_servers.<name>])265 |
Key differences to understand:
- Start with
/import: it selectively imports setup, project configuration, and recent chats from Claude Code (v0.140.0+), and since v0.145.0 migrates Cursor settings, MCP servers, plugins, sessions, commands, and project-scoped memories too.107117 - Sandbox is OS-level: Codex uses Seatbelt on macOS, bubblewrap + seccomp on Linux, and MXC or the legacy
elevatedandunelevatedsandboxes on Windows, not containers. The operating system enforces the restrictions on each command Codex spawns. Claude Code’s Bash sandbox uses Seatbelt and bubblewrap too; the difference is the default, on in Codex and off in Claude Code until you turn it on.5265 - Hooks share eleven event names with Claude Code: Codex registers fourteen hook events since v0.164.0. Eleven carry the name of a Claude Code event:
PreToolUse,PermissionRequest,PostToolUse,PreCompact,PostCompact,SessionStart,SessionEnd,UserPromptSubmit,SubagentStart,SubagentStop, andStop(the whole list at v0.149.1). The other three are Codex-only:Interrupt(v0.150.0), andPreModelRequestandPostModelRequest, which only observe model requests and cannot block them. All are configured inhooks.jsonor inline[[hooks.<Event>]]tables, so Claude Code hook configs for the shared events port by moving the JSON and trusting it. Differences: every non-managed hook must be reviewed and trusted through/hooksbefore it runs,promptandagenthandlers are parsed but skipped, and the rest of Claude Code’s 34 events (for exampleNotification) have no counterpart; cover those with AGENTS.md instructions or skills.133208265 - Sub-agents v2 (v0.117.0): Sub-agents now use path-based addresses (e.g.,
/root/agent_a) with structured inter-agent messaging and agent listing.75 The concurrency cap depends on the multi-agent version. On v2, which the bundled catalog selects for GPT-6.2 Sol and Astra, the other GPT-6 models, and GPT-5.6 Sol and Terra, a session holds four threads counting the primary, so three spawned agents run at once. On v1 (GPT-5.6 Luna and GPT-5.5) the cap is six spawned agents, the maximum v0.91.0 set.max_concurrent_threads_per_session = Nunder[agents]allows N spawned agents on either version.264 Multi-agent roles remain customizable via config (v0.104.0+).55 The CSV fanout tool that v0.105.0 added (spawn_agents_on_csv) was removed in v0.145.0 (#34413);features.enable_fanoutstill parses and does nothing.61241 Subagent workflows are on by default;enabled = falseunder[agents]turns the tools off, and themulti_agentfeature flag that used to do that job is deprecated since v0.168.0.262 Codex delegates when you ask it to, or when applicableAGENTS.mdor skill instructions request it; switch between this session’s agent threads with/subagents, and open the command center for every active agent session with/agents.230 - AGENTS.md is cross-tool: Your AGENTS.md works in Cursor, Copilot, Amp, Jules, Gemini CLI, and other tools, and agents.md says the format is “used by over 60k open-source projects.” Claude Code reads it too when a project has no
CLAUDE.md(v2.1.277 or later), so one file can serve both tools.9265 - Profiles replace manual switching: put each profile in its own file,
~/.codex/<name>.config.toml, and select it with--profile <name>. Since v0.134.0 profiles are no longer[profiles.*]tables inconfig.toml.
From GitHub Copilot
| Copilot Concept | Codex Equivalent |
|---|---|
| Copilot CLI | Interactive CLI or desktop app |
Built-in agents (explore, task, general-purpose, code-review, and others), custom agents, and plan mode271 |
Subagents and custom agents, skills, plan mode |
.github/copilot-instructions.md / AGENTS.md271 |
AGENTS.md (same standard) |
| MCP support | MCP support (STDIO + HTTP) |
ACP (Agent Client Protocol) server, copilot --acp, in public preview271 |
App-server protocol for rich-client integration; hooks (PreToolUse, PostToolUse, Stop, and eleven more) for lifecycle automation133134208 |
| Copilot SDK (Node.js, Python, Go, .NET, Rust, Java)271 | Codex SDK (TypeScript and Python) |
| Copilot cloud agent (the newer experience is called Copilot in the cloud)271 | Codex Cloud tasks |
Codex features to map your workflow onto:
- OS-level sandboxing (Seatbelt, bubblewrap + seccomp, or the Windows sandbox), enforced by the operating system
- Cloud task delegation with
codex apply - Config profiles for workflow switching
- Desktop app with worktree isolation
From Cursor
| Cursor Concept | Codex Equivalent |
|---|---|
Project rules (.mdc files in .cursor/rules) / AGENTS.md271 |
AGENTS.md + profiles/config |
| Agent chat | Interactive CLI or desktop app |
@ mentions for files and folders271 |
@ file references |
| Agent edits with checkpoints to restore271 | Built-in patching, /diff, and the desktop review pane |
Since v0.145.0, /import migrates Cursor settings, MCP servers, plugins, sessions, commands, and project-scoped memories.117
Quick Reference Card
╔═══════════════════════════════════════════════════════════════╗
║ CODEX CLI QUICK REFERENCE ║
╠═══════════════════════════════════════════════════════════════╣
║ ║
║ LAUNCH ║
║ codex Interactive TUI ║
║ codex "prompt" TUI with initial prompt ║
║ codex exec "prompt" Non-interactive mode ║
║ codex app Desktop app ║
║ codex resume Resume previous session ║
║ codex fork Fork a session ║
║ ║
║ FLAGS ║
║ -m, --model <model> Select model ║
║ -p, --profile <name> Load config profile ║
║ -s, --sandbox <mode> Sandbox mode ║
║ -C, --cd <dir> Working directory ║
║ -i, --image <file> Attach image(s) ║
║ -c, --config <key=value> Override config ║
║ --ask-for-approval <p> Approval policy ║
║ --oss Local models (Ollama/LM Studio) ║
║ --search Enable live web search ║
║ ║
║ SLASH COMMANDS (in TUI) ║
║ /compact Free tokens /diff Git diff ║
║ /review Code review /plan Plan mode ║
║ /model Switch model /status Session info ║
║ /fork Fork thread /goal Persisted goal ║
║ /worktree Isolated worktree checkout (default: 0.156.0) ║
║ /voice Live voice convo (default: 0.156.0, F8) ║
║ /tui Fullscreen/scrollback (default: 0.157.0) ║
║ /daemon Background server (--no-daemon to skip) ║
║ /rc Remote control, pairing codes (0.171.0) ║
║ /vim Vim: R /? u^R /hooks Browse/toggle hooks ║
║ /recap Summarize now (auto recap: tui.auto_recap) ║
║ /init AGENTS.md scaffold ║
║ /mcp MCP tools /skills Invoke skills ║
║ /ps Background /memories Memory on/off ║
║ /permissions Permissions /statusline Footer config ║
║ /fast Toggle Fast (default on: GPT-6 Sol, Luna) ║
║ /copy Copy picker: response/code/quote ║
║ /clear New chat /theme Syntax highlighting ║
║ ║
║ TUI SHORTCUTS ║
║ @ Fuzzy file search ║
║ !command Run shell command ║
║ Ctrl+G External editor ║
║ Ctrl+L Clear screen ║
║ Enter Inject instructions (while running) ║
║ Esc Esc Edit previous messages ║
║ ║
║ EXEC MODE (CI/CD) ║
║ codex exec --sandbox workspace-write "task" Sandboxed auto ║
║ codex exec --json -o out.txt "task" JSON + file output ║
║ codex exec --output-schema s.json Structured output ║
║ codex exec resume --last "continue" Resume session ║
║ codex exec --trust "task" Trust project config ║
║ codex exec --remote <ADDR> "task" Run on an app server ║
║ ║
║ MCP MANAGEMENT ║
║ codex mcp add <name> -- <cmd> Add STDIO server ║
║ codex mcp add <name> --url <u> Add HTTP server ║
║ codex mcp list List servers ║
║ codex mcp login <name> OAuth flow ║
║ codex mcp remove <name> Delete server ║
║ codex mcp-server Removed 0.154.0; app-server ║
║ ║
║ PLUGINS ║
║ codex plugin marketplace add <src> Add marketplace ║
║ codex plugin marketplace upgrade Upgrade marketplaces ║
║ codex plugin list List incl. remote ║
║ ║
║ CLOUD (experimental) ║
║ codex cloud exec --env <ID> Start cloud task ║
║ codex cloud status <ID> Check task progress ║
║ codex cloud diff <ID> View task diff ║
║ codex cloud list List tasks ║
║ codex apply <TASK_ID> Apply cloud diff locally ║
║ ║
║ CONFIG FILES ║
║ ~/.codex/config.toml User config ║
║ .codex/config.toml Project config ║
║ ~/.codex/AGENTS.md Global instructions ║
║ AGENTS.md Project instructions ║
║ requirements.toml Enterprise policy constraints ║
║ ║
║ SANDBOX MODES ║
║ read-only Read files only, no mutations ║
║ workspace-write Writes: workspace, temp dirs; reads broad ║
║ danger-full-access Full machine access ║
║ ║
║ APPROVAL POLICIES ║
║ on-request Prompt for boundary violations ║
║ never No prompts ║
║ ║
║ MODELS (Nov 2026) ║
║ gpt-6.2-sol Everyday coding; bundled default ║
║ gpt-6.2-astra Demanding end-to-end work ║
║ gpt-6.1-terra Writing, visual work, computer use ║
║ gpt-6-luna Focused, high-volume tasks ║
║ gpt-6.1-sol Previous-generation Sol ║
║ gpt-6-astra Previous-generation Astra ║
║ gpt-6-sol, gpt-5.6-* Legacy; still in the picker ║
║ gpt-5.5 Retired Oct 14, 2026 (API key only) ║
║ ║
╚═══════════════════════════════════════════════════════════════╝
FAQ
How do I install and configure Codex CLI?
On macOS or Linux, run curl -fsSL https://chatgpt.com/codex/install.sh | sh; npm install -g @openai/codex and brew install --cask codex work too. Then run codex in a project directory and choose Sign in with ChatGPT, or pipe an API key in with printenv OPENAI_API_KEY | codex login --with-api-key. Settings live in ~/.codex/config.toml, where you set the model, sandbox_mode, and approval_policy; a preset goes in its own file, ~/.codex/<name>.config.toml, and is selected with --profile <name>.131223263 The full steps are in How Do I Install Codex? and Configuration System Deep Dive.
What is AGENTS.md and how does it work?
AGENTS.md is a plain Markdown file of instructions for coding agents, an open format that Codex and other tools read. Codex loads ~/.codex/AGENTS.md first, then every AGENTS.md from the project root down to your current directory, and joins them in that order, so a file closer to where you are working overrides earlier guidance. An AGENTS.override.md in a directory is read instead of that directory’s AGENTS.md, and the combined text stops at project_doc_max_bytes, 32 KiB by default.9263 See How Does AGENTS.md Work? for the discovery rules and a production example.
How does Codex sandbox mode work?
Codex confines the commands it runs with the operating system’s own sandbox, not a container: Seatbelt on macOS, bubblewrap with seccomp on Linux and WSL2, and a native sandbox on Windows. sandbox_mode takes one of three values: read-only (inspect files only), workspace-write (read files, edit inside the workspace), and danger-full-access (no sandbox restrictions). A separate setting, approval_policy, decides when Codex stops to ask you.5195263 Platform details, permission profiles, and a way to test the sandbox are in How Does the Sandbox & Approval System Work?.
What is the difference between Codex CLI and Codex in ChatGPT?
Codex CLI runs in your terminal, on your machine, against the files in your working directory, with every command inside the local sandbox. In the ChatGPT desktop app Codex can also work locally, in your project or in a Git worktree. Codex Cloud, which you reach from ChatGPT on the web, on mobile, or in the desktop app, runs each task in a cloud environment: the task has its own workspace and keeps working while your computer is asleep. Use the CLI for interactive work and scripting, and Cloud for tasks you want to hand off and review later.4263269 The five surfaces are compared in Core Interaction Surfaces.
How do Codex cloud tasks work?
You pick an environment (the default one, or a published one with your repositories and tools prepared), describe the task, and Codex works on it in that task’s own workspace. When it finishes you inspect the changed files and check results, ask for follow-up changes, and commit or open a pull request. From a terminal, codex apply <TASK_ID> applies a cloud task’s diff to your local working tree; the codex cloud command group is marked experimental.4218263 More in Codex Cloud & Background Tasks.
How do I set up MCP servers in Codex?
Run codex mcp add <name> -- <command> for a local STDIO server or codex mcp add <name> --url <address> for a Streamable HTTP server, or write a [mcp_servers.<name>] table in config.toml yourself. Those are the two server types Codex supports. Inside a session, /mcp lists the active servers and their tools. Since v0.172.0 an optional STDIO server whose tool list is cached starts on its first tool call; set mcp_lazy_stdio_startup = false under [features] if it has to start with the thread.11256262263 Configuration keys and patterns are in What Is MCP (Model Context Protocol)?.
Which approval mode should I use in Codex?
Start with approval_policy = "on-request" and sandbox_mode = "workspace-write": Codex works inside the sandbox and asks when it needs to go beyond it. For a repository you do not know yet, keep on-request and switch the sandbox to read-only. Use never only for automation that an outside boundary already contains, such as a disposable CI container. The old untrusted policy is gone, and a config that still names it stops Codex from starting.243263 The decision tables are in When to Use Each Sandbox Mode.
What is the default model in Codex CLI, and how do I change it?
With no model configured, Codex CLI v0.169.1 and later starts on GPT-6.2 Sol (gpt-6.2-sol). To use another model, set model = "gpt-6.2-astra" (or any model your account has) in ~/.codex/config.toml, pass -m <model> for one run, or type /model inside a session. In Enterprise and Edu workspaces the GPT-6.2 models stay off until an administrator enables them, so pin a model your workspace has.258259260 Which Model Should I Choose? compares the models and What Does Codex Cost? gives their rates.
How do I update Codex CLI to the latest version?
Run codex update, or update through whatever installed it: run the install script again, npm install -g @openai/codex@latest, or brew upgrade --cask codex. Check the result with codex --version; the latest stable on November 25, 2026 is 0.172.0. To pin or roll back, install an exact version, for example npm install -g @openai/codex@0.172.0.257263 Uninstalling and clean reinstalls are covered in How Do I Update, Downgrade, or Uninstall the Codex CLI?.
How is Codex CLI different from Claude Code?
Both are coding agents that run in your terminal; the differences are in configuration and defaults. Codex reads AGENTS.md and a TOML file, ~/.codex/config.toml; Claude Code reads CLAUDE.md and settings.json, and since v2.1.277 it also reads AGENTS.md when a project has no CLAUDE.md. Codex sandboxes every command by default; Claude Code’s Bash sandbox uses the same operating-system mechanisms on macOS and Linux but is off until you turn it on. Eleven of Codex’s fourteen hook events carry the names Claude Code uses (PreToolUse, PostToolUse, UserPromptSubmit, Stop, and seven more), so those hook configs port; Interrupt, PreModelRequest, and PostModelRequest are Codex’s own. /import brings setup, project configuration, and recent chats over from Claude Code.5107133263265 The concept-by-concept table is in the Migration Guide.
Changelog
| Date | Version | What Changed | Source |
|---|---|---|---|
| 2026-11-25 | Guide v2.88 | Codex 0.167.2 through 0.172.0 (November 11 to 24; npm latest 0.172.0) and the GPT-6.2 launch. GPT-6.2 Sol is the bundled default since v0.169.1, with GPT-6.2 Astra beside it. The summary, Current State, model and pricing tables, profiles, and Quick Reference Card use the GPT-6.2 names, rates (Astra 200 / 10 / 1,000 credits; Sol 50 / 2.5 / 250), and Ultrafast plans. New release section: TUI workspace on by default, /rc, codex exec --remote and --trust, lazy stdio MCP startup, and the multi_agent deprecation. Corrected: subagent default (three spawned agents on multi-agent v2, six on v1); Cloud sections follow the current docs, legacy controls labeled; eleven of fourteen hook events share a name with Claude Code; desktop worktree steps, the Plugins section, Codex Security, and Enterprise Access follow their sources. Statements dated to a source tag now name v0.172.0, plus a ten-question FAQ. Feature flags: 202 to 226. Alpha: 0.174.0-alpha.6. |
4256257258259260261262263264265266267268269270271272273274275276277 |
| 2026-11-11 | Guide v2.87 | Corrections against the v0.167.1 source and the current docs; no new release. Removed features are no longer described as available: spacebar dictation and custom prompts (v0.118.0), CSV agent jobs (v0.145.0), and devcontainer profiles (v0.155.0). A leftover profile = "<name>" or approval_policy = "untrusted" line stops Codex from starting, and so does a name on the built-in amazon-bedrock provider. codex exec never prompts and defaults to a read-only sandbox. /fork <name> names the new chat. WS_PROXY and WSS_PROXY are set for sandboxed commands, not read from your shell. Also corrected: Daybreak Defense Factory (formerly Codex Security Cloud), site tools access, scheduled tasks (formerly Automations), Appshots and Computer Use on Windows, reasoning-summary and token-cost advice, the Windows sandbox, configuration tables, slash commands, pricing text, the installer, the Python SDK, and docs links. Alpha: 0.170.0-alpha.1. |
257213214215216217218219220221222223224225226227228229230233234235236237238239240241242243244245246247248249250251252253254255 |
| 2026-11-10 | Guide v2.86 | Codex 0.167.0 (November 6) and 0.167.1 (November 10; npm latest), 123 and 3 commits past their predecessors. New section covers codex agents --no-daemon, backend switching in the session picker, “Sign in another way” with the opt-in gcp_setup_wizard, the system-proxy entry in /experimental, and deferred_tool_world_state on by default. Corrected against the docs and source: GPT-5.5 (October 14) and GPT-5.3-Codex-Spark (September 14) are retired from Codex, so examples use GPT-6 models; GPT-6.1 Sol’s documented 500K default sits beside the bundled catalog’s 272K; Pro has a $500 tier, Ultrafast, and no five-hour limit; hooks number fourteen with PreModelRequest and PostModelRequest; /memories replaces /m_update, which never existed; personal skills live in ~/.agents/skills; wire_api = "chat", the top-level profile selector, /personality, and the worktrees and realtime_conversation off switches no longer work; config precedence has seven levels; and code mode is described as the JavaScript tool-calling runtime it is. |
200201202203204205206207208209210211212 |
| 2026-11-02 | Guide v2.85 | Codex 0.165.0 (October 27) and 0.166.0 (October 29; npm latest), 71 and 265 commits past their predecessors. One flag flips on and stable: reasoning_effort_override (reasoning effort changes mid-conversation). New section covers GPT-6.1 Terra in the catalogs (500K context in Codex; in ChatGPT Work and Codex since October 26), the built-in Google Cloud Vertex AI provider (model_provider = "gcp"), memory v2 for fresh profiles, keyboard-driven transcript selection, codex queue --resume, codex doctor --network-only, safety-block explanations, and the fixes. Models table gains a Terra row; Custom Model Providers gains the gcp example; Memory System gains the v2 bullet; the summary, Current State, and the alpha-channel note updated. Alpha: 0.167.0-alpha.4 (November 3) with gcp_setup_wizard and suppress_model_change_announcements stable but off, deferred_tool_world_state and retain_client_tool_outputs on, and daemon_auto_start removed with the feature on. |
198199 |
| 2026-10-23 | Guide v2.84 | Codex 0.164.0 stable (October 23; npm latest), cut from 0.164.0-alpha.11 plus one release commit, 330 commits past v0.163.0. Three flags flip on and go stable: bedrock_setup_wizard, incremental_tools, mcp_oauth_refresh_coordination; worktrees, realtime_conversation, stable_environment_tools, and transcript_v2 are removed (the first two with their features left on). New section covers /presets, inline /model and /permissions arguments, image previews in the fullscreen transcript, enterprise-managed MCP authorization, credential masking (flag still off), the Bedrock wizard, compaction and resume fixes, Windows proxy auth, and disk housekeeping. /presets row added; /model and /permissions rows updated; the summary’s latest-stable sentence updated. Alpha: 0.165.0-alpha.1 (October 23) with reasoning_effort_override stable and on. |
196197 |
| 2026-10-17 | Guide v2.83 | Codex 0.163.0 stable (October 15; npm latest), cut from the out-of-band 0.163.0-alpha.10.2, 232 commits past v0.162.1. Two flags flip on and go stable: cli_daybreak and code_mode_interrupt; api_key_cyber_access_programs turns on; shell_zsh_fork and unified_exec_zsh_fork are removed with the patched zsh. New section covers the searchable /config panel, the /keymap leader key (Ctrl+X; voice mute to F9), /daemon restart, parallel read-only tools, thread-resume permissions, proxy DNS checks, Windows paste, and smaller packages. Correction: eight places named Landlock as the Linux filesystem sandbox; at tag rust-v0.163.0 the crate README says bubblewrap for filesystem and namespace isolation plus seccomp, with Landlock retained as legacy (PR #52610 renamed the Landlock-named types “without changing enforcement”), so they now say bubblewrap + seccomp. /config row added (the /debug-config row had said there is no /config); the summary’s latest-stable sentence, which still named v0.162.1, updated. Alpha: 0.164.0-alpha.3 (October 17); at that tag worktrees and realtime_conversation are marked removed with their features left on. |
194195 |
| 2026-10-14 | Guide v2.82 | alpha-channel correction, no stable release (npm latest stays 0.162.1). alpha is 0.163.0-alpha.11 (October 14, 03:27 UTC on GitHub); alpha.10 (October 13, 19:04 UTC) had already shipped when v2.81 named alpha.9 as current. The current-state box and the stability note now say so. |
193 |
| 2026-10-13 | Guide v2.81 | alpha-channel note only, no stable release (npm latest stays 0.162.1). alpha moved from 0.163.0-alpha.5 to alpha.9 on October 13 (alpha.8 at 13:14 UTC and alpha.9 at 15:47 UTC on GitHub); the current-state box and the stability note say so. |
192 |
| 2026-10-11 | Guide v2.80 | Codex 0.161.0 (October 7), 0.162.0 (October 8), and 0.162.1 (October 9). One default flips: instant_interrupt is on since 0.162.0 (instant_interrupt = false turns it off); API-key model discovery is on since 0.161.0. 0.161.0 adds /mcp login <name>, voice device selection, the opt-in Daybreak flag (cli_daybreak, /daybreak, codex exec --cyber-access-program), and Bedrock multi-agent V2; its GPT-6.1 Sol note repeats the 0.159.1 catalog, byte-identical at the tag. 0.162.0 adds worktree tools for the model, Command Center pinning (p), transcript copying with Ctrl+Insert, tui.mouse_scroll_speed, provider capabilities, and the ultrafast_mode gate, and removes apply_patch_preserve_line_endings. 0.162.1 fixes a TUI crash and the background-server feature-mismatch startup failure. Current-state box, description, version examples, config reference, slash table, worktree and provider sections, troubleshooting, and stability note follow; alpha is 0.163.0-alpha.5. |
187 188 189 190 |
| 2026-10-06 | Guide v2.79 | Codex 0.159.3 (September 30), 0.160.0 (October 1), and 0.160.1 (October 5). None changes a default: the bundled catalog is identical to 0.159.1, and GPT-6.1 Sol stays the default. 0.159.3 adds optional account-security reminders. 0.160.0 adds two opt-in Guardian flags, history retrieval (guardian_conversation_history_tools with two auto_review keys) and handoff-aware root context; projectless sessions; command center paging; X11 middle-click paste; explicit provider catalogs as authoritative; and Windows sandbox fixes. 0.160.1 fixes remote Windows MCP startup. The current-state box, TL;DR, description, version examples, config reference, Guardian and provider sections, troubleshooting row, and stability note follow; alpha is 0.162.0-alpha.16, and the 0.161 line has no stable. |
183 184 185 186 |
| 2026-09-30 | Guide v2.78 | Codex 0.159.2 (September 29), a Windows patch that stops console windows flashing when Codex launches background processes and sandboxed commands; it changes no defaults, config keys, or models. The current-state box, TL;DR, description, and version examples now point at 0.159.2, and a 0.159.2 subsection opens the version list. The stability note adds 0.160.0-alpha.6.1, a Windows backport to alpha.6 that leaves the 0.160 line without a stable, and moves alpha to 0.161.0-alpha.4. Defaults, GPT-6.1 Sol as the bundled and Bedrock default, Fast-tier defaults, pricing, context management, and the GPT-5.5 date rechecked; unchanged. |
181 182 |
| 2026-09-29 | Guide v2.77 | Codex 0.158.0 (September 28), 0.159.0, and 0.159.1 (September 29). 0.159.1 makes GPT-6.1 Sol the bundled and Amazon Bedrock default model; the current-state box, TL;DR, model table and notes, flowchart, plan, credit, and API tables, profiles, reasoning table, reference card, and Claude Code row now follow it, and GPT-6-Astra is no longer described as the default. 0.158.0 turns on terminal input approval, copy-on-select, and right-click paste, each listed with its off-switch, and removes the Guardian thread_context opt-out; the approval, Guardian, and /tui sections now say so. The stability note records that the 0.158 line shipped stable from 0.158.0-alpha.15.4, that the 0.160 line stopped at alpha.6, and that alpha is 0.161.0-alpha.2. Experimental context management is marked unavailable, per the config reference. |
177 178 179 180 |
| 2026-09-26 | Guide v2.76 | Codex 0.157.0 stable (September 25) and 0.157.1 (September 26). 0.157.0 turns on three defaults: the fullscreen transcript, automatic background-server startup, and Guardian thread context; the current-state box, /tui and /daemon rows, reference card, stability note, and Guardian section now say how to turn each off. Amazon Bedrock gains GPT-6 Sol and Luna with GPT-6 Sol as its default; the model table and Astra note follow. The bundled catalog no longer marks Astra as supporting experimental context management, noted in both context sections. 0.157.1 is four Windows fixes its release notes do not list. Alpha moves to 0.159.0-alpha.4, with no stable from the 0.158 line. GPT-6 model guidance, Fast-tier defaults, pricing, and the GPT-5.5 retirement date rechecked against the docs and code and unchanged. |
175 176 |
| 2026-09-23 | Guide v2.75 | Codex 0.156.1 stable (September 23) adds GPT-6 Sol and GPT-6 Luna to the model picker. Model table, credit and plan tables, API rates, flowchart, profiles, reference card, and the Claude Code comparison row now follow the shipped catalog and the models docs: GPT-6 Sol for everyday and complex coding, GPT-6-Astra for the hardest work (still the bundled default), GPT-6 Luna for high-volume tasks, GPT-5.5 leaving Codex October 14. Release Highlights restructured: a current-state summary, one subsection per version, newest first, and a short stability note; evidence moved to footnotes. Voice text corrected to default-on everywhere; opt-out keys added for voice, worktrees, Guardian compaction reuse, and the fullscreen TUI; /theme rows reconciled; docs-lag key names and the worktrees-docs claim corrected. Version references updated to 0.156.1; alpha at 0.158.0-alpha.2, with a fourth out-of-band build. |
172 173 174 231 232 |
| 2026-09-22 | Guide v2.74 | Codex 0.156.0 stable (September 22, 19:51 UTC; npm latest at 19:55 UTC). Three defaults flip: voice is on by default (#44921), managed worktrees are enabled by default (#44870), and Guardian parent-compaction reuse is on by default (#46522). The guide’s voice, /experimental, /worktree, /usage, and Guardian text changed from opt-in to default-on to match. The stable carries exactly the 0.156.0-alpha.16 content (published September 21, 16:51 UTC), so alpha.17 and alpha.18 are not in it; the earlier same-day row that called 0.156.0 skipped was wrong, and a version is only safely called skipped once a higher one ships stable. All fifteen pre-release items the guide had listed shipped, among them six bundled themes, the /usage dashboard, Mermaid and TeX rendering, /daemon and --no-daemon, and the retired personality flag. Also new: an optional fullscreen TUI via /tui (off by default) and a local agent message board. New /tui and /daemon rows. The docs changelog confirmed both default flips the same day, while the command reference still omitted /voice, /tui, /daemon, and --no-daemon. On the 0.157.0 alpha line (alpha.10, September 22): GPT-6 Sol and Luna enter the catalog. A rust-v0.156.1 tag existed with no release or npm publish yet. Version references updated to 0.156.0. |
170 171 |
| 2026-09-22 | Guide v2.73 | 0.156.0 looked skipped (no stable release; npm latest stayed 0.155.1). On the morning of September 22 there was no rust-v0.156.0 tag, no non-prerelease GitHub release since 0.155.1 (September 18), and no 0.156.0 on npm. The 0.156.0 alpha line had published alpha.16 and alpha.17 on September 21, and the 0.157.0 alpha line opened the same day and reached alpha.8 by September 22 (12:34 UTC). Every content commit on the 0.156.0 alpha line was also in 0.157.0-alpha.8. The voice (#44921), worktree (#44870), and Guardian parent-compaction (#46522) default flips were still not in stable 0.155.1, so the guide’s statements about shipped behavior did not change. Also recorded: a third out-of-band build, 0.155.0-alpha.16.1 (September 22, 00:20 UTC; two commits over alpha.16). The row above corrects the headline: 0.156.0 shipped later the same day. |
168 169 |
| 2026-09-21 | Guide v2.72 | Codex 0.155.1 hotfix (September 18, 20:03 UTC; npm latest). It restores the TUI reasoning-summary default to none. On 0.155.0, a new local TUI thread with no model_reasoning_summary set requested detailed summaries, and providers that do not support reasoning summaries rejected the request; 0.155.1 sends nothing unless you ask, and explicit auto, concise, and detailed were honored throughout. The patch is two commits: the one-line fix and the release commit. npm alpha returned to a build ahead of latest (0.156.0-alpha.14), so the guide now describes the misplaced alpha tag as a recurring publishing pattern, keeps the advice to pin exact versions, and adds the npm view @openai/codex dist-tags check. On the 0.156.0 alpha line (alpha.14, September 21; five builds in under seven hours): six bundled TUI themes, catalog display names, Guardian parent-compaction reuse on by default, codex doctor path diagnostics, and voice and /usage polish. The voice and worktree default flips were still not in stable 0.155.1. The docs changelog added entries for 0.155.0 (September 17) and 0.155.1 (September 18); the 0.155.0 entry describes voice as “enabled through /experimental”. Version references updated to 0.155.1. |
167 168 |
| 2026-09-17 | Guide v2.71 | Codex 0.155.0 stable (September 17, 23:14 UTC; npm latest). /voice conversations with live transcripts and microphone controls ship as an experimental feature enabled through /experimental, on supported builds only; the changes that turn voice (#44921) and worktrees (#44870) on by default merged September 11 but are not in this release. Also stable: MCP user verification with Touch ID and the Secure Enclave on supported Macs, removal of the Windows /sandbox-add-read-dir command (#44259), worktree management additions with worktrees still non-default, live reasoning summaries in the status row, daemon update schedules and codex app-server daemon update, Bedrock AWS credential commands, Python SDK publishing aligned with stable releases, and security fixes for WSL interop escapes and shell-snapshot credential exposure. New /voice row and updated /experimental, /worktree, and MCP text. npm alpha moved to another out-of-band build, 0.155.0-alpha.9.2 (September 18, 03:09 UTC), so npm i @openai/codex@alpha installed a build semver-older than latest. On the 0.156.0 alpha line (alpha.2): the first Daybreak code (daybreakEnabled, #45513), the /usage analytics dashboard, Mermaid and TeX rendering, /daemon, and --no-daemon. The docs had no 0.155.0 entry yet. Version references updated to 0.155.0. |
165 166 |
| 2026-09-16 | Guide v2.70 | 0.155.0 alpha line, alpha.6 to alpha.10 (no stable release; npm latest stayed 0.154.0). npm’s alpha tag pointed at 0.155.0-alpha.2.5 (September 16, 13:17 UTC), an out-of-band build from the old alpha.2 base that is semver-lower than alpha.6 through alpha.10, so npm i @openai/codex@alpha installed a build without the alpha.3+ features; pin exact versions on the alpha channel. Its six commits over alpha.2 were voice release packaging. The four alphas of September 15 and 16 (65 commits) added an account analytics dashboard in /usage, Guardian reviewer hardening, a Windows sandbox rework that separates implementations from the legacy setup modes (#45737), daemon recovery work, the retirement of the personality feature flag (#45809), and Mermaid and display-math rendering. Voice default-on (#44921), worktrees default-on (#44870), MCP user verification, and the /sandbox-add-read-dir removal (#44259) were unchanged on the line. Also added: GPT-5.5 retires from Codex with ChatGPT sign-in on October 14, 2026 (replace gpt-5.5 with gpt-5.6-sol; the OpenAI API is unaffected). The body was otherwise untouched because nothing else here had shipped stable. |
164 |
| 2026-09-15 | Guide v2.69 | Codex 0.154.0 stable (September 9; npm latest). The stable was cut at about the alpha.6 boundary: none of alpha.7’s 58 commits are in it. Shipped and now in the body: codex mcp-server removed (#42993, with the standalone codex-mcp-server binary), legacy Guardian approval paths removed (#43462), managed worktrees as an experimental feature (new /worktree row), free-form async user messages, Windows sandbox provisioning including the native MXC adapter (#42841), the Windows app-server daemon, remote permission profiles, model-capability context gating, Vim R replace mode, live compaction status, and a security fix that gates PATH helpers on workspace trust (#42324). Not shipped in 0.154.0: MCP user verification and Secure Enclave signing, the voice TUI, and Memory v2. Docs changes as of September 15: the models availability matrix marks Astra available for Codex cloud, the reasoning ladder is Low, Medium (default), High, Extra high, Max, Ultra, and Python SDK 0.154.0 (September 10) adds the max and ultra effort values. On the 0.155.0 alpha line (alpha.6; opened September 10): voice and worktrees on by default, daemon threads persisted across restarts, and /sandbox-add-read-dir removed on Windows. Version references updated to 0.154.0. |
161 162 163 |
| 2026-09-08 | Guide v2.68 | 0.154.0 alpha line, alpha.6 to alpha.7 (no CLI release). alpha.7 was published September 8 (17:44 UTC) with 58 commits over alpha.6; stable stayed at 0.153.4, and alpha release notes are empty, so the commit comparison is the only source. On the alpha line: live WebRTC voice conversations in the TUI (#43581, with mute controls and transcript polish) and MCP user verification on supported devices (#43712, #43715; backed by macOS Secure Enclave signing, #43624). Neither is stable behavior until a release carries it. Also new on the line: Memory v2 (configurable memory versions with isolated storage, #43797) and managed app-server daemon auto-updates. The removals of codex mcp-server (#42993) and of the legacy Guardian paths (#43462) were still in place on the line. No change to Windows sandbox provisioning, remote permission profiles, Vim replace mode, live compaction status, or the PATH-helpers trust fix. |
159 160 |
| 2026-09-07 | Guide v2.67 | 0.154.0 alpha line, alpha.3 to alpha.6, and the Power presets under Astra (no CLI release). alpha.6 was published September 7 (18:03 UTC), 147 commits over alpha.3. On the alpha line: managed worktrees grew into a full feature (#42196 and follow-ups), free-form async messages gained a TUI, native voice runtime work continued, Windows sandbox provisioning continued (including the native MXC adapter, #42841), and the deprecated codex mcp-server command was removed (#42993), which becomes a documented removal only if it reaches stable 0.154.0. Also on the line: a Guardian v2 overhaul (legacy approval review paths removed, #43462), experimental MCP user verification, remote permission profiles, and context gated by model capability (#43147). Docs: between September 5 and September 7 the models page mapped the Power presets onto Astra tiers: “For eligible Pro, Business ($100), and Enterprise accounts, the Astra rollout updates the Power options to Terra Light, Sol Light, Sol Medium, Astra Light, Astra Medium, and Astra Extra High. Options can differ by plan and rollout stage.” Added to the Astra notes in Which Model Should I Choose? No change: Astra was still unavailable for Codex cloud, and the docs and catalog reasoning defaults still differed. |
155 159 |
| 2026-09-05 | Guide v2.66 | Astra rollout status superseded + experimental cross-context notes (note-only update; no CLI release). OpenAI announced on X (September 4) that GPT-6 Astra “is now available to all Pro, Enterprise, and Business Premium users in ChatGPT Work and Codex” and “live in the API,” with Plus and Business days behind; the Codex lead Tibo Sottiaux followed up the same evening: “Astra is now rolled out to all Plus and Business users too.” Entitlement stays uneven in practice (September 5 community reports: Plus accounts seeing only GPT-5.6 models in Codex) and the models docs availability line is unchanged, so the Sol-pin fallback advice stands. TL;DR, Mental Model, Release Highlights lead, and the Models-section Astra note updated; launch-day phasing statements retained as attributed records. New: Models-section paragraph on the docs-published experimental cross-context notes – “Astra keeps notes across context windows and can search earlier messages and tool results from the same task” (Plus/Pro opt-in via features.context_management.experimental_mode = true; off by default; not available with Business, Enterprise, or API-key sign-in at launch) – the same v0.153.0 config surface, now tied to Astra by the docs. |
155 158 |
| 2026-09-04 | Guide v2.65 | GPT-6-Astra launch, Codex 0.153.3 and 0.153.4 (both September 4; npm latest 0.153.4). OpenAI announced GPT-6-Astra on September 3, 2026, with a phased rollout (press-reported; openai.com returned 403, so no first-party announcement page is cited). First-party docs: the API models page lists gpt-6-astra as the flagship at $10/$50 per MTok ($20/$75 above 272K input tokens), a 1.05M context window (922K input, 128K output), and an April 30, 2026 cutoff; the Codex docs make Astra the recommended model for eligible Pro, Business ($100), and Enterprise accounts, mark it unavailable for Codex cloud, and give a Low to Ultra reasoning ladder. Fast mode bills at 2.5x Standard credits, or 2x Standard API rates. 0.153.3 (19:01 UTC) adds Astra to the Amazon Bedrock catalogs (#42805). 0.153.4 (23:25 UTC) lists Astra in the bundled catalog, which makes it the default when no model is configured (#42874). The model table gains the gpt-6-astra row, and the summary, flowchart, and quick-reference card present Astra as the bundled default with the rollout caveat and Sol as the fallback. Also recorded: developers.openai.com/codex/* now redirects to learn.chatgpt.com/docs/*. Corrections the same day: the input and total context split, the long-context price tier, and the two reasoning defaults (docs Medium, catalog low). Version references updated to 0.153.4. |
154 155 156 157 |
| 2026-09-03 | Guide v2.64 | Codex 0.153.1 and 0.153.2 (September 3; npm latest 0.153.2). The main 0.153.1 change is not in its release notes and appears only in the v0.153.0 to v0.153.1 commit comparison: Guardian computer-use scoring honors model requirements (#42422), so computer-use-only scoring and fast approval decisions run only when the active model sets node_repl_auto_review_required, and a model switch that skips scoring invalidates earlier scores. Also in 0.153.1: a GPT-6-Astra model catalog entry (#42605), usable only by naming the model; the default model and picker did not change. 0.153.2 fixes one string: the Astra Fast tier description now reads “2x speed, increased usage” instead of “1.5x” (#42632). On the 0.154.0 alpha line (alpha.3, 103 commits ahead of 0.153.0): Astra in the bundled and Bedrock catalogs (#42607, #42619), macOS sandbox hardening against terminal input injection (#42590), and Guardian review for incompatible compaction checkpoints (#42588). Version references updated to 0.153.2. |
151 152 153 |
| 2026-09-03 | Guide v2.63 | Codex 0.152.0 and 0.152.1 (September 1) and 0.153.0 (September 3; npm latest). All thirteen pre-release items the guide had listed shipped, one of them reversed: update_plan shipped opt-in, not on by default (tools.update_plan.enabled defaults to false, #41744). 0.152.0 in the body: Vim search motions (/, ?, n, N), MCP openai/elicitation form requests, per-tool MCP output_token_limit, package-style MCP server names, actionable rate-limit banners, credential-refresh progress including Bedrock reauthentication, and cloud task credentials restricted to trusted origins with redirects disabled. 0.152.1: Guardian approval review reads its Node REPL policy from model metadata (#41919). 0.153.0 in the body: Vim undo u and redo Ctrl+R, plugin CLI list, install, and remove on remote marketplaces (#42150), tui.auto_recap = false (#42101), early rate-limit warnings (#42142), Guardian scope by approval mode (#42147, #42256), and features.context_management.experimental_mode (#42385). Listed here only: tui.disable_paste_burst replaces the top-level key (#41976), TUI reconnect keeps drafts and transcripts, rollout compression, and MCP approvals scoped to the app account link (#42133). On the 0.154.0 alpha line (alpha.1): Vim replace mode, managed worktree creation, native voice runtime work, PATH helpers gated on workspace trust, and Windows sandbox provisioning services. |
147 148 149 150 |
| 2026-08-30 | Guide v2.62 | Codex 0.151.0 (August 29): all ten pre-release items the guide had listed shipped. The release notes cover only the last PRs (#41183 to #41209); the v0.150.1 to v0.151.0 commit comparison holds 164 commits. In the body from that comparison: /recap, code-mode WebSocket removal (#40692; hosts take stdio, stdio://, or grpc://IP:PORT), paginated thread history out of experimental (#40673, #40677), the persistent reasoning effort, Guardian v2 defaults flipped (#40846: review_scope.computer_use_only and transcript.include_images default to true), Vim find, till, and buffer-jump motions, live turn-scoped settings, Bedrock TUI onboarding (#40679), and escalated-terminal input approvals (write_stdin_approval, off by default, 8,000-byte cap). From the release notes: an MCP optional-server startup grace period (mcp_optional_startup_grace_ms, #41199), extensions that inspect or replace MCP tool results (#41202), per-repo plugin catalogs (#41208), and /cd no longer weakening sandbox restrictions (#41192). Fixes listed here only: tool availability and reasoning effort stay correct across model switches (#41195, #41206), and stale Guardian classifications no longer authorize actions after permission changes (#41196). On the 0.152.0 alpha line (alpha.4): Vim search motions, update_plan on by default, MCP elicitation forms, and per-tool MCP output limits. |
144 145 146 |
| 2026-08-27 | Guide v2.61 | Codex 0.150.0 (Aug 26) and 0.150.1 (Aug 27, npm latest). Five items from the 0.150 alpha line shipped in stable 0.150.0: the Interrupt hook (twelfth event, 1s default timeout with a 3s cap, never for subagents), the /copy picker (full response, individual code blocks, blockquotes; replaces “copy the last response” in the TUI table and quick-reference card), AGENTS.md skipped in untrusted projects (Discovery Hierarchy), features.network_proxy.credential_broker, and Guardian v2 review_scope.computer_use_only (both config sections, off by default). Five moved to the 0.151.0 alpha line: /recap, code-mode WebSocket removal, the paginated-history default, persistent effort, and the Guardian v2 computer-use-with-images defaults. Also in 0.150.0: task @ mentions plus agent read, create, and message task tools, automatic task titles and /rename suggestions, clickable Markdown link labels, permission-mode-cycling keybindings and Vim . repeat; fixes for app-server credential redaction, remote MCP bearer-token and startup handling, the elevated Windows sandbox under Unicode paths, Unix shutdown hangs, and Bedrock compaction and multi-agent compatibility. 0.150.1: remote compaction counts retained images toward its token budget by default (the default from #40994, backported in #41003). On the 0.151.0 alpha line (alpha.6): recaps, Vim find, till, and buffer-jump motions, live turn-scoped settings, worktree settings, Bedrock TUI onboarding, and approval for input to escalated terminals; none is in the body until it ships stable. Listed here only: ChatGPT iOS 1.2026.230 (Aug 26: task search across titles and conversation content, a compact reasoning-effort gauge, a full-screen editor, configurable Home Screen shortcuts). |
141 142 143 |
| 2026-08-26 | Guide v2.60 | Corrections to the guide; no new stable release (v0.149.1 was still the latest). Hooks section rebuilt against the source: v0.149.1 has eleven hook events (PreToolUse, PermissionRequest, PostToolUse, PreCompact, PostCompact, SessionStart, SessionEnd, UserPromptSubmit, SubagentStart, SubagentStop, Stop); AfterToolUse does not exist, and AfterAgent survives only as the legacy notify payload. The config example now uses hooks.json or [[hooks.<Event>]] with the review-and-trust flow, and both migration tables are corrected. codex mcp-server marked deprecated (docs changelog August 24; warning shipped in 0.149.0). codex exec --thread-source <SOURCE> (#40161, in 0.149.1) added to Key Flags, and an example that passed --ask-for-approval to codex exec, which has no such flag, now uses -c approval_policy=on-request. The browser extension supports five browsers (Chrome, Edge, Brave, Opera, Vivaldi; docs changelog August 25). Shared read-only thread snapshots (August 20) added to the desktop app section. Slash commands: /config did not exist at that version and was replaced with /debug-config; eleven missing commands added (/keymap, /rename, /approve, /memories, /agents, /side, /raw, /ide, /stop, /experimental, /app). features.network_proxy documented as a boolean or a table with eleven sub-keys. Stability note updated to 0.150.0-alpha.13 (August 26). |
133 134 135 136 137 138 139 140 |
| 2026-08-25 | Guide v2.59 | Correction: three errors that could mislead readers, all reproduced on Codex 0.149.1. (1) The CI recipe ran codex exec --sandbox workspace-write --ask-for-approval on-request; codex exec has no -a/--ask-for-approval flag and fails with error: unexpected argument '--ask-for-approval' found; the recipe now sets the policy with -c approval_policy=on-request. (2) danger-full-access + on-request was described (decision table and Sandbox section) as “approval required for every command”; approvals fire on leaving the sandbox or using the network, and full access removes both boundaries, so that pairing rarely prompts; both surfaces rewritten. (3) The guide page’s FAQ JSON-LD still told readers to “Use ‘untrusted’ for unfamiliar repositories”, replaced with read-only + on-request. |
132 |
| 2026-08-25 | Guide v2.58 | Correction: profiles are per-file since 0.134.0, and two more untrusted residues removed. Both profile examples (Configuration Deep Dive; Team Strategies config setup) taught the legacy [profiles.<name>] tables inside config.toml plus a top-level profile = "default" selector; the official advanced-config page states “In Codex 0.134.0 and later, --profile no longer reads [profiles.profile-name] from config.toml, and the top-level profile = "profile-name" selector is no longer supported,” and a leftover table makes --profile refuse to start (reproduced on Codex 0.149.1). Rewritten as ~/.codex/<name>.config.toml files with top-level keys. Also removed: the untrusted row from the Quick Reference Card’s approval-policy box and the enterprise pilot line’s “enforcing untrusted sandbox mode” (never a sandbox mode; now read-only + on-request). Guide now contains no untrusted policy references outside history. |
131 |
| 2026-08-24 | Guide v2.57 | Codex v0.149.0 stable (Aug 20) and v0.149.1 (Aug 24, npm latest). The pre-release items the guide had listed shipped: untrusted approval policy retired (seven places moved to on-request: the mental-model diagram, config reference, both profile examples, decision framework, approval-mode table, and the requirements.toml allowlist, the last two corrected on Aug 25; OpenAI’s own approvals doc still showed untrusted in its combinations table and config example as of Aug 24); the codex agents dashboard; the codex doctor expansion (endpoint protection, network and proxy, desktop app, update connectivity); and SDK max and ultra efforts plus exact CLI config overrides. New: /cd, /pwd, /cwd (slash table), codex queue (Session Management), expanded Vim change motions, and permission-profile restore on resume and fork. v0.149.1 is a five-commit patch (remote-session image compaction and memory backports, plus the codex exec --thread-source flag, which the guide added in v2.60). Pricing: GPT-5.6 Sol cut more than 20% for three months from Aug 21 (through at least Nov 21, 2026): the Credit Costs table now uses the published 100/10/500 rate card (was 125/12.5/750). Listed here only: flags on the 0.150.0 alpha line (Bedrock multi-agent, permission-mode cycling keybindings, the /copy target picker, agents session config); devcontainer DNS-exfiltration documentation; shared read-only Codex thread snapshots from the desktop app (Aug 20 changelog entry). v0.149.1 was the latest stable release at the time of this row. |
129 130 |
| 2026-08-20 | Guide v2.56 | Codex v0.148.0 stable (Aug 18). /export: export the complete TUI conversation to Markdown, to the clipboard or a new file (see Session Management, slash-command table). codex exec fork: fork sessions from the command line; the TUI resume picker gains archive and restore. Thread credits/cost visibility: /status, status lines, and terminal titles show estimated credits or cost for eligible workspaces (see What Does Codex Cost?). Amazon Bedrock Runtime as a built-in provider: AWS profile and region support with GPT-5.6 routing, completing the arc from v0.145’s experimental login. Hooks, async and MCP: hooks can run commands asynchronously and invoke MCP tools (see Hooks). Sandbox fails closed: denied or unreadable paths are treated as blocked rather than silently allowed, on Linux and Windows (see Sandbox). Also: prompt drafting during TUI startup, unified exec default-on for Windows, storage diagnostics in codex doctor, session ID exposed to shell commands. Changelog-only: model-switch/session-resume/MCP-OAuth-recovery fixes, CRLF paste and long-URL rendering, skill-creator validation rejecting TODO placeholders. Codex cloud: GitLab support in beta (Aug 19) on all ChatGPT plans: environments, tasks from issues/MRs, reviews; GitLab 19.0+ Self-Managed (see Codex Cloud). On the 0.149.0 alpha line (pre-release): untrusted approval-policy retirement, codex agents dashboard, codex doctor diagnostics expansion, Max/Ultra reasoning efforts in the SDKs. |
127 128 |
| 2026-08-12 | Guide v2.55 | Correction: Agent Plugins facts now cite the normative spec. The v2.54 update cited agentplugins.codes as “the spec”; it is an unaffiliated third-party field guide (its own footer: “An independent developer field guide. Not affiliated with the Agent Plugins project or its maintainers”), and two quoted lines presented as the spec’s self-description were the guide’s editorial prose. All quotes now come from agent-plugins.org and the normative spec/1.0.0.md: official one-line summary, the ten permitted manifest fields and the unknown-field requirement, skills-discovery sentence, MCP transport requirements, the namespace-ignore requirement, and the excluded component types (commands, hooks, agents, rules, LSP servers). Governance corrected to primary sources: Vercel initiated (per its announcement), the MAINTAINERS.md roster is Amazon, Cursor, Microsoft, OpenAI, and Vercel, Google’s joining anchored to its own Developers Blog post. Anthropic-authorship claims now cite Anthropic’s Agent Skills and MCP announcements directly. Corrected the same day. |
126 |
| 2026-08-11 | Guide v2.54 | Agent Plugins is a cross-vendor open standard: context added. Agent Plugins 1.0.0 shipped August 6, 2026 (agentplugins.codes, “the portable package format for AI agents”): required plugin.json manifest, optional skills/ (one Agent Skill per SKILL.md subdirectory), optional mcp.json (stdio / Streamable HTTP / legacy HTTP+SSE), optional reverse-domain client namespaces; explicitly a packaging layer around Agent Skills and MCP, not a replacement. Spec shaped by Amazon, Anysphere (Cursor), GitHub, Microsoft, OpenAI, and Vercel; Google joined the core maintainers on launch day; launch clients: VS Code, Cursor, GitHub Copilot, ChatGPT & Codex, Kiro. Anthropic (author of the Agent Skills spec) is not in the coalition. The guide’s existing v0.146.0/v0.147.0 plugin coverage now carries this context: the Plugins section’s v0.146.0 subsection is retitled and expanded, and the features-table row notes portability across clients, not just machines. No new CLI release. |
126 |
| 2026-08-10 | Guide v2.53 | Accuracy pass: a full read of the guide, with one critical and six major corrections. The critical one: gpt-5.1-codex-mini, shut down July 23, was still the recommended model on twelve surfaces (flowchart, fast and ci profiles, reasoning table, cost and team strategies, anti-patterns, Recipe 4); every recommendation now uses the GPT-5.6 family. From the models page: GPT-5.6 Sol is the recommended default (the “Power” setting, medium reasoning), GPT-5.4 and GPT-5.4 mini retire from Codex on August 31, 2026, and gpt-5.3-codex is deprecated for ChatGPT sign-in. Version references that had stopped at v0.145.0 moved to v0.147.0, and the stability note no longer says --full-auto “remains deprecated” after its v0.147.0 removal. From the pricing page: Go $8/mo (the guide said $5), Pro from $100/mo (5x) or $200/mo (20x), and five-hour limits published per model. Also fixed: five interfaces, not four; a suggest mode that never existed in the Rust CLI; duplicate table-of-contents numbers; the Credit Costs table rebuilt on the published GPT-5.6 rates (Sol 125, Terra 50, Luna 5 credits per 1M input tokens); and two nonexistent npm packages in Notable MCP Servers replaced with @playwright/mcp and GitHub’s hosted MCP endpoint. |
124 125 |
| 2026-08-07 | Guide v2.52 | Codex v0.147.0 stable (Aug 7): the release this guide held out while it was alpha-only. Breaking: codex exec --full-auto is removed: scripts still passing it now error; replace with --sandbox workspace-write plus an approval flag or profile (see Legacy --full-auto Guidance). --approve-for-me: automatically reviewed approvals: a review pass adjudicates each approval request on your behalf, inheriting the v0.146.1 safer defaults for cyber-capable models (see Approval System). Portable Agent Plugins: installable plugin packages, with plugin search spanning local, personal, workspace, and remote catalogs in one query (see Plugins). MCP 2026-07-28 protocol opt-in: paginated discovery, multi-round requests, non-blocking server startup with cached tools exposed before startup completes (see MCP). Conversation sections: organize conversations into persistent, manually ordered sections and browse long transcripts incrementally. Bedrock gains cached web search and remote conversation compaction. Security fixes: secrets and complete bearer tokens redacted from displayed commands and replayed history; unfamiliar local projects require explicit trust; managed authentication restrictions enforced before credentials are used; plugin isolation hardened with network denied when policy updates fail. Also: Cursor-managed skill import with duplicate-free conversation sync; Japanese/emoji/hyperlink rendering fixes; Windows background-process interrupt fixes; MCP SDK 3.0.0. v0.147.0 is the latest stable release. |
123 |
| 2026-08-05 | Guide v2.51 | Codex v0.146.1 (Aug 5). Single-change patch release, changelog-only: safer automatic-review defaults for cyber-capable models, with the permission changes explained in the terminal interface when they apply (upstream PR #37057, backported to the 0.146 line). No command surface, config key, or pricing changed; no body sections required updates. v0.147.0 remains alpha-only (rust-v0.147.0-alpha.*) and stays out of this guide until it ships stable. v0.146.1 was the latest stable release at the time of this row. |
122 |
| 2026-07-29 | Guide v2.50 | Codex v0.146.0 stable (July 29). The previous update recorded v0.146.0 as alpha-only; it shipped stable on July 29 after fourteen alpha builds. Body updates: the Plugins section gains Agent Plugins manifests, workspace plugin publishing, and the Amazon Bedrock and Claude Code marketplaces; Code Mode gains remote hosts reachable from app-server over WebSocket; the proxy section’s claim to cover “all transport layers” is corrected: that only became true in v0.146.0, which fixed seven paths (authentication, plugin downloads, MCP authorization, remote execution, WebSockets, redirects, LM Studio) that had ignored the configured proxy. Also covered: session naming through /new and /clear, thread pinning and side conversations, thread forking with paginated history and temporary forks, standalone web search for compatible custom providers, executor-provided skill discovery, skill-catalog truncation warnings under tight context, enterprise-plan recognition with administrator controls for in-app updates, and release artifacts moving to OpenAI-hosted infrastructure with GitHub fallback. Changelog-only (no body change): terminal rendering and responsiveness work, Windows navigation keys, sandboxed process-tree termination, app-server serialization overhead, macOS helper notarization, and the HTTP-client and PathUri documentation notes. |
121 |
| 2026-07-28 | Guide v2.49 | Two long-standing changelog-only topics now have body sections. No new release. codex doctor had been mentioned only in changelog rows and footnotes since v0.131.0 and was missing from the guide’s own Diagnostic Tools list, despite being the command the project’s issue template asks you to run. It now has a full section: the flag set (--summary, --json, --all, --no-color), all six stable report sections (Notes, Environment, Configuration, Updates, Connectivity, Background Server), per-check status markers, and the version history of what each release added. Update, downgrade, uninstall was covered only as a one-line “Clean Reinstall” in the debug section; the install section now documents codex update, version pinning for rollback after a bad release, uninstall across npm, Homebrew, and winget, and the fact that ~/.codex/ state survives package removal. Both had entered the changelog without reaching a body section a reader could find. |
120 86 96 102 106 |
| 2026-07-25 | Guide v2.48 | ChatGPT Desktop 26.715 (July 23, Codex-tagged): multi-folder projects change discovery, and Voice arrives on the desktop surface. Multi-folder local projects: a local project can now span several related folders with one designated primary folder; new chats, Git operations, and automatic discovery of AGENTS.md, skills, and config.toml all use the primary folder, while secondary folders stay available only for file search, reading, and editing; documented in Discovery Hierarchy and Config File Locations, with the CLI’s own directory walk explicitly unchanged. ChatGPT Voice, powered by GPT-Live: coordinates tasks across Chat, Work, and Codex from the desktop app, with macOS Screen context sharing an appshot of the frontmost window; Plus/Pro/Business/Edu/Enterprise, desktop plus Remote on iOS (see Codex Desktop App). Changelog-only: ChatGPT for iOS 1.2026.195 (July 20, Codex-tagged, not covered in v2.45 to v2.47) added interactive forms in Codex tasks, inline Mermaid in task transcripts, unsent-prompt recovery across tasks/hosts/workspaces, goals that resume blocked or usage-limited runs, and iPad navigation; recorded here, not added as a sixth surface. No new stable CLI release: v0.146.0 remains alpha-only (alphas .7 to .10 landed July 24 and 25 with empty release bodies), so v0.145.0 is still the latest stable. The announcement teased for July 24 did not appear on the learn.chatgpt.com changelog, the openai.com news feed, or the product release notes on July 24 or 25. |
118 119 |
| 2026-07-24 | Guide v2.47 | July 23 legacy-model shutdown executed; substitutes corrected to GPT-5.6. The gpt-5.2-codex and gpt-5.1-codex-mini snapshots (with gpt-5.1-codex/-max) shut down July 23, 2026 as scheduled; OpenAI’s deprecation table now lists gpt-5.6-sol (codex/codex-max) and gpt-5.6-terra (codex-mini) as the recommended substitutes, replacing the original gpt-5.4/gpt-5.4-mini guidance. Available Models rows and 88 updated; the page description now names v0.145.0. No new stable CLI release (v0.146.0 remains alpha-only; alphas .1 to .6 landed July 22 to 24). |
88 |
| 2026-07-22 | Guide v2.46 | Opening restructured for new readers. The TL;DR is now short and task-oriented with jump links to Install and Quick Start; the version-by-version narrative and stability note moved intact to a new Release Highlights: What Changed Recently section before the Mental Model. No content removed; title, H1, and description unchanged. | – |
| 2026-07-21 | Guide v2.45 | CLI v0.144.6 (July 18) + v0.145.0 (stable, July 21, promoted from the alpha line). /import: now migrates Cursor as well as Claude Code: settings, MCP servers, plugins, sessions, commands, project-scoped memories (see slash-command table). Sessions: experimental paginated thread history: efficient resume, search, persisted names, sub-agent support, memories (see Session Management). Multi-agent: v2 stabilized as opt-in with configurable sub-agent models, reasoning levels, concurrency, restored roles, improved agent navigation (see Multi-Agent); CSV-backed agent jobs removed (#34413). Voice: audio inputs and tool outputs (common local formats) + streaming realtime V3 conversations; realtime returns after its v0.140.0 removal (see TUI Enhancements). Bedrock: experimental login with custom endpoint + authentication support; GPT-5.6 Sol is the default Bedrock model (see Authentication, Available Models). Models: bundled GPT-5.4 selections migrate to GPT-5.6 Terra/Luna; v0.144.6 corrected Sol/Terra/Luna context windows to 272,000 tokens and refreshed bundled instructions (see Available Models). Changelog-only: contextual conversation branching when editing an earlier prompt or retrying a safety-buffered turn; MCP reliability (startup timeouts, non-blocking OAuth discovery, serialized token refreshes, tool-catalog reuse); Windows native exec-server sandboxing, network-proxy enforcement, hidden helper consoles, quoted hook commands; approval refinements (better forced-rm detection, consistent full-access confirmation, rejection reasons preserved); TUI secure clickable inline visualization links, incremental Markdown rendering, ripgrep 15.2.0. Note: developers.openai.com/codex/changelog now 308-redirects to learn.chatgpt.com/docs/changelog; older citations resolve through the redirect. Source: openai/codex releases. |
116 117 241 |
| 2026-07-16 | Guide v2.44 | CLI v0.144.5 (July 16, stable patch line; v0.145.0 remains alpha and is not covered). Sandbox/approvals: dangerous-command detection recognizes more forced rm forms and returns clearer rejection reasons (see Approval Policy). Multi-agent (retroactive documentation, shipped v0.138.0): parent-to-sub-agent task text in multi-agent v2 is encrypted end-to-end through the Responses API: spawn_agent/send_message/followup_task payloads no longer appear in plaintext in local session logs; custom-provider models not configured for encrypted tool use fail with a 400; Codex-generated completion notifications remain plaintext as typed agent_message items; the audit-trail regression issue remains open (see Multi-Agent). v0.144.4 had no user-facing changes. Source: openai/codex releases, PR #26210. |
113 114 115 |
| 2026-07-09 | Guide v2.43 | CLI v0.144.0 (July 9, promoted from the alpha line). Approvals: new writes app-approval mode: declared read-only app actions run free, writes prompt (see App Approval Mode). MCP: tools request authentication interactively without an experimental opt-in (see MCP section). /usage: reset credits show type + expiration with a redemption picker (see slash-command table). Changelog-only: selecting Ultra reasoning warns when high multi-agent concurrency could spike usage; app-server hosts can provide auth at runtime and redirect logins to a hosted page; device-code login warnings explain phishing recognition; Bedrock model names clearly identify GPT-5.6 family/variant; resumed ChatGPT threads recover when compaction references a retired model; Windows sandbox write/delete fixes; /review branch picker faster in large repos. Source: openai/codex releases. |
112 |
| 2026-07-08 | Guide v2.42 | CLI v0.143.0 (July 8, promoted from the v0.143.0-alpha line, superseding the v0.142.x patch line). Plugins: remote plugins are now enabled by default with npm marketplace sources and visible remote/local versions (see Plugins). Config/proxy: system-proxy auth now extends to Windows and to Responses API traffic, with PAC/WPAD autoconfiguration (see Proxy Support). Remote control: new codex remote-control pair generates a manual pairing code for out-of-band controllers (see codex remote-control). Models: Amazon Bedrock adds GPT-5.6 Sol/Terra/Luna with max reasoning effort (see Available Models). App-server: clients can inspect environments, list descendant threads, and fork history through a turn (see App-Server Thread Pagination). Changelog-only: Windows ConPTY input fixes, exec-server offline recovery, installer rate-limit resilience, security dependency bumps (OpenSSL/Hono/fast-uri/quick-xml/crossbeam-epoch). (MCP tool-search-by-default was already documented from the alpha line.) Source: openai/codex releases. |
111 |
| 2026-07-01 | Guide v2.41 | CLI v0.142.2 to v0.142.5 (stable patch line; v0.143.0 remains alpha and is not covered). MCP: tools now use tool search by default when supported: on-demand discovery instead of upfront loading, compatible with older models/providers; remote stdio MCP servers accept absolute working directories in the remote platform’s path format (see MCP section). Security: PowerShell commands containing executable AST regions the safety classifier cannot inspect now require approval (see Approval Policy); v0.142.5 stops full Responses WebSocket request payloads from being written to trace logs. Config: respect_system_proxy lets macOS auth clients honor system proxy/PAC/WPAD settings (see Proxy Support). Changelog-only: plugins support dark-mode logos in manifests and catalogs; remote catalogs return curated featured rankings; expired Amazon Bedrock credentials produce actionable recovery guidance; remote HTTP(S) image inputs return clear model-visible validation errors; Code Mode warns when the selected model lacks required metadata; bundled OpenSSL/esbuild updated. v0.142.3/v0.142.4 were maintenance-only. Also in this update: the page title and description returned to their evergreen form. Source: openai/codex releases. |
110 |
| 2026-06-23 | Guide v2.40 | CLI v0.142.0 stable (June 22, promoted from the v0.142.0-alpha line). /usage credits: /usage now shows and redeems earned usage-limit reset credits, with confirmation, retry, and refreshed availability states. /plugins reorganized: remote plugins group into OpenAI Curated, Workspace, and Shared with me sections, and eligible turns can recommend and install relevant plugins. Rollout token budgets: configurable token budgets track usage across agent threads, surface remaining-budget reminders, and abort turns when exhausted. Multi-agent delegation modes: app-server clients can configure delegation as disabled, explicit-request-only, or proactive at the thread and turn level. Indexed web search: a new indexed web-search mode permits live searches while restricting direct page access to server-approved URLs. Time: Codex can receive scheduled UTC time reminders and query the current time directly, including via client-provided app-server clocks. Fixes: Linux TUI rendering after Ctrl+Z suspend/fg resume; exec-server process and stdio MCP session reconnection resilience; remote-environment path preservation across operating systems; plugin loading, installation, and manifest handling; parent-agent visibility into subagent errors; goal-first thread persistence in thread/list and thread/search. (Latest pre-release is v0.143.0-alpha.x as of June 23, still alpha and not covered.) Source: openai/codex releases and Codex Changelog. |
109 |
| 2026-06-18 | Guide v2.39 | CLI v0.141.0 stable (June 18, promoted from the v0.141.0-alpha line). Encrypted remote executors: remote executors now use authenticated, end-to-end encrypted Noise-relay channels, and TLS accepts P-521 certificate signatures for enterprise-proxy compatibility. Cross-platform remote execution preserves the executor’s native working directory and shell. Windows sandbox: execution improvements including automatic credential recovery. Performance: large tool-heavy sessions cache tool search to cut latency and memory, and prompt-image caching is bounded to 64 MiB. TUI: input prompts can auto-resolve after inactivity with a countdown timer; realtime clients gain speech-append control. (Latest pre-release is v0.142.0-alpha.x as of June 19, still alpha and not covered.) Source: openai/codex releases and Codex Changelog. | 108 |
| 2026-06-16 | Guide v2.38 | CLI v0.140.0 stable (June 15, promoted from the v0.140.0-alpha line). /usage: new views for daily, weekly, and cumulative account token activity. Session deletion: codex delete, /delete, and app-server thread/delete permanently remove a session with confirmation safeguards. /import: selectively import setup, project configuration, and recent chats from Claude Code. Unified mentions: typing @ opens one menu for files, plugins, and skills by default. Amazon Bedrock: managed API-key authentication, plus encrypted local storage for CLI and MCP OAuth credentials. /goal now preserves oversized text, large pasted blocks, and image attachments in remote app-server sessions. Removed: experimental /realtime voice controls and audio dependencies dropped from the TUI. Fixes: corrupted SQLite state databases auto-backup and rebuild from rollout data; /review no longer crashes when Esc is pressed with queued guidance; MCP reliability via transient-startup retries and disabled-server preservation; remote plugin uninstall + surfacing apps needing auth; persisted “Don’t remind me” update dismissals; non-TTY background commands interruptible with Ctrl-C while preserving output. Maintenance: Git filesystem-monitor preservation and archive-lookup acceleration for large repos. (Latest pre-release is v0.141.0-alpha.x as of June 16, still alpha and not covered.) Source: openai/codex releases and Codex Changelog. |
107 |
| 2026-06-09 | Guide v2.37 | CLI v0.139.0 stable (June 9, promoted from the v0.139.0-alpha line). Code-mode web search: code mode can call standalone web search directly (including from nested JavaScript tool calls) and receive plaintext results. MCP schemas: tool/connector input schemas now preserve oneOf/allOf constructs for better large-schema structure preservation and MCP compatibility. codex doctor: adds editor and pager environment details, redacting sensitive values in JSON output. Plugins: codex plugin marketplace list --json exposes plugin sources, plus faster cached-catalog plugin listing. Fixes: codex resume --last / codex fork --last treat trailing args as prompts (not session IDs); subagent MCP startup warnings no longer surface in the wrong thread context; image edits reference exact file paths; tilde URLs linkify fully in the TUI; thread resets (/new, /clear, /fork) preserve cloud-managed requirements/feature flags; sandbox execution consistently preserves approval decisions and enforces proxy-only networking. Maintenance: separate symbol archives with line tables; rusty_v8 bumped to 149.2.0. (Latest pre-release is v0.140.0-alpha.x as of June 9, still alpha and not covered.) Source: openai/codex releases and Codex Changelog. |
106 |
| 2026-06-08 | Guide v2.36 | CLI v0.138.0 stable (June 8, promoted from the v0.138.0-alpha line). /app desktop handoff: /app hands a running CLI session off to the desktop app on macOS and Windows. Local image paths exposed to models: the model can reference local image file paths directly. More flexible reasoning-effort selection. Plugins: enhanced automation with structured JSON output. Source: openai/codex releases and Codex Changelog. |
105 |
| 2026-06-04 | Guide v2.35 | CLI v0.137.0 stable (June 4, promoted from the alpha line first seen June 3). TUI: controls support F13 to F24 keybindings; searchable menus accept paste; a compact reasoning-only status/title item. Enterprise/admin: flows surface monthly credit limits and cloud-managed config bundles. Remote control: clients can initiate pairing and manage controller grants. Plugins: workflows gain machine-readable JSON output and cached remote catalog suggestions. Tools: hosted web and image tools available in more code-mode flows; standalone web searches can run in parallel. Multi-agent: v2 runtime improvements with cleaner follow-up handling and metadata defaults. Fixes: prompt cancellation restores draft, attachments, and collaboration mode; macOS app launch and Windows SQLite startup reliability; plugin manifest ordering and deduplication; permission requests honor environment identity. Source: openai/codex releases and Codex Changelog. | 104 |
| 2026-06-02 | Guide v2.34 | CLI v0.136.0 stable (June 1). Session archiving: /archive in the TUI plus codex archive / codex unarchive CLI commands; an archived session is protected from resume or fork until restored. TUI markdown: web links stay clickable via OSC 8 metadata, and cramped tables fall back to readable key/value records without losing link targets. App-server: codex app-server --stdio launches in stdio mode for editor/host integrations; resumes threads with initial-turns pages; shows richer MCP server status. Remote/security: remote execution setup accepts CODEX_API_KEY for approved OpenAI hosts; remote-control websockets use short-lived server tokens instead of ChatGPT access tokens; /diff is blocked from executing repository-provided Git helpers (command-safety fix); ChatGPT auth refreshes near-expiry tokens and prompts relogin on reused refresh tokens; Bedrock auth falls back to AWS_REGION/AWS_DEFAULT_REGION. Windows (alpha): codex sandbox setup --elevated provisioning path for administrators. Image generation: feature-gated standalone image-generation extension via the native image-artifact completion pipeline. Note: the previous update described v0.136.0 as alpha only; it shipped stable June 1. Source: openai/codex releases and Codex Changelog. |
103 |
| 2026-05-28 | Guide v2.33 | CLI v0.134.0 and v0.135.0. v0.134.0 (May 26): search across local conversation history; --profile becomes the primary profile selector across the CLI, TUI permissions, and sandbox flows, with legacy profile configs rejected through migration guidance; per-server environment targeting and OAuth options for streamable HTTP MCP servers; connector tool schemas keep local $ref/$defs; read-only MCP tools run concurrently when they advertise readOnlyHint; richer extension and hook context. Fixes: remote reconnects, Windows TUI rendering, workspace-specific usage-limit messages, and Node-based tools honoring the managed network proxy. v0.135.0 (May 28): codex doctor reports environment, Git, terminal, app-server, and thread inventory; /status shows remote connection details; Vim mode gains text objects; /permissions understands named permission profiles; packaged builds use the bundled patched zsh helper on macOS and Linux; the Python SDK adds Sandbox presets. Fixes: TUI tables and lists, output stability on macOS and Zellij, slash-command completion keeping draft text, Ctrl-C in older tmux and iTerm control-mode sessions, and resume flows that include non-interactive exec sessions. Source: Codex Changelog and openai/codex releases. |
102 |
| 2026-05-26 | Guide v2.31 | Release check, no change. GitHub releases still show 0.134.0-alpha.1 through 0.134.0-alpha.3 as prereleases, while 0.133.0 remains the latest stable CLI; npm latest still reports 0.133.0 with time.modified 2026-05-23T01:26:52.705Z, and a local codex --version returned codex-cli 0.133.0. No feature guidance changed from the May 25 update. |
101 |
| 2026-05-25 | Guide v2.30 | Release check and desktop app updates. GitHub releases show 0.134.0-alpha.1 through 0.134.0-alpha.3 as prereleases, while 0.133.0 remains the latest stable CLI; npm latest also reports 0.133.0 with time.modified 2026-05-23T01:26:52.705Z, and a local codex --version returned codex-cli 0.133.0. Added the May 21 Codex app updates: Appshots for frontmost Mac windows, Goal mode GA across app/IDE/CLI, in-app browser annotations/browser-use improvements, locked Computer Use, and Enterprise/Edu notes for analytics and plugin-sharing status. Corrected the “four surfaces” drift to five surfaces and refreshed the sample feature flags against the current codex features list shape. |
99 100 101 |
| 2026-05-21 | Guide v2.29 | CLI v0.133.0 stable. npm package metadata lists @openai/codex latest as 0.133.0; local codex --version remains codex-cli 0.131.0. Added v0.132.0 and v0.133.0 deltas: goals enabled by default with dedicated storage and progress tracking, foreground-ready codex remote-control, permission-profile list APIs/inheritance/managed requirements.toml/runtime refresh/Windows sandbox integration, marketplace-aware plugin discovery with installed versions and remote collections, extension lifecycle events for subagents/tools/turn metadata/async approvals, Python SDK first-class auth, richer Python TurnResult, codex exec resume --output-schema, faster TUI startup, auth-backed remote executor registration, and app-server image-fidelity preservation. |
97 98 |
| 2026-05-18 | Guide v2.28 | CLI v0.131.0 stable. OpenAI’s Codex changelog and npm package metadata now list @openai/codex latest as 0.131.0. Added codex doctor, unified @ mention search, marketplace CLI commands, version-aware plugin sharing, default-enabled plugin hooks, daemon-managed remote-control/runtime enable-disable, registry-backed remote environments, richer TUI session/status controls, responsive Markdown tables, openai-codex Python SDK updates, safer local-state startup, Windows sandbox hardening, and state/Git/auth reliability fixes. Verified locally: codex --version returned codex-cli 0.131.0; npm view @openai/codex version dist-tags.latest time.modified --json returned latest 0.131.0 with time.modified 2026-05-18T22:00:51.726Z. |
96 |
| 2026-05-15 | Guide v2.27 | Security hygiene and release check. A local codex --version returned codex-cli 0.130.0; codex features list showed hooks and plugins stable/enabled while remote_control remains under development. Stable guide guidance remains pinned to CLI v0.130.0. Added guidance that treats command output, session transcripts, shell snapshots, logs, helper scripts, and intentional secret stores as separate audit surfaces. |
91 95 |
| 2026-05-13 | Guide v2.26 | Release check. A local codex --version returned codex-cli 0.130.0; stable guide guidance remains pinned to CLI v0.130.0. The v0.131.0 train has reached alpha.9, but it remains prerelease and is not reflected in the guide title or TL;DR.94 |
91 94 |
| 2026-05-09 | Guide v2.25 | CLI v0.130.0 stable (May 8, 2026, 23:09 UTC). Added codex remote-control top-level command for headless app-server control (#21424); plugin details show bundled hooks, plugin sharing exposes link metadata, discoverability controls, and updated share settings (#21447, #21495, #21637); app-server thread pagination with unloaded / summary / full turn views (#21566); Bedrock auth via AWS aws login console-login credentials (#21623); view_image resolves through the selected environment for multi-environment sessions (#21143); live app-server config refresh on running threads (#21187); removed “research preview” wording from the codex exec startup banner (#21683); configurable OpenTelemetry trace metadata + richer review/feedback analytics (#21556, #18747, #21434, #21498); Linux sandbox startup hardening, Windows sandbox grant for desktop runtime binary cache (#21564). v0.131.0 alpha line is in progress (alpha.1, alpha.2, alpha.4 on May 9, later alpha.9 on May 12). Footnote-only: GPT-5.5 Instant rolled out to free tier on May 5, 2026.92 |
91 |
| 2026-05-08 | Guide v2.24 | Codex for Chrome (May 7, 2026). Added the Chrome extension as the fifth Codex surface alongside CLI, desktop app, IDE extension, and cloud. The extension works in parallel across tabs in the background without taking over the browser, with per-site allow-listing for control. Updated Key Takeaways and Core Interaction Surfaces to reflect five surfaces instead of four. | 90 |
| 2026-05-07 | Guide v2.23 | CLI v0.129.0 stable (May 7, 2026, 17:02 UTC). Added modal Vim editing in composer (/vim + configurable default-mode), redesigned TUI workflow picker (easier resume/fork, raw scrollback mode), in-TUI /hooks browser, theme-aware status line with optional PR + branch-change summaries, plugin management upgrade (workspace sharing, share access controls, source filtering, marketplace operations), /goal lifecycle change (experimental goals stay paused across resume unless opted back in), Linux sandbox startup hardening, Windows sandbox reliability improvements, and Bubblewrap bump to 0.11.2 with upstream security patches. Also documented the May 2026 usage limit boost (Codex Plus 25× 5-hour limit + $100/month tier doubled, both through May 31, 2026). |
89 |
| 2026-05-05 | Guide v2.22 | Synced current guidance to CLI v0.128.0. Added persisted /goal workflows, codex update, configurable TUI keymaps, explicit permission-profile guidance, and current codex plugin marketplace command syntax. Corrected stale guidance by marking js_repl removed, replacing --full-auto examples with explicit sandbox/approval flags or permissions profiles, and flagging legacy GPT-5.2/5.1 Codex models against OpenAI’s July 23, 2026 deprecation table. |
86 87 88 |
| 2026-04-24 | Guide v2.21 | GPT-5.5 launch (April 23 and 24, 2026) and CLI v0.122.0 to v0.125.0. GPT-5.5: 400K context in Codex (1M in the API), $5/$30 per MTok, 82.7% Terminal-Bench 2.0, 84.9% GDPval, 78.7% OSWorld-Verified, 98.0% Tau2-bench Telecom; ChatGPT plans April 23, API April 24; 90+ new plugin partners. v0.122.0: filesystem deny-read glob policies with managed deny-read requirements, isolated codex exec runs that ignore user config and rules, tool discovery and image generation on by default. v0.123.0: built-in amazon-bedrock provider with AWS profile support, /mcp verbose, plugin MCP loading from .mcp.json, host-specific remote_sandbox_config. v0.124.0: TUI quick reasoning controls (Alt+, and Alt+.), multiple environments per app-server session, Amazon Bedrock SigV4 signing, remote plugin marketplaces, hooks stable and configurable inline in config.toml and requirements.toml, and eligible ChatGPT plans defaulting to the Fast service tier unless opted out. v0.125.0 (April 24): app-server Unix socket transport, permission profiles that round-trip across TUI sessions and app-server APIs, model providers owning model discovery, codex exec --json reporting reasoning-token usage, and rollout tracing. Each release also carries TUI, app-server, WebSocket, and Windows sandbox fixes; see the release notes. |
83 84 85 |
| 2026-04-16 | Guide v2.20 | CLI v0.121.0 (2026-04-15). Plugin Marketplace (codex marketplace add <source>) with GitHub, git URL, local-dir, and marketplace.json source types. TUI reverse history search (Ctrl+R) and slash-command recall. Memories menu in TUI with reset/deletion; memory reset now preserves past rollouts. Phase-2 memory consolidation model upgraded to GPT-5.4. Secure devcontainer profile with Bubblewrap sandboxing (WSL2 only; WSL1 rejected). macOS sandbox: Unix socket allowlists and private DNS unblocked. danger-full-access denylist-only mode removed: full access is now binary. MCP tools registered with namespaces; supports_parallel_tool_calls flag plumbed through; sandbox-state metadata flows through MCP tool metadata. Guardian review sessions disable hooks. Context-percent indicator in status line; CLI update announcement surfaces new versions. Windows resume --last fixed for verbatim paths. codex-thread-store interface for local thread lookups. |
82 |
| 2026-04-13 | Guide v2.19 | CLI v0.119.0 to v0.120.0. Realtime voice sessions (V2 WebRTC with configurable transport). MCP Apps with resource reads, elicitations, file uploads. codex exec-server experimental. /resume by ID or name. Ctrl+O copy latest response. Hook activity improvements in TUI. SessionStart hooks distinguish /clear. |
80 81 |
| 2026-04-04 | Guide v2.18 | Updated Business pricing ($25/mo → $20 annual). Added Codex-only pay-as-you-go seats for Business/Enterprise. | 79 |
| 2026-04-01 | Guide v2.17 | Updated to CLI v0.118.0: Windows proxy-only sandbox networking (OS-level egress), ChatGPT device-code auth flow, codex exec prompt-plus-stdin, dynamic bearer token refresh for custom providers. .codex file protection on first creation. Linux bwrap PATH discovery fix. TUI app-server regressions fixed (hook replay, /copy, /resume <name>, /agent, skills picker scrolling). MCP startup robustness (longer startup window, warning display). Windows apply_patch ACL fix. Added GPT-5.4 mini to model table (400K context, 30% GPT-5.4 quota, 2x faster). Added Codex Security section (research preview, context-aware vulnerability detection). |
78 76 77 |
| 2026-03-31 | CLI 0.118.0 | Windows proxy-only sandbox networking via OS-level egress rules, ChatGPT device-code auth flow for app-server clients, codex exec prompt-plus-stdin workflow (piped input + separate prompt), dynamic bearer token fetch/refresh for custom model providers. Fixes: .codex file protection on first creation, Linux bwrap PATH discovery, TUI app-server regressions (hook notification replay, /copy, /resume <name>, /agent threads, skills picker scrolling), MCP startup robustness (longer startup window, failure warnings), Windows apply_patch redundant writable-root ACL churn. |
78 |
| 2026-03-17 | – | GPT-5.4 mini launch: 400K context, $0.75/$4.50 per MTok, 30% of GPT-5.4 quota, 2x faster. Available in Codex app, CLI, IDE extension, and web. Ideal for subagent/parallel subtask delegation. | 76 |
| 2026-03-06 | – | Codex Security research preview: context-aware application security review for Pro/Enterprise/Business/Edu via Codex web. Scanned 1.2M commits, 10,561 high-severity findings, 14 CVEs assigned in OpenSSH/GnuTLS/Chromium. | 77 |
| 2026-03-30 | Guide v2.16 | Updated to CLI v0.117.0: first-class plugins (product-scoped sync at startup, /plugins browser, install/remove), sub-agents v2 (path-based addresses, structured inter-agent messaging, agent listing), /title terminal-title picker, app-server TUI enabled by default (! shell commands, filesystem watch, remote WebSocket with bearer auth, prompt history recall across sessions), image workflow improvements (view_image returns URLs, generated images reopenable, history survives resume), legacy artifact tool removed (read_file and grep_files retired), Linux sandbox improvements for older distros, Windows restricted-token sandbox improvements. |
75 |
| 2026-03-28 | CLI 0.117.0 | First-class plugins with product-scoped sync at startup and /plugins TUI browser. Sub-agents v2: path-based addresses (/root/agent_a), structured inter-agent messaging, agent listing. /title terminal-title picker in TUI and app-server TUI. App-server clients: ! shell commands, filesystem watch, remote WebSocket with bearer auth. Image workflows: view_image returns URLs, generated images reopenable, history survives resume. Prompt history recall in app-server TUI across sessions. App-server TUI enabled by default. Legacy artifact tool removed; old read_file and grep_files retired. Linux sandbox improvements for older distros. Windows restricted-token sandbox improvements. |
75 |
| 2026-03-21 | Guide v2.15 | Updated to CLI v0.116.0: UserPromptSubmit hook event (5 total), ChatGPT device-code auth in app-server TUI, smoother plugin installation with suggestion allowlist and remote sync, realtime sessions start with recent thread context, reduced audio self-interruptions. Fixes: WebSocket first-turn delays, conversation history for remote resume/fork, Linux sandbox on symlinked checkouts/AppArmor, agent job finalization race condition. |
74 |
| 2026-03-19 | CLI 0.116.0 | UserPromptSubmit hook (block/augment prompts before execution), ChatGPT device-code auth in TUI, smoother plugin setup with allowlist/remote sync, realtime sessions with recent thread context, reduced audio self-interruptions. Fixes: WebSocket prewarm first-turn hangs, conversation history for remote resume/fork, Linux sandbox startup on symlinked checkouts/AppArmor, agent job finalization race. 77 PRs merged. |
74 |
| 2026-03-18 | Guide v2.14 | Updated to CLI v0.115.0: full-resolution image inspection via view_image and codex.emitImage, js_repl exposes codex.cwd/codex.homeDir, realtime WebSocket transcription mode, app-server v2 filesystem RPCs, Smart Approvals with guardian subagent (approvals_reviewer = "guardian_subagent"), Responses API tool-search. Bug fixes: subagent sandbox inheritance, js_repl U+2028/U+2029 hang, TUI exit stalls, profile settings preservation with codex exec --profile, MCP/elicitation improvements, HTTP/1 CONNECT proxy. |
73 |
| 2026-03-16 | CLI 0.115.0 | Full-resolution image inspection via view_image and codex.emitImage(..., detail: "original"), js_repl exposes codex.cwd and codex.homeDir with persistent tool references, realtime WebSocket sessions with transcription mode and v2 handoff, app-server v2 filesystem RPCs (reads/writes/copies/directory ops/path watching), Smart Approvals route through guardian subagent, app integrations use Responses API tool-search with fallback. Fixes: spawned subagents inherit sandbox/network rules more reliably, js_repl no longer hangs on U+2028/U+2029, TUI exit stalls resolved, profile settings preserved with codex exec --profile, MCP/elicitation flows improved, local network proxy serves CONNECT as HTTP/1. |
73 |
| 2026-03-13 | Guide v2.13 | App v26.312: customizable themes (color + font), revamped Automations with local/worktree execution and per-run reasoning levels. Added winget installation method. Added GPT-5.1 deprecation note (March 11 — removed from ChatGPT, auto-migrated to GPT-5.3/5.4). | 71 72 |
| 2026-03-12 | App v26.312 | Customizable themes with color controls and font selection in Settings, revamped Automations interface with local or worktree execution mode and custom reasoning levels, performance improvements. | 72 |
| 2026-03-11 | Guide v2.12 | Updated to CLI v0.114.0: experimental hooks engine (SessionStart, Stop events), experimental code mode, health check endpoints, disable system skills config, handoff transcript context, enhanced $ mention picker. Updated Hooks section with 4 events. Fixed Windows Desktop App section (now launched). Updated Quick Reference Card models to March 2026. | 70 |
| 2026-03-11 | CLI 0.114.0 | Experimental code mode for isolated coding workflows, experimental hooks engine with SessionStart and Stop events, WebSocket app-server health check endpoints (/readyz, /healthz), config switch to disable bundled system skills, handoffs carry realtime transcript context, enhanced $ mention picker with skill/app/plugin labels. Bug fixes: Linux tmux crash, reopened threads stuck mid-run, legacy permission handling, approval flow persistence. | 70 |
| 2026-03-10 | Guide v2.11 | Updated to CLI v0.113.0: @plugin mentions (v0.112.0), request_permissions tool, permission-profile config language, plugin marketplace expansion (v0.113.0). Added @plugin Mentions, Plugin Marketplace, Runtime Permission Requests, and Permission-Profile Config Language sections. | 68 69 |
| 2026-03-10 | CLI 0.113.0 | Built-in request_permissions tool for runtime permission requests, plugin marketplace discovery with richer metadata/install-time auth checks/uninstall endpoint, app-server streaming stdin/stdout/stderr with TTY/PTY support, permission-profile config language with split filesystem/network sandbox policies, image generation saves to CWD, web search settings with full tool config, hardened network proxy policy rejecting global wildcard domains | 69 |
| 2026-03-08 | CLI 0.112.0 | @plugin mentions to reference plugins in chat with auto-included context, new model-selection surface for TUI picker, executable permission profiles merged into per-turn sandbox policy for zsh-fork skill execution, JS REPL state handling fix (bindings persist after failed cells), SIGTERM treated like Ctrl-C for app-server websocket shutdown, Linux bubblewrap always unshares user namespace, macOS sandbox network/unix-socket handling improvements | 68 |
| 2026-03-06 | Guide v2.10 | Updated to CLI v0.111.0: GPT-5.4 as recommended model (1M context), fast mode default, plugin system (v0.110.0), js_repl dynamic imports, persistent /fast toggle, Windows installer. Codex App for Windows (v26.304). GPT-5.3-Codex-Spark via Cerebras partnership. Updated model table, flowchart, profiles. Added Plugins section. | 64 65 66 67 |
| 2026-03-05 | CLI 0.111.0 | Fast mode default, js_repl dynamic imports for local files, plugin discovery at session start, image workflow support, thread resumption preserves git context | 65 |
| 2026-03-05 | – | GPT-5.4 launch: flagship frontier model, 1M context, native computer use, available across all Codex surfaces | 64 |
| 2026-03-05 | CLI 0.110.0 | Plugin system for skills/MCP/app connectors, multi-agent approval prompts, persistent /fast toggle, workspace-scoped memory writes, Windows installer script | 65 |
| 2026-03-04 | App v26.304 | Codex App for Windows: native PowerShell support, native sandbox, skills/automations/worktrees without WSL | 66 |
| 2026-03-03 | App v26.303 | Worktree auto-cleanup toggle, Local-to-Worktree handoff support, explicit English language option | 66 |
| 2026-03-02 | Guide v2.9 | Updated to CLI v0.107.0: thread forking into sub-agents, realtime voice device selection, configurable memories with codex debug clear-memories, multimodal custom tool output. Added App v26.226: MCP shortcuts in composer, @mentions in review comments. |
62 63 |
| 2026-03-02 | CLI 0.107.0 | Thread forking into sub-agents, realtime voice sessions with microphone/speaker device selection, custom tools multimodal output, configurable memories + codex debug clear-memories, bug fixes |
62 |
| 2026-02-28 | Guide v2.8 | Updated to CLI v0.106.0: added direct install script, zsh-fork sandbox bypass fix, ~1M char input cap, Linux /dev filesystem, flexible approval controls, JS REPL promoted to /experimental (Node 22.22.0+), diff-based memory forgetting, TUI syntax highlighting + /theme, /copy, /clear, Ctrl-L, voice transcription, spawn_agents_on_csv, request_user_input in Default mode. Added v0.105.0 and v0.106.0 changelog entries. | 60 61 |
| 2026-02-26 | CLI 0.106.0 | Direct install script, js_repl promoted to /experimental with Node 22.22.0 min, request_user_input in Default mode, 5.3-codex visible in CLI model list for API users, diff-based memory forgetting with usage-aware selection, zsh-fork sandbox bypass fix, ~1M char input cap, improved TUI file-link rendering, Ctrl-C handling fix for sub-agents | 60 |
| 2026-02-25 | CLI 0.105.0 | TUI syntax-highlights fenced code blocks and diffs with /theme picker, voice transcription (spacebar dictation, experimental), spawn_agents_on_csv for multi-agent fanout with progress/ETA, /copy /clear Ctrl-L commands, flexible approval controls (extra sandbox permissions, granular rejection), clickable wrapped links, Linux /dev filesystem for sandboxed commands, js_repl error reporting improvements | 61 |
| 2026-02-24 | Guide v2.7 | Expanded Access/Pricing section: added Free/Go promotional tier, 2x rate limits for paid plans, per-plan usage limits (5-hour window), credit costs table. Added allow_login_shell config key. |
59 |
| 2026-02-22 | Guide v2.6 | Added missing config keys: features.multi_agent, features.apply_patch_freeform, features.search_tool, agents.* (multi-agent roles), model_context_window, model_auto_compact_token_limit, mcp_oauth_callback_port, mcp_oauth_credentials_store, notify. Added App v26.217 changelog entry. |
58 |
| 2026-02-19 | Guide v2.5 | Updated version references to CLI 0.104.0, added v0.103.0 and v0.104.0 changelog entries, added WS_PROXY/WSS_PROXY proxy support, distinct approval IDs, commit co-author attribution, replaced removed remote_models feature flag with command_attribution. |
— |
| 2026-02-18 | CLI 0.104.0 | WS_PROXY/WSS_PROXY WebSocket proxy support, distinct approval IDs for multi-step commands, thread archive/unarchive notifications | 57 |
| 2026-02-17 | App v26.217 | Drag-and-drop to reorder queued messages, model downgrade warning, improved fuzzy file search with attachment recovery after restart | 58 |
| 2026-02-17 | CLI 0.103.0 | Commit co-author attribution via prepare-commit-msg hook (configurable via command_attribution), richer app listing metadata/branding, removed remote_models feature flag |
56 |
| 2026-02-17 | Guide v2.4 | Updated all version references for CLI 0.102.0, added v0.102.0 changelog entry and footnote, updated sub-agents note with configurable multi-agent roles. | — |
| 2026-02-17 | CLI 0.102.0 | Unified permissions flow, structured network approvals, customizable multi-agent roles, model reroute notifications, js_repl stability fixes | 55 |
| 2026-02-16 | Guide v2.3 | Fixed migration table: hooks now exist (v0.99.0+), subagents acknowledged (max 6), model list complete. Added dedicated Hooks section (AfterAgent, AfterToolUse, migration patterns). Fixed Recipe 5 phantom commands (cloud start→cloud exec, cloud pull→apply). Fixed codex auth→codex login. Windows sandbox promoted from Experimental. Linux Bubblewrap now vendored/built-in. Added minimal reasoning effort level. Expanded memory section (v0.101.0 refinements, memory vs AGENTS.md). Updated AGENTS.md adopter list (60,000+ projects, Linux Foundation governance). Updated Copilot migration table. Fixed [EXPERIMENTAL] case consistency. Added ReadOnlyAccess policy documentation (removed in v2.87: config.toml has no such key), JS REPL Runtime section, production Deploy skill example, expanded cost section (hidden token overhead, team cost management). Tagged 20 untagged code blocks. Verified all 30 ToC anchors. Further fixes: /permissions terminology corrected (approval mode→approval policy), duplicate “Project Trust” header renamed, chat/completions deprecation language hedged, OpenTelemetry section expanded with config example, migration “harder to escape” language made precise. |
Accuracy review |
| 2026-02-16 | Guide v2.2 | Added 19 historical CLI milestone releases (v0.2.0 to v0.91.0) to changelog. Replaced bulk 24 citation with 20 individual release footnotes (35 to 54). Added 54 Apache 2.0 license citation. Added 5 citation to codex-linux-sandbox reference. Added 21 citation to MDM preference domain. Updated 6 Seatbelt note re: bot-blocking. Added note on unverifiable OpenAI blog URLs. Total footnotes: 56 (was 36). | Accuracy review |
| 2026-02-15 | Guide v2.1 | Enterprise section corrected (managed-admin-config.toml → requirements.toml with verified TOML keys), 272K context qualified as input window with citation, 6 Seatbelt citation URL added, Key Takeaways block added, wording tightened, page description trimmed, AGENTS.md adopter list expanded. | Accuracy review |
| 2026-02-14 | Guide v2 | Major revision: Codex-verified corrections to models (272K context), config keys, feature flags, pricing, enterprise config, CI/CD action, SDK API, MCP options, codex exec flags, desktop app features, migration comparisons. Removed unverifiable claims. | Accuracy review |
| 2026-02-12 | CLI 0.101.0 | Model resolution improvements, memory refinements, stability | 35 |
| 2026-02-12 | CLI 0.100.0 | Experimental JS REPL, multiple rate limits, WebSocket transport, memory commands, enhanced sandbox | 36 |
| 2026-02-12 | App v260212 | Conversation forking, floating pop-out window, Windows alpha | 17 |
| 2026-02-12 | – | GPT-5.3-Codex-Spark launch (lower-latency interactive variant) | 25 |
| 2026-02-11 | CLI 0.99.0 | Concurrent shell commands, /statusline, sortable resume picker, GIF/WebP support, shell snapshotting |
37 |
| 2026-02-06 | CLI 0.98.0 | GPT-5.3-Codex support, steer mode stable and default, model switching fixes | 38 |
| 2026-02-06 | CLI 0.97.0 | “Allow and remember” MCP approvals, live skill detection, /config diagnostics, memory plumbing |
39 |
| 2026-02-06 | CLI 0.96.0 | Async thread/compact v2, WebSocket rate limits, unified_exec non-Windows, config provenance | 40 |
| 2026-02-06 | CLI 0.95.0 | codex app command, personal skills, parallel shell tools, git hardening |
41 |
| 2026-02-05 | – | GPT-5.3-Codex launch — unified model, 25% faster, end-to-end computer operation | 26 |
| 2026-02-02 | – | Codex Desktop App launch (macOS) — multi-tasking, worktrees, automations | 16 |
| 2026-01-30 | CLI 0.94.0 | Plan mode default, personality stable, skills from .agents/skills, runtime metrics |
42 |
| 2026-01-29 | CLI 0.93.0 | SOCKS5 proxy, plan mode streaming, /apps, smart approvals default, SQLite logs |
43 |
| 2026-01-29 | CLI 0.92.0 | API v2 threads, thread filtering, MCP OAuth scopes, multi-agent collaboration | 44 |
| 2026-01-25 | CLI 0.91.0 | Reduced max sub-agents from 12 to 6 for tighter resource guardrails | 45 |
| 2026-01-21 | CLI 0.88.0 | Device-code auth fallback, collaboration modes, /fork, remote models, model_personality config |
46 |
| 2026-01-06 | CLI 0.78.0 | Ctrl+G external editor, project-aware config layering, macOS MDM config, TUI2 transcript nav, .dmg installers |
47 |
| 2025-12-18 | – | GPT-5.2-Codex launch — context compaction, refactors/migrations, cybersecurity | 27 |
| 2025-12-09 | CLI 0.66.0 | Exec policy system (TUI whitelisting, sandbox denial amendments), CRLF preservation, Linux Sigstore signing | 48 |
| 2025-11-19 | – | GPT-5.1-Codex-Max — multi-window compaction, Windows training, 30% fewer thinking tokens | 28 |
| 2025-11-19 | CLI 0.59.0 | Native compaction, tool output limit raised to 10K tokens, Windows Agent mode sandbox, credits in /status |
49 |
| 2025-10-25 | CLI 0.50.0 | /feedback diagnostics, sandbox violation risk assessment, MCP startup improvements, env var redaction |
50 |
| 2025-10-06 | – | Codex GA at DevDay — Slack integration, SDK, admin tools | 29 |
| 2025-10-06 | CLI 0.45.0 | Breaking: codex login --api-key → --with-api-key (stdin). OAuth MCP auth, parallel tool calls, pulsing dot UI |
51 |
| 2025-09-23 | – | GPT-5-Codex + IDE extension + CLI revamp — images, web search, code review | 30 |
| 2025-09-23 | CLI 0.40.0 | Default model → gpt-5-codex, auto-compaction at 220K tokens, /review commands, git undo, Windows binary support |
52 |
| 2025-06-30 | CLI 0.2.0 | First Rust binary release — pre-built binaries for macOS (aarch64/x86_64) and Linux (gnu/musl), codex-exec and codex-linux-sandbox tools |
53 |
| 2025-06 | – | Rust rewrite announced (“Codex CLI is Going Native”) | 31 |
| 2025-06-03 | – | Plus user expansion, internet access for cloud, PR updates, voice dictation | 32 |
| 2025-05-16 | – | Codex Cloud launch — cloud agent with codex-1 model, GitHub PR creation | 33 |
| 2025-04-16 | – | Codex CLI open-source launch (Apache 2.0, TypeScript, codex-mini-latest)54 | 1 |
References
Note on OpenAI blog URLs: References 16, 25 to 30, 33, 64, 66, 76, 77, 79, 83, and 259 link to
openai.com/index/blog posts, which return HTTP 403 to automated access due to Cloudflare bot protection. These URLs are valid when accessed via a standard web browser.
-
GitHub — openai/codex — Open-source repository, releases, and discussions. ↩↩↩
-
Windows sandbox and WSL, fetched November 11, 2026. Windows sandbox: “Codex supports three Windows sandbox implementations”;
mxcis “The recommended sandbox on compatible Windows devices. Uses native process isolation without administrator-approved setup, additional Windows accounts, or local firewall rules.”;elevatedis “The preferred legacy fallback when MXC is unavailable or disabled.”;unelevated“Has weaker network isolation thanelevatedand doesn’t support denied read paths.”; “Microsoft introduced MXC process isolation in Windows 11 24H2 (build 26100.9278) and 25H2 (build 26200.9278).”;allow_mxc = false“blocks both automatic MXC selection and explicitwindows.sandbox = "mxc".”; the MXC check applies “In Codex CLI 0.162.0 and later”, and “Expected output isMXC_OKand exit code0.” ChatGPT desktop app for Windows: “WSL1 was supported through Codex0.114. Starting in Codex0.115, the Linux sandbox moved tobubblewrap, so WSL1 is no longer supported.” Source at rust-v0.167.1:features/src/lib.rsregistersprefer_mxcasStage::UnderDevelopmentwithdefault_enabled: false;config/src/config_requirements.rsdefinesallow_mxcandallowed_sandbox_implementations;cli/src/sandbox_setup.rsdocuments--elevatedas “Set up the elevated Windows sandbox.”, requires one of--useror--current-user, and requires--codex-homewith--user; the Windows sandbox page gives the IT-led command ascodex sandbox setup --elevated --user 'DOMAIN\alice' --codex-home 'C:\Users\alice\.codex'. ↩↩↩↩↩ -
Codex IDE extension, fetched November 11, 2026: “Choose your IDE. VS Code and compatible editors use the Codex extension; Xcode and JetBrains IDEs provide their own integrations.” The page lists Visual Studio Code, Cursor, Windsurf, Visual Studio Code Insiders, Xcode, and JetBrains IDEs. ↩
-
Codex Cloud documentation, fetched November 25, 2026. Codex Cloud: “If the default environment is available, you can start without choosing a repository.”; “Each task has its own workspace and can keep working while your computer is asleep.”; “Inspect changed files and check results, request follow-up changes, and commit or open a pull request when you’re ready.”; “On the web or in the desktop app, start a chat and choose Work in > Cloud. On mobile, open Codex.” Cloud environments: “New task in a published environment: starts from the environment’s prepared filesystem.”; “Existing task: continues with its own saved files, including uncommitted changes and installed tools.”; “Codex can edit files, run commands, and check its work. Review changes and test results before committing or opening a pull request.”; under “Connect to services”, “Turn on Enable all public internet access for full public access. This includes the destinations covered by the package-manager and additional-domain controls, so those narrower controls are disabled.” and “To restrict public internet access, turn off Enable all public internet access, then allow package managers or add specific hosts under Additional allowed domains.”; the Package managers preset lists hosts for npm and Yarn, PyPI and PyTorch, Rust, Go, Maven and Gradle, Bazel, Buf, CPAN, Ubuntu and Debian repositories, vendor repositories, and GitHub source, archives, releases, and LFS; on network secrets, “Programs receive a placeholder; the proxy substitutes the real value for allowed destinations.”, “Substitution works for HTTPS on port 443, during setup and tasks; it doesn’t put the raw credential in a local process or file.”, and “Saving environment-owned network secrets adds their destinations to restricted internet access.”; “Restricting public internet access doesn’t disable the configured VPN.”; “Tailscale is currently the supported VPN provider.”; on Agent Security, “These requirements apply alongside the domain settings saved with each environment.”; “Each cloud task runs in a VM with these default resources”, a table that gives 2 vCPUs, 8 GiB of memory, and 8 GiB of disk for Plus and Edu Plus and 4 vCPUs, 16 GiB, and 32 GiB for Pro, Business, Enterprise, Edu, and Edu Pro; “By default, a task’s saved VM state is recoverable for up to seven days after you last start a turn or resume the task.” The page does not say whether public internet access is on or off in a new environment. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩
-
Sandbox model, fetched November 11, 2026. Sandbox: “The sandbox is the boundary that lets the agent act autonomously without giving it unrestricted access to your machine.” Agent approvals & security: “Linux uses
bwrapplusseccompby default.” ↩↩↩↩↩↩ -
macOS Seatbelt Sandbox — Community documentation for Apple’s sandbox-exec framework (no official Apple developer docs published). Note: this wiki may block automated access (HTTP 403); see also
man sandbox-execon macOS. ↩↩↩ -
Linux Landlock LSM — Kernel filesystem access control. ↩
-
Breaking Out of the Sandbox — Community sandbox configuration patterns. ↩
-
AGENTS.md, fetched November 25, 2026: “A simple, open format for guiding coding agents, used by over 60k open-source projects.”; “AGENTS.md is now stewarded by the Agentic AI Foundation under the Linux Foundation.” The tools the page lists include Codex, Cursor, GitHub Copilot, Amp, Jules, Gemini CLI, Windsurf, Aider, Zed, Factory, and RooCode. ↩↩↩↩
-
Custom Instructions with AGENTS.md: Official guide. ↩
-
Codex MCP Integration: MCP server configuration and management. ↩↩
-
Building Workflows with Agents SDK — Codex as MCP server for multi-agent orchestration. ↩
-
Agent Skills: Skills system documentation. ↩
-
Developer commands, fetched November 11, 2026: “Press Enter while Codex is working to inject new instructions into the current turn.” and “Press Tab while Codex is working to queue a follow-up prompt, slash command, or shell command for the next turn.”;
/planis listed as “Switch to plan mode and optionally send a prompt.” The older developers.openai.com/codex/cli/features address now redirects to the CLI overview page. ↩↩ -
Non-Interactive Mode:
codex execdocumentation. ↩ -
Introducing the Codex App — Desktop app launch announcement. ↩↩↩↩
-
ChatGPT desktop app documentation: Desktop app features and troubleshooting. ↩
-
Codex GitHub Action: CI/CD integration. ↩
-
Codex SDK: Codex SDK documentation (TypeScript and Python). ↩
-
Codex Pricing: Subscription and API pricing. ↩
-
Codex Configuration Reference: Enterprise requirements.toml schema and MDM distribution. ↩↩↩
-
Tips and tricks for using Codex and rate limits, a thread on the OpenAI Developer Community forum. ↩
-
feiskyer/codex-settings, fetched November 11, 2026: community-maintained profiles and skills. The README installs it as a plugin marketplace with
codex plugin marketplace add feiskyer/codex-settingsandcodex plugin add codex-settings@codex-settings. The repository holds askills/directory (among themclaude-skill,code-simplifier,deep-research,github-fix-issue, andgithub-review-pr), four profile files (chatgpt.config.toml,azure.config.toml,github-copilot.config.toml,openrouter.config.toml), andrules/default.rules; it has no prompts directory. ↩ -
Codex CLI Releases — GitHub release notes. ↩↩
-
Introducing GPT-5.3-Codex-Spark — Cerebras partnership, 1000+ tok/s. ↩↩
-
Introducing GPT-5.3-Codex — Unified model launch. ↩
-
Introducing GPT-5.2-Codex — Context compaction and large-scale changes. ↩
-
Building More with GPT-5.1-Codex-Max — Multi-window compaction. ↩
-
Codex is Now Generally Available — DevDay 2025 announcement. ↩
-
Introducing Upgrades to Codex — GPT-5-Codex + IDE extension. ↩↩
-
Codex CLI is Going Native — Rust rewrite discussion. ↩
-
Codex Updates: Internet Access and Plus Rollout — June 2025 expansion. ↩
-
Introducing Codex — Cloud agent launch. ↩↩
-
Deprecating chat/completions support in Codex — OpenAI announced chat/completions API removal for Codex, completed February 2026. ↩
-
Codex CLI v0.101.0 — Model resolution improvements, memory refinements, stability. February 12, 2026. ↩↩
-
Codex CLI v0.100.0 — Experimental JS REPL, multiple rate limits, WebSocket transport, memory commands, enhanced sandbox. February 12, 2026. ↩
-
Codex CLI v0.99.0 — Concurrent shell commands,
/statusline, sortable resume picker, GIF/WebP support, shell snapshotting. February 11, 2026. ↩↩ -
Codex CLI v0.98.0 — GPT-5.3-Codex support, steer mode stable and default, model switching fixes. February 6, 2026. ↩
-
Codex CLI v0.97.0 — “Allow and remember” MCP approvals, live skill detection,
/configdiagnostics, memory plumbing. February 6, 2026. ↩↩ -
Codex CLI v0.96.0 — Async thread/compact v2, WebSocket rate limits, unified_exec non-Windows, config provenance. February 6, 2026. ↩
-
Codex CLI v0.95.0 —
codex appcommand, personal skills, parallel shell tools, git hardening. February 6, 2026. ↩ -
Codex CLI v0.94.0 — Plan mode default, personality stable, skills from
.agents/skills, runtime metrics. January 30, 2026. ↩ -
Codex CLI v0.93.0 — SOCKS5 proxy, plan mode streaming,
/apps, smart approvals default, SQLite logs. January 29, 2026. ↩ -
Codex CLI v0.92.0 — API v2 threads, thread filtering, MCP OAuth scopes, multi-agent collaboration. January 29, 2026. ↩
-
Codex CLI v0.91.0 — Reduced max sub-agents from 12 to 6 for tighter resource guardrails. January 25, 2026. ↩
-
Codex CLI v0.88.0 — Device-code auth fallback, collaboration modes,
/fork, remote models,model_personalityconfig. January 21, 2026. ↩ -
Codex CLI v0.78.0 —
Ctrl+Gexternal editor, project-aware config layering, macOS MDM config, TUI2 transcript nav,.dmginstallers. January 6, 2026. ↩ -
Codex CLI v0.66.0 — Exec policy system, CRLF preservation on Windows, cloud exec
--branch, Linux Sigstore signing. December 9, 2025. ↩ -
Codex CLI v0.59.0 — Native compaction, tool output limit raised to 10K tokens, Windows Agent mode sandbox, credits in
/status. November 19, 2025. ↩ -
Codex CLI v0.50.0 —
/feedbackdiagnostics, sandbox violation risk assessment, MCP startup improvements, env var redaction. October 25, 2025. ↩↩ -
Codex CLI v0.45.0 — Breaking:
codex login --api-key→--with-api-key(stdin). OAuth MCP auth, parallel tool calls. October 6, 2025. ↩ -
Codex CLI v0.40.0 — Default model →
gpt-5-codex, auto-compaction at 220K tokens,/reviewcommands, git undo, Windows binary. September 23, 2025. ↩ -
Codex CLI v0.2.0 — First Rust binary release. Pre-built binaries for macOS (aarch64/x86_64) and Linux (gnu/musl),
codex-execandcodex-linux-sandboxtools. June 30, 2025. ↩ -
GitHub — openai/codex LICENSE — Apache License 2.0. Original open-source launch April 2025. ↩↩↩
-
Codex CLI v0.102.0 — Unified permissions flow, structured network approvals, customizable multi-agent roles, model reroute notifications. February 17, 2026. ↩↩
-
Codex CLI v0.103.0 — Commit co-author attribution via prepare-commit-msg hook, richer app listing metadata/branding, removed
remote_modelsfeature flag. February 17, 2026. ↩ -
Codex CLI v0.104.0, February 18, 2026: “Added
WS_PROXY/WSS_PROXYenvironment support (including lowercase variants) for websocket proxying in the network proxy. (#11784)”; also distinct approval IDs for commands and thread archive/unarchive notifications. Source at rust-v0.167.1, fetched November 11, 2026:network-proxy/src/proxy.rssets the four variables in the environment of sandboxed commands under the comment “Some websocket clients look for dedicated WS/WSS proxy environment variables instead of HTTP(S)_PROXY. Keep them aligned with the managed HTTP proxy endpoint.” Permissions, fetched the same day:proxy_urlis the “HTTP proxy listener used forHTTP_PROXY,HTTPS_PROXY, WebSocket proxy variables, and related tool proxy environment variables.” ↩↩↩↩ -
Codex Changelog: Codex App v26.217: drag-and-drop reorder, model downgrade warning, fuzzy file search improvements. Codex Config Reference: Complete configuration key reference. February 2026. ↩↩
-
Codex Pricing: Plan tiers, usage limits per 5-hour window, credit costs, and Free/Go promotional access. February 2026. ↩↩
-
Codex CLI v0.106.0 — Direct install script, js_repl promoted to /experimental (Node 22.22.0+), request_user_input in Default mode, diff-based memory forgetting, zsh-fork sandbox bypass fix, ~1M char input cap, Ctrl-C sub-agent fix. February 26, 2026. ↩↩↩↩↩↩↩↩↩↩
-
Codex CLI v0.105.0 — TUI syntax highlighting with /theme, voice transcription, spawn_agents_on_csv, /copy /clear Ctrl-L, flexible approval controls, Linux /dev filesystem, js_repl error recovery. February 25, 2026. ↩↩↩↩↩↩↩↩↩↩
-
Codex CLI v0.107.0 — Thread forking into sub-agents, realtime voice device selection, custom tools multimodal output, configurable memories with
codex debug clear-memories. March 2, 2026. ↩↩↩↩↩↩↩ -
Codex Changelog: App v26.226: MCP shortcuts in composer, @mentions in review comments, Mermaid diagram error handling. February 26, 2026. ↩↩↩
-
Introducing GPT-5.4 — Flagship frontier model combining GPT-5.3-Codex coding with stronger reasoning, native computer use, and 1M context windows. March 5, 2026. ↩↩↩↩
-
Codex CLI v0.110.0–v0.111.0 — Plugin system for skills/MCP/app connectors (v0.110.0), fast mode default, js_repl dynamic imports, plugin discovery at session start (v0.111.0). March 5, 2026. ↩↩↩↩↩↩
-
ChatGPT & Codex changelog, fetched November 11, 2026. Entry “Codex app 26.304” (2026-03-04), headed “Codex app for Windows”: “The Codex app is now available on Windows.”; “The Codex app runs natively on Windows using PowerShell and a native Windows sandbox for bounded permissions, so you can use Codex on Windows without moving your workflow into WSL, onto a virtual machine, or by deactivating the sandbox.”; “The Windows app includes the same core features as the rest of the Codex app”, naming Skills, Automations, and Worktrees. Entry “Codex app 26.303” (2026-03-03): “Added a Worktrees setting to turn automatic cleanup of Codex-managed worktrees on or off.”; “Added an explicit English option in the language menu.” The earlier announcement, Introducing the Codex app, returned 403 on November 11, 2026 and was not read again. ↩↩↩↩↩↩
-
ChatGPT & Codex changelog, fetched November 11, 2026. Entry “Introducing GPT-5.3-Codex-Spark” (2026-02-12): “Codex-Spark is available in research preview for ChatGPT Pro users in the latest Codex app, CLI, and IDE extension. This release also marks the first milestone in our partnership with Cerebras. At launch, Codex-Spark is text-only with a 128k context window.” Entry “GPT-5.3-Codex-Spark deprecated” (2026-09-14): “The research preview is no longer available in the ChatGPT desktop app, Codex CLI, or IDE extension.” ↩↩
-
Codex CLI v0.112.0 — @plugin mentions with auto-included context, TUI model-selection surface, executable permission profiles in per-turn sandbox policy, JS REPL state fix, SIGTERM handling, Linux bubblewrap user namespace, macOS sandbox improvements. March 8, 2026. ↩↩↩
-
Codex CLI v0.113.0 — Built-in request_permissions tool, plugin marketplace expansion (metadata, auth checks, uninstall), app-server streaming with TTY/PTY, permission-profile config language, image generation saves to CWD, web search tool settings, hardened network proxy policy. March 10, 2026. ↩↩↩↩
-
Codex CLI v0.114.0 — Experimental code mode, experimental hooks engine (SessionStart, Stop events), WebSocket health check endpoints, disable system skills config, handoff transcript context, enhanced $ mention picker. March 11, 2026. ↩↩↩↩
-
OpenAI Developer Changelog — March 11, 2026 — GPT-5.1 models removed from ChatGPT; existing conversations auto-continue on GPT-5.3 Instant, GPT-5.4 Thinking, or GPT-5.4 Pro. ↩↩
-
Codex Changelog: App v26.312: Customizable themes with color controls and font selection, revamped Automations interface with local/worktree execution and custom reasoning levels, performance improvements. March 12, 2026. ↩↩↩↩
-
Codex CLI v0.115.0 — Full-resolution image inspection via
view_imageandcodex.emitImage,js_replexposescodex.cwd/codex.homeDir, realtime WebSocket transcription mode, app-server v2 filesystem RPCs, Smart Approvals with guardian subagent, Responses API tool-search. Fixes: subagent sandbox inheritance, js_repl U+2028/U+2029 hang, TUI exit stalls, profile settings preservation, MCP/elicitation improvements. March 16, 2026. ↩↩↩ -
Codex CLI v0.116.0 —
UserPromptSubmithook event, ChatGPT device-code auth in app-server TUI, smoother plugin installation with suggestion allowlist and remote sync, realtime sessions with recent thread context, reduced audio self-interruptions. Fixes: WebSocket prewarm first-turn hangs, conversation history for remote resume/fork, Linux sandbox on symlinked checkouts/AppArmor, agent job finalization race. 77 PRs merged. March 19, 2026. ↩↩ -
Codex CLI v0.117.0 — First-class plugins (product-scoped sync,
/pluginsbrowser, install/remove), sub-agents v2 (path-based addresses, structured messaging, agent listing),/titleterminal-title picker, app-server TUI enabled by default with!shell commands/filesystem watch/remote WebSocket bearer auth/prompt history recall, image workflows (view_imageURLs, reopenable generated images, resume-surviving history), legacy artifact/read_file/grep_files tools removed, Linux sandbox improvements for older distros, Windows restricted-token sandbox improvements. March 28, 2026. ↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Introducing GPT-5.4 mini and nano — GPT-5.4 mini: 400K context, $0.75/$4.50 per MTok, 30% of GPT-5.4 quota, 2x faster. Available in Codex app, CLI, IDE extension, and web. March 17, 2026. ↩↩↩↩↩
-
Codex Security: now in research preview, March 6, 2026, fetched November 25, 2026: “Over the last 30 days, Codex Security scanned more than 1.2 million commits across external repositories in our beta cohort, identifying 792 critical findings and 10,561 high-severity findings.”; “scans on the same repositories over time show increasing precision, in one case cutting noise by 84% since initial rollout.”; “false positive rates on detections have fallen by more than 50% across all repositories.”; “Fourteen CVEs have been assigned”; “Starting today, Codex Security is rolling out in research preview to ChatGPT Pro, Enterprise, Business, and Edu customers via Codex web”. ↩↩↩↩↩
-
Codex CLI v0.118.0 — Windows proxy-only sandbox networking, ChatGPT device-code auth,
codex execprompt-plus-stdin, dynamic bearer tokens, .codex file protection, Linux bwrap fix, TUI app-server regressions, MCP startup robustness, Windows apply_patch fix. March 31, 2026. ↩↩ -
Codex now offers pay-as-you-go pricing for teams. OpenAI, April 2, 2026. Business annual pricing reduced to $20/seat/mo. Codex-only seats available for Business and Enterprise with token-based billing, no fixed seat fee, no rate limits. This note records the announcement as published on April 2, 2026: openai.com returns HTTP 403 to automated access, so its current text could not be checked on November 11, 2026. ↩↩↩↩
-
Codex CLI v0.119.0. “v0.119.0: Realtime voice V2 (WebRTC, configurable transport, voice selection, native TUI media), MCP Apps (resource reads, tool-call metadata, elicitations, file uploads), remote workflows (egress websocket,
--cdforwarding,codex exec-server),Ctrl+Ocopy response,/resumeby ID/name, Warp OSC 9 notifications.” April 10, 2026. ↩ -
Codex CLI v0.120.0. “v0.120.0: Realtime V2 streams background agent progress, hook activity UI improvements, SessionStart hooks distinguish
/clear, MCPoutputSchemain code mode, Windows sandbox symlink handling, tool search ordering fix.” April 11, 2026. ↩ -
Codex CLI v0.121.0. April 15, 2026. Plugin Marketplace (
codex marketplace addfor GitHub, git URL, local dir,marketplace.jsonURL) + app-server counterpart (#17087, #17717, #17756). TUI reverse history searchCtrl+Rwith slash-command recall (#17550, #17336). TUI memories menu with reset button and per-memory deletion (#17632, #17626, #17913, #17937, #17844). Phase-2 memory consolidation model upgraded to GPT-5.4 (#17384). Memory reset preserves past rollouts (#17919). Secure devcontainer profile using Bubblewrap (WSL2 only; WSL1 rejected) (#10431, #17547, #17559). macOS sandbox: Unix socket allowlists (#17654), private DNS unblocked (#17370).danger-full-accessdenylist-only mode removed (#17732). MCP Apps tool-call support (#17364), MCP tool namespaces (#17404),supports_parallel_tool_callsflag plumbing (#17667), sandbox-state metadata via MCP tool metadata (#17763, #17957), flattened deferred tool calls (#17556). Guardian review disables hooks (#17872). Context-percent indicator in status line (#17637, #17420). CLI update announcement (#17942).codex-thread-storeinterface (#17659, #17824). Windowsresume --lastverbatim-path fix (#17414). 180+ commits total. See alsorust-v0.120.0...rust-v0.121.0compare URL for full PR list. ↩↩↩↩↩↩↩↩↩↩↩↩ -
Introducing GPT-5.5. OpenAI announcement, April 23, 2026. Context window: 400K in Codex, 1M in the API (per OpenAI’s GPT-5.5-in-Codex availability page and the GPT-5.5 API model docs respectively). Pricing (API): $5 input / $30 output per MTok (2× the GPT-5.4 rate; OpenAI states ~20% effective increase after token-efficiency improvements). Benchmarks: 82.7% Terminal-Bench 2.0 (current SOTA across publicly available models), 84.9% GDPval (44 occupations), 78.7% OSWorld-Verified (real-computer operation), 98.0% Tau2-bench Telecom (no prompt tuning). Available in Codex CLI/web/desktop on April 23 for ChatGPT Plus/Pro/Business/Enterprise/Edu/Go; available in the OpenAI API on April 24. OpenAI’s stated guidance: “GPT-5.5 is now available in Codex as OpenAI’s newest frontier model for complex coding, computer use, knowledge work, and research workflows, and is the recommended choice for most Codex tasks.” See also: Introducing upgrades to Codex (April 17, 2026 — background computer use, 90+ new plugin partners including Atlassian Rovo, CircleCI, CodeRabbit, GitLab Issues, Microsoft Suite, Neon by Databricks, Remotion, Render, and Superpowers); NVIDIA blog: GPT-5.5 Powers Codex on NVIDIA Infrastructure; TechCrunch: OpenAI releases GPT-5.5. ↩↩↩↩↩
-
Codex CLI v0.122.0 and v0.123.0. v0.122.0: filesystem deny-read glob policies + managed deny-read requirements + platform sandbox enforcement + isolated
codex execruns that ignore user config or rules; tool discovery and image generation enabled by default; higher-detail image handling and original-detail metadata for MCP andjs_repl; app-server stale-prompt resolution across clients; resumed/forked threads replay token usage immediately; remote-control startup tolerates missing ChatGPT auth; MCP startup cancellation works again through app-server sessions; internal split intocodex-core-pluginsand connector reorg. v0.123.0 (April 23, 2026): built-inamazon-bedrockmodel provider with configurable AWS profile support;/mcp verbosefor full MCP server diagnostics, resources, and resource templates while keeping plain/mcpfast; plugin MCP loading accepts bothmcpServersand top-level server maps in.mcp.json; realtime handoffs deliver transcript deltas to background agents and allow explicit silent-stay; host-specificremote_sandbox_configrequirements for remote environments; refreshed bundled model metadata. Fixes:/copyafter rollback copies latest visible assistant response (not pre-rollback), follow-up text submitted while a manual shell command runs is queued (no more stuckWorkingstates), Unicode/dead-key input in VS Code WSL terminals (enhanced keyboard mode disabled there), stale proxy env vars not restored from shell snapshots,codex execinherits root-level shared flags such as sandbox and model options, leaked review prompts removed from TUI transcripts. ↩↩↩ -
Codex CLI v0.124.0 and v0.125.0. v0.124.0 (April 23, 2026): TUI quick reasoning controls (
Alt+,lower,Alt+.raise); app-server sessions manage multiple environments with per-turn environment and working-directory selection; Amazon Bedrock support for OpenAI-compatible providers (AWS SigV4 signing, AWS credential auth); remote plugin marketplaces; hooks now stable, configurable inline inconfig.tomlandrequirements.toml, observing MCP tools plusapply_patchand long-running Bash sessions; eligible ChatGPT plans default to the Fast service tier unless opted out. Fixes include Cloudflare cookies preserved across approved ChatGPT hosts, permission-mode drift across side conversations,wait_agentreturning promptly when mailbox work is queued, relative-command stdio MCP launches, and managed-config startup edge cases (unknown feature requirements warn instead of abort). v0.125.0 (April 24, 2026): app-server Unix socket transport, pagination-friendly resume and fork, sticky environments; app-server plugin management installs remote plugins and upgrades configured marketplaces; permission profiles round-trip across TUI sessions, user turns, MCP sandbox state, shell escalation, and app-server APIs; model providers own model discovery;codex exec --jsonreports reasoning-token usage; rollout tracing records tool, code-mode, session, and multi-agent relationships. Fixes include/reviewinterrupt no longer wedging the TUI, exec-server output handling, app-server respecting explicitly untrusted project config, Windows sandbox startup and background process handling, and stronger config-schema validation. ↩↩↩ -
Codex CLI v0.128.0. Released April 30, 2026. Adds persisted
/goalworkflows,codex update, configurable TUI keymaps, expanded permission profiles, plugin marketplace improvements, external agent session import, and MultiAgentV2 configuration updates; fixes resume/interruption, TUI, network, Windows sandbox, Bedrock, MCP, and plugin edge cases; deprecates--full-auto; removesjs_repl. ↩↩↩↩↩↩↩↩ -
OpenAI Codex configuration reference and Codex sandbox configure defaults. Accessed May 11, 2026. Documents
approval_policy,sandbox_mode,default_permissions,[permissions.<name>.filesystem],[permissions.<name>.network], built-in permission profiles, andon-failuredeprecation. ↩↩↩↩↩ -
OpenAI API deprecations: 2026-04-22 legacy GPT model snapshots. Accessed May 5, 2026; checked again July 24, 2026 after the shutdown date passed. Lists July 23, 2026 shutdowns for legacy Codex-related model snapshots including
gpt-5.2-codex,gpt-5.1-codex,gpt-5.1-codex-max, andgpt-5.1-codex-mini. The recommended substitutes were updated from the originalgpt-5.4/gpt-5.4-minitogpt-5.6-sol(for the codex/codex-max snapshots) andgpt-5.6-terra(for codex-mini), matching the v0.145.0 bundled-model migration. ↩↩↩↩↩↩ -
Codex CLI v0.129.0. Released May 7, 2026, 17:02 UTC. Adds modal Vim editing in the composer (
/vimcommand, configurable default-mode), redesigned TUI workflow picker (easier resume/fork, raw scrollback mode), in-TUI/hooksbrowser for discovery and toggle of lifecycle hooks, theme-aware status line with optional PR + branch-change summaries, plugin management upgrade (workspace sharing, share access controls, source filtering, marketplace operations from/plugins),/goallifecycle change (experimental goals stay paused across resume unless opted back in, which changes the prior v0.128.0 default behavior), Linux sandbox startup hardening, Windows sandbox reliability improvements, and a vendored Bubblewrap bump to 0.11.2 with upstream security patches. See also the Codex Changelog and the Codex CLI page, which in May 2026 documented the May 2026 usage limit boost (Codex Plus 25× 5-hour limit and $100/month tier doubled, both through May 31, 2026). ↩↩↩↩↩↩↩↩↩↩↩↩ -
Codex for Chrome and the May 7, 2026 entry on the Codex Changelog. Per the announcement: “With the new extension for Chrome, Codex is even better at working with apps and websites in your browser. It works in parallel across tabs in the background without taking over your browser, and you stay in control of which websites Codex can use.” The linked page was retitled “Browser extension” when Edge, Brave, Opera, and Vivaldi were added on August 25, 2026; see 136. ↩↩↩↩
-
Codex CLI v0.130.0. Released May 8, 2026, 23:09 UTC. New features:
codex remote-controltop-level command for headless app-server entrypoint (#21424); plugin details show bundled hooks, plugin sharing exposes link metadata + discoverability controls + share settings updates (#21447, #21495, #21637); app-server thread pagination with unloaded / summary / full turn item views (#21566); Bedrock auth via AWSaws loginconsole-login credentials (#21623);view_imageresolves through the selected environment for multi-environment sessions (#21143). Bug fixes: live app-server threads pick up config changes without restart (#21187); turn diffs stay accurate acrossapply_patchoperations including partial failures (#21180, #21518); thread summaries / renames / resume / fork viaThreadStore, including pathless threads (#21264, #21265, #21266); remote compaction emitsresponse.processedfor v2 streams + omitsservice_tieron API-key compact requests (#21642, #21676); Windows sandbox setup grants sandbox users access to the desktop runtime binary cache (#21564);codex execstartup banner no longer prints “research preview” wording (#21683). Chores: configurable OpenTelemetry trace metadata + richer review/feedback analytics (#21556, #18747, #21434, #21498); Cargo profiling build profile, Dependabot cooldown,cargo-shearupgrade, fully qualified GitHub Action pins (#21436, #21547, #21574, #21584, #21599); removed unused device-key APIs / extra skills roots / remote thread-store impl / string-keyed MCP tool maps (#21487, #21485, #21596, #21454). Compare URL:rust-v0.129.0...rust-v0.130.0. See also: Codex Changelog. ↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Codex Changelog. Historical May 5-9, 2026 context: GPT-5.5 Instant rolled out to the free tier, and the v0.131.0 alpha line began before the later May 18 stable v0.131.0 release documented in 96. ↩↩
-
Build plugins: Add a marketplace from the CLI. Accessed May 11, 2026, at its earlier developers.openai.com/codex/plugins/build address, and again November 11, 2026. Documents
codex plugin marketplace add, accepted marketplace source types,--ref,--sparse, and marketplace upgrade/remove commands. ↩ -
Codex CLI v0.131.0-alpha.9. Released May 12, 2026. Historical prerelease alpha line; superseded for the current guide target by the May 18 stable v0.131.0 release in 96. ↩↩
-
Author’s sanitized local Codex-harness hygiene audit on May 15, 2026. The pass separated executable source, public/private docs, generated caches, session records, shell snapshots, logs, and intentional secret stores; converted helper credentials to environment-required configuration where appropriate; redacted model-visible history for high-confidence secret shapes; and recorded remaining prevention-hook and forensic-history gaps. Exact paths, token values, detector patterns, and private workflow internals are intentionally omitted. ↩↩↩
-
Codex Changelog. May 18, 2026 entry for Codex CLI 0.131.0. New features include richer TUI session controls and status display, unified
@mention search across files/directories/plugins/skills, marketplace CLI commands, version-aware plugin sharing, default-enabled plugin hooks, daemon-managedcodex remote-control, registry-backed remote environments,openai-codexPython SDK updates, andcodex doctordiagnostics. Bug fixes cover TUI rendering/interaction, Windows sandbox behavior, managed read restrictions, app-server/local-state startup safety, Git/auth reliability, and remote cleanup. Checked May 19, 2026:codex --versionreturnedcodex-cli 0.131.0andnpm view @openai/codex version dist-tags.latest time.modified --jsonreturned latest0.131.0withtime.modified2026-05-18T22:00:51.726Z. ↩↩↩↩↩↩ -
Codex CLI v0.132.0. Released May 20, 2026. Adds first-class Python SDK authentication (API key, ChatGPT browser/device-code flows, account inspection, logout), simpler text-only turn APIs with richer
TurnResult,codex exec resume --output-schema, faster TUI startup through batched terminal probes, standard-Codex-auth remote executor registration, and app-server image-fidelity preservation. Fixes include goal continuation stop conditions for usage limits and repeated blockers, resume picker trust/paste behavior, MCP replay/elicitation routing, remote websocket keepalive, repo-relative diff paths, Windows doctor npm detection, and static MSVC runtime linking. ↩↩↩↩ -
Codex CLI v0.133.0. Released May 21, 2026. Goals are enabled by default with dedicated storage and active-turn progress tracking;
codex remote-controlgains foreground readiness/status plus daemon-stylestart/stop; permission profiles add list APIs, inheritance, managedrequirements.tomlsupport, runtime refresh, and stronger Windows sandbox integration; plugin discovery gains marketplace-aware list output, installed versions, marketplace roots, and remote collection support; extensions can observe subagent start/stop, tool execution, turn metadata, and async approval/turn processing. Checked May 21, 2026:codex --versionreturnedcodex-cli 0.131.0whilenpm view @openai/codex version dist-tags.latest time.modified --jsonreturned latest0.133.0withtime.modified2026-05-21T17:13:06.823Z. ↩↩↩↩↩↩↩ -
OpenAI ChatGPT release notes and ChatGPT Enterprise & Edu release notes. May 21, 2026 Codex entries: Appshots, Goal mode GA, in-app browser annotations, locked Computer Use, browser-use improvements, Enterprise/Edu analytics, and plugin-sharing availability notes. See also Appshots, Browser, and Computer Use docs, accessed May 25, 2026. ↩↩↩↩↩↩↩↩↩↩
-
OpenAI Codex prompting docs: Goal mode. Accessed May 25, 2026. Documents Goal mode as a persistent objective with
/goalentry points in the Codex app, IDE extension, and CLI, plusfeatures.goals/codex features enable goalsfallback guidance if the slash command does not appear. ↩↩↩ -
OpenAI Codex GitHub releases. Accessed May 26, 2026. The releases page lists
0.134.0-alpha.1,0.134.0-alpha.2, and0.134.0-alpha.3as prereleases and marks0.133.0as latest stable. Checked May 26, 2026: localcodex --versionreturnedcodex-cli 0.133.0;npm view @openai/codex version dist-tags.latest time.modified --jsonreturnedversion0.133.0,dist-tags.latest0.133.0, andtime.modified2026-05-23T01:26:52.705Z. ↩↩↩ -
Codex Changelog (OpenAI Developers) and openai/codex releases. Codex CLI 0.134.0 (May 26, 2026) added local conversation history search with case-insensitive content matching, made
--profilethe primary profile selector across CLI/TUI/sandbox flows with legacy-config migration guidance, improved MCP setup with per-server environment targeting plus OAuth for streamable HTTP servers, made connector tool schemas more reliable by preserving local$ref/$defsand compacting oversized schemas before exposure, enabled concurrent execution of read-only MCP tools advertisingreadOnlyHint, and added richer extension/hook context (conversation history for extension tools, persistent permission-profile metadata across auto-review runtime sync). Codex CLI 0.135.0 (May 28, 2026) added richercodex doctordiagnostics covering environment, Git, terminal, app-server, and thread inventory, surfaced remote connection details and server version in/statuswhen the TUI is connected over a remote, added vim mode text-object editing with improved word/line-end behavior and a configurable interrupt-turn, made/permissionsunderstand and display named permission profiles, gave packaged Codex builds the bundled patched zsh helper across supported macOS and Linux, and added friendlySandboxpresets to the Python SDK for thread and turn APIs. Bug fixes spanned TUI markdown rendering, macOS/Zellij output stability, slash-command completion draft preservation, tmux/iTerm control-modeCtrl-C,@app-mention filtering, and resume-flow cwd handling. ↩↩↩↩ -
Codex CLI v0.136.0 release notes and Codex Changelog (OpenAI Developers). Promoted to stable June 1, 2026 (17:49 UTC), following
v0.136.0-alpha.2(May 31). Adds session archiving (/archivein the TUI;codex archive/codex unarchiveCLI commands; archived sessions protected from resume/fork until restored); OSC 8 metadata keeping TUI markdown web links clickable with key/value fallback for cramped tables;codex app-server --stdiostdio-mode launch plus initial-turns-page thread resume and richer MCP server status;CODEX_API_KEYfor remote execution on approved OpenAI hosts; short-lived server tokens for remote-control websockets;codex sandbox setup --elevatedWindows admin provisioning (alpha); and a feature-gated standalone image-generation extension via the native image-artifact completion pipeline. Bug fixes: ChatGPT auth near-expiry token refresh with relogin on reused refresh tokens,/diffblocked from executing repository-provided Git helpers, sandboxed-command cleanup after interruption with deny-read rules enforced, resumed-TUI prompt-history seeding from transcripts, vim normal-mode editing, and Bedrock auth falling back toAWS_REGION/AWS_DEFAULT_REGION. Checked June 2, 2026 (PST): GitHub releases page showsrust-v0.136.0as the latest stable (non-prerelease) tag. ↩↩↩↩↩ -
Codex CLI v0.137.0 release notes and Codex Changelog (OpenAI Developers). Promoted to stable June 4, 2026 (01:17 UTC) from the v0.137.0-alpha line. TUI: F13 to F24 keybindings, paste in searchable menus, compact reasoning-only status/title item. Enterprise: monthly credit limits in admin flows and cloud-managed config bundles. Remote control: client-initiated pairing and controller-grant management. Plugins: machine-readable JSON output for plugin workflows and cached remote catalog suggestions. Hosted web/image tools in more code-mode flows with standalone web searches running in parallel; multi-agent v2 runtime improvements (cleaner follow-up, metadata defaults). Fixes: prompt cancellation restoring draft/attachments/collaboration mode, macOS app launch and Windows SQLite startup reliability, plugin manifest ordering/dedup, permission requests honoring environment identity. Checked June 4, 2026 (PST): GitHub releases shows
rust-v0.137.0as latest stable. ↩↩ -
Codex CLI v0.138.0 release notes and Codex Changelog (OpenAI Developers). Promoted to stable June 8, 2026 (23:00 UTC);
prerelease: false, marked Latest on GitHub; installnpm install -g @openai/codex@0.138.0. Adds/appdesktop handoff on macOS and Windows, local image paths exposed to models, more flexible reasoning-effort selection, and structured JSON output for plugin automation. Superseded as latest stable byrust-v0.139.0on June 9, 2026. ↩↩ -
Codex CLI v0.139.0 release notes and Codex Changelog (OpenAI Developers). Promoted to stable June 9, 2026 (20:13 UTC); marked Latest on GitHub; install
npm install -g @openai/codex@0.139.0. New features: code mode can call standalone web search directly (including from nested JavaScript tool calls) and receive plaintext results; tool/connector input schemas preserveoneOf/allOfconstructs for better large-schema structure preservation and MCP compatibility;codex doctoradds editor and pager environment details, redacting sensitive values in JSON; plugin marketplace automation exposes sources incodex plugin marketplace list --jsonplus faster cached-catalog plugin listing. Bug fixes:codex resume --last/codex fork --lasttreat trailing args as prompts rather than session IDs; subagent MCP startup warnings no longer surface in the wrong thread context; image edits reference exact file paths; tilde URLs linkify fully in the TUI; thread resets (/new,/clear,/fork) preserve cloud-managed requirements/feature flags; sandbox execution consistently preserves approval decisions and enforces proxy-only networking. Maintenance: separate symbol archives with line tables;rusty_v8bumped to 149.2.0. The latest pre-release as of June 9, 2026 is therust-v0.140.0-alphaline (prerelease); 0.140.0 is still in alpha and is not tracked by this guide, which follows stable. Checked June 9, 2026: GitHub releases and the OpenAI Codex changelog confirmrust-v0.139.0as the latest stable. ↩↩↩↩↩ -
Codex CLI v0.140.0 release notes and Codex Changelog (OpenAI Developers). Promoted to stable June 15, 2026 (from the v0.140.0-alpha line). New features:
/usageviews for daily, weekly, and cumulative account token activity;/goalpreserves oversized text, large pasted blocks, and image attachments in remote app-server sessions; session deletion viacodex delete,/delete, and app-serverthread/deletewith confirmation safeguards;/importfor selectively importing setup, project configuration, and recent chats from Claude Code; typing@opens a unified mentions menu for files, plugins, and skills by default; managed Amazon Bedrock API-key authentication and encrypted local storage for CLI and MCP OAuth credentials. Bug fixes: corrupted SQLite state databases auto-backup and rebuild from rollout data;/reviewno longer crashes when Esc is pressed with queued guidance; MCP reliability via transient startup-failure retries and disabled-server preservation; fixed remote plugin uninstall requests and surfaced apps requiring authentication; persisted “Don’t remind me” update dismissals and cleared stale running-hook indicators; non-TTY background commands interruptible with Ctrl-C while preserving output. Performance/maintenance: Git filesystem-monitor preservation and archive-lookup acceleration for large repos; removed experimental/realtimevoice controls and audio dependencies from the TUI. The latest pre-release as of June 16, 2026 is therust-v0.141.0-alphaline (prerelease); 0.141.0 is still alpha and is not tracked by this guide, which follows stable. Checked June 16, 2026: GitHub releases and the OpenAI Codex changelog confirmrust-v0.140.0as the latest stable. ↩↩↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.141.0 release notes and Codex Changelog (OpenAI Developers). Promoted to stable June 18, 2026 (from the v0.141.0-alpha line). Security/infrastructure: remote executors use authenticated, end-to-end encrypted Noise-relay channels; TLS supports P-521 certificate signatures for enterprise proxy compatibility. Cross-platform: remote execution preserves executor-native working directories and shells; Windows sandbox execution improvements including automatic credential recovery. Performance: reduced latency and memory in large, tool-heavy sessions by caching tool search; bounded prompt-image caching to 64 MiB. UI: TUI input prompts can auto-resolve after inactivity with a countdown timer; realtime clients gain speech-append control. The latest pre-release as of June 19, 2026 is the
rust-v0.142.0-alphaline (prerelease); 0.142.0 is still alpha and not tracked by this guide, which follows stable. Checked June 18, 2026: GitHub releases and the OpenAI Codex changelog confirmrust-v0.141.0as the latest stable. ↩↩ -
Codex CLI v0.142.0 release notes and Codex Changelog (OpenAI Developers). Promoted to stable June 22, 2026 (from the v0.142.0-alpha line). New features:
/usagecan show and redeem earned usage-limit reset credits, with confirmation, retry, and refreshed availability states;/pluginsorganizes remote plugins into OpenAI Curated, Workspace, and Shared with me sections, while eligible turns can recommend and install relevant plugins; configurable rollout token budgets track usage across agent threads, provide remaining-budget reminders, and abort turns when exhausted; app-server clients can configure multi-agent delegation as disabled, explicit-request-only, or proactive at the thread and turn level; an indexed web-search mode permits live searches while restricting direct page access to server-approved URLs; Codex can receive scheduled UTC time reminders and query the current time directly, including through client-provided app-server clocks. Bug fixes: Linux TUI rendering after Ctrl+Z suspend/fg resume; exec-server process and stdio MCP session reconnection resilience; remote-environment path preservation across operating systems; plugin loading, installation, and manifest handling improvements; parent-agent visibility into subagent errors; goal-first thread persistence inthread/listandthread/search. The latest pre-release as of June 23, 2026 is therust-v0.143.0-alphaline (prerelease); 0.143.0 is still alpha and not tracked by this guide, which follows stable. Checked June 23, 2026: GitHub releases and the OpenAI Codex changelog confirmrust-v0.142.0as the latest stable. ↩↩↩ -
Codex CLI v0.142.2 release notes and v0.142.5 release notes. v0.142.2 (June 25, 2026): MCP tools use tool search by default when supported, improving tool discovery while preserving compatibility with older models and providers; macOS authentication clients honor system proxy, PAC, and WPAD settings when
respect_system_proxyis enabled; plugins provide dedicated dark-mode logos through local manifests and remote catalogs; apps can display richer safety-buffering UI using server-provided visibility and faster-model metadata. Fixes: remote plugin catalogs return curated featured-plugin rankings; expired Amazon Bedrock credentials produce actionable recovery guidance; remote stdio MCP servers accept absolute working directories in the remote platform’s path format; remote HTTP(S) image inputs return clear model-visible validation errors (inline data URLs and local images still supported); PowerShell commands containing executable AST regions the safety classifier cannot inspect now require approval; Code Mode warns when the selected model lacks required metadata; bundled OpenSSL and esbuild updated to patched releases. v0.142.3 (June 26) and v0.142.4 (June 29): maintenance-only, no user-facing changes. v0.142.5 (July 1, 2026): prevented full Responses WebSocket request payloads from being written to trace logs. Checked July 1, 2026 (PST): GitHub releases confirmrust-v0.142.5as the latest stable; thev0.143.0-alphaline remains prerelease and is not tracked by this guide. ↩↩↩↩ -
Codex CLI v0.143.0 release notes, July 8, 2026 (promoted to stable from the v0.143.0-alpha line). New features: remote plugins are enabled by default, with richer catalog rows, npm marketplace sources, and visible remote/local versions; authentication and Responses API traffic can route through macOS and Windows system proxies, including PAC and WPAD configurations;
codex remote-control pairgenerates a manual pairing code from a running daemon; Amazon Bedrock adds GPT-5.6 Sol, Terra, and Luna models with first-classmaxreasoning-effort support; MCP tools use tool search by default and ChatGPT-hosted MCP servers can explicitly use session authentication; app-server clients can inspect environments, list descendant threads, and fork history through a specific turn. Fixes/chores: Windows ConPTY input handling and sandbox credential retry edge cases; recovery when exec servers are temporarily offline; reduced installer failures from GitHub API rate limits; security dependency bumps (OpenSSL, Hono, fast-uri, quick-xml, crossbeam-epoch). Checked July 8, 2026 (PST): GitHub releases confirmrust-v0.143.0as the latest stable release, superseding the v0.142.x patch line. ↩↩↩↩↩↩↩ -
Codex CLI v0.144.0 release notes, July 9, 2026 (promoted to stable from the v0.144.0-alpha line). New features: usage-limit reset credits show their type and expiration with a redemption picker; a
writesapp-approval mode allows declared read-only app actions while prompting for writes; MCP tools request authentication interactively without an experimental opt-in; app-server hosts can provide Codex authentication at runtime and redirect successful logins to a hosted page; selecting Ultra reasoning warns when high multi-agent concurrency could increase usage quickly; global pnpm installs are detected so diagnostics and updates use the correct package manager. Fixes: resumed ChatGPT threads recover when compaction references a retired model by retrying on the currently selected model; Code Mode crashes on Intel macOS release binaries; Windows sandbox sessions can delete files in writable roots; pasted terminal control sequences no longer corrupt TUI rendering; long-running app sessions refresh expiredcodex_appsauth; Responses WebSockets keep the low-latency transport while respecting system proxies and custom CAs. Docs: device-code login warnings explain how to recognize and stop phishing attempts. Chores: faster plugin skill-loading on remote executors; faster/reviewbranch picker in large repos; Bedrock model names clearly identify their GPT-5.6 family and variant. Checked July 9, 2026 (PST): GitHub releases confirmrust-v0.144.0as the latest stable release. ↩↩↩↩ -
openai/codex PR #26210: Encrypt multi-agent v2 message payloads, merged June 5, 2026, shipped in CLI v0.138.0 (June 8). Marks the v2 message parameter as encrypted for
spawn_agent,send_message, andfollowup_task; stores inter-agent task text inInterAgentCommunication.encrypted_contentwith empty plaintext content. The Responses API encrypts on the parent model’s tool call and decrypts server-side for the receiving model. Companion: PR #27830: Support plaintext agent messages, merged June 12, 2026 — adds plaintextinput_textsupport toagent_messagefor Codex-generated child-completion notifications only (delegation instructions remain encrypted); PR #28368 renders typed envelopes for multi-agent v2 messages in the TUI. ↩↩↩↩ -
openai/codex issue #28058: Regression: encrypted MultiAgentV2 messages remove readable task audit trail, open on November 25, 2026, with 45 comments. Custom-provider failure mode: issue #27548 (“Function ‘functions.spawn_agent’ declares encrypted parameters but is not configured for encrypted tool use”) and issue #26753 (encrypted spawn_agent schema returns 400 on models not configured for encrypted tool use). ↩↩↩
-
Codex CLI v0.144.5 release notes, July 16, 2026: “Improved dangerous-command detection, including more forced
rmforms, and provides clearer rejection reasons when commands are denied.” v0.144.4 (July 14) noted “no user-facing changes.” Checked July 16, 2026 (PST): GitHub releases confirmrust-v0.144.5as the latest stable; the v0.145.0 line remains alpha. ↩↩ -
Codex CLI v0.144.6 release notes, July 18, 2026 (stable patch): “Refreshed bundled instructions for GPT-5.6 Sol, Terra, and Luna, and corrected their context windows to 272,000 tokens.” ↩↩↩↩
-
Codex CLI v0.145.0 release notes, July 21, 2026 (promoted to stable from the v0.145.0-alpha line). New features: experimental paginated thread history with efficient resume, search, persisted names, sub-agent support, and memories;
/importexpanded to migrate Cursor and Claude Code settings, MCP servers, plugins, sessions, commands, and project-scoped memories; experimental Amazon Bedrock login with custom endpoint and authentication support, and GPT-5.6 Sol as the default Bedrock model; audio inputs and tool outputs including common local audio formats, plus streaming realtime V3 conversations; the opt-in multi-agent v2 experience stabilized with configurable sub-agent models, reasoning levels, concurrency, restored roles, and improved agent navigation; secure, clickable inline visualization links in the terminal UI. Fixes: editing an earlier prompt or retrying a safety-buffered turn creates a contextual branch preserving the original conversation, attachments, and mention bindings; incremental Markdown rendering with fewer redraws, caching, and bounded command output for long conversations; MCP startup timeouts, non-blocking OAuth discovery, serialized token refreshes, and safe tool-catalog reuse; Windows native exec-server sandboxing, network-proxy enforcement, hidden helper consoles, and correctly quoted hook commands; better forced-rmdetection, consistent full-access confirmation, and preserved rejection reasons across tools. Docs/chores: bundled OpenAI Docs skill updated with current GPT-5.6 model resolution, prompting, and migration guidance; bundled GPT-5.4 selections and internal uses migrated to the corresponding GPT-5.6 Terra and Luna variants; concurrent skill/plugin discovery and more efficient remote compaction; packaged ripgrep updated to 15.2.0. Checked July 21, 2026 (PST): GitHub releases confirmrust-v0.145.0as the latest stable release. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
ChatGPT Desktop 26.715 release notes, July 23, 2026 (Codex-tagged entry in the official ChatGPT changelog). Multi-folder local projects: “Local projects in the ChatGPT desktop app can now include multiple related folders. From a project’s menu, select Edit project to add folders and choose the primary folder.” Discovery semantics, verbatim: “New chats, Git operations, and automatic discovery of AGENTS.md, skills, and config.toml use the primary folder. Secondary folders remain available for file search, reading, and editing.” ChatGPT Voice: “Powered by GPT-Live, ChatGPT Voice lets you talk through work and coordinate tasks in Chat, Work, and Codex in the ChatGPT desktop app.” Availability is Plus, Pro, Business, Edu, and Enterprise, on desktop and through Remote on iOS; on macOS you can “turn on Screen context to share an appshot of your frontmost window.” Both are desktop-app changes; neither alters CLI behavior. ↩↩↩↩
-
ChatGPT for iOS 1.2026.195 release notes, July 20, 2026 (Codex-tagged entry in the official ChatGPT changelog): “Added support for interactive forms in Codex tasks”; “Added support for rendering Mermaid diagrams inline in task transcripts”; recovery of unsent prompts across tasks, hosts, and workspaces; goals that resume blocked or usage-limited runs; task lists sorted by recent activity with unavailable hosts surfaced at creation time; and improved Remote onboarding, composer guidance, and iPad navigation. Recorded for completeness — this guide documents Codex’s five surfaces (CLI, desktop, IDE, cloud, Chrome) and does not cover the iOS app. ↩
-
feat(cli): add codex doctor diagnostics, openai/codex PR #22336. Primary source for thecodex doctorsurface as shipped: the flag set (--summarycompact output,--jsonredacted structured output,--allto expand truncated lists,--no-color), the stable report sections (Notes, Environment, Configuration, Updates, Connectivity, Background Server), the per-check status markers (✓ok,✗fail,⚠warn,○idle), and the design intent that detailed human output is the default because the command is normally run when the user already needs context. The JSON variant keys checks by stable identifier for automated processing. The repository’s CLI issue template asks reporters to pastecodex doctor --jsonoutput. Verified 2026-07-28. ↩↩↩↩ -
Codex CLI v0.146.0 release notes. Promoted to stable 2026-07-29 (01:42 UTC) after fourteen alpha builds; the prior guide entry recorded v0.146.0 as alpha-only. New features: session naming via
/newand/clear, thread pinning, and side conversations that stay open (#34605, #34840, #35011); Agent Plugins manifests, workspace plugin publishing, and Amazon Bedrock and Claude Code marketplaces (#35105, #35254, #34931, #34979); thread forking with paginated history, including temporary forks absent from thread listings (#35220, #35251); app-server connections to remote Code Mode hosts over WebSocket (#35078, #35098); standalone web search for compatible custom model providers (#34846); executor-provided skill discovery and resource reads (#35184, #35198). Fixes: configured proxies honored across authentication, plugin downloads, MCP authorization, remote execution, WebSockets, redirects, and LM Studio (#34479, #34509, #34655, #34678, #35023, #35056, #35239); more skills retained under tight context budgets with a warning when catalogs must be truncated (#34732, #34738, #34997). Chores include enterprise-plan recognition with administrator controls for in-app updates (#35238, #35537) and release artifacts served from OpenAI-hosted infrastructure with GitHub fallback (#34505, #34508, #34729, #34910). Verified against the GitHub release feed 2026-07-29. ↩↩↩↩↩↩↩↩↩↩↩↩ -
openai/codex release rust-v0.146.1, August 5, 2026. “Apply safer automatic-review defaults for cyber-capable models and explain permission changes in the terminal interface. (#37057)” Checked August 5, 2026 (PST): GitHub releases list rust-v0.146.1 (published 2026-08-05T15:55:06Z) as the newest non-prerelease tag; newer 0.147.0 tags are alphas. ↩↩
-
openai/codex release rust-v0.147.0, August 7, 2026. New features: portable Agent Plugins with search across local, personal, workspace, and remote catalogs; persistent manually ordered conversation sections with incremental transcript browsing;
--approve-for-meautomatically reviewed approvals; Cursor-managed skill import and duplicate-free synchronization of imported Claude and Cursor conversations; opt-in MCP 2026-07-28 protocol (paginated discovery, multi-round requests, non-blocking server startup); cached web search and remote conversation compaction on Amazon Bedrock. Chores: “Remove the deprecatedcodex exec --full-autoflag; use--sandbox workspace-writeinstead.” Checked August 7, 2026 (PST): GitHub releases list rust-v0.147.0 (published 2026-08-07T01:41:49Z) as the newest non-prerelease tag. ↩↩↩↩↩↩↩↩↩ -
Codex models documentation; the older developers.openai.com/codex/models address redirects there. This note records the page as read on August 10, 2026; it has changed since, and 229 and 233 hold the November 11, 2026 wording. It stated: “Start with the default Power setting, which uses
gpt-5.6-solwith medium reasoning,” adjustable toward Smarter (deeper reasoning) or Faster (lower cost); it listed GPT-5.6 Sol (flagship), Terra (everyday), and Luna (fast/affordable) as available across CLI, web, IDE, cloud, and API; GPT-5.5 as previous generation; “GPT-5.4 and GPT-5.4 mini retire from Codex on August 31, 2026”; and GPT-5.3 Codex as already deprecated in Codex when signed in with ChatGPT (still API-available). ↩ -
ChatGPT pricing. Accessed August 10, 2026. Plan prices: Free $0, Go $8/mo, Plus $20/mo, Pro from $100/mo (5x tier) or $200/mo (20x tier), Business $20/user/mo billed annually ($25 monthly), Enterprise/Edu custom. Five-hour usage limits are published per model and plan tier (e.g. Plus: GPT-5.6 Sol 10-100 messages, Luna 250-2,000; Pro 20x: Sol 200-2,000, Luna 5,000-40,000). Credit rate card: GPT-5.6 Sol 125 credits per 1M input tokens (12.5 cached, 750 output), Terra 50 (5 cached, 300 output), Luna 5 (0.5 cached, 30 output); “GPT-5.6 usage averages 5-40 credits per message”; fast mode consumes credits at a higher rate on supported models. Re-checked August 24, 2026: the rate card now lists GPT-5.6 Sol at 100 credits per 1M input (10 cached, 500 output), the August 21 promotional reduction (130); Terra and Luna unchanged. The November 10, 2026 fetch of the same page is in 203: the page no longer carries the 5x and 20x Pro bands or the per-message credit average quoted here. ↩↩↩↩
-
Agent Plugins official site (“A portable package format for reusable components that extend AI agents”) and the normative specification v1.0.0, released August 6, 2026; accessed August 12, 2026. Package structure per the normative spec: required
plugin.json(closed schema, ten permitted top-level fields, “Clients MUST report and ignore each unknown field”); optionalskills/(“Each immediate child directory containing a path named exactlySKILL.mdthat resolves to a regular file is treated as one skill”); optionalmcp.json(a client must support at least one ofstdioandstreamable-http;sseis optional); reverse-domain client namespaces (“A client MUST ignore manifest entries for namespaces it does not implement”). Commands, hooks, agents, rules, and LSP servers are outside the v1 portable format. Development: Vercel’s announcement (initiated the proposal; developed with Amazon, Anysphere, GitHub, Microsoft, OpenAI); the repo’sMAINTAINERS.mdlists Amazon, Cursor, Microsoft, OpenAI, Vercel; Google announced it is joining the core maintainers. Launch clients: VS Code, Cursor, GitHub Copilot, ChatGPT & Codex, Kiro. Anthropic, creator of Agent Skills and MCP, is not among the maintainers. Codex-side support: manifests and workspace publishing in v0.146.0, portable install/search in v0.147.0. ↩↩↩↩↩↩↩ -
Codex CLI v0.148.0 release notes (rust-v0.148.0, published August 18, 2026; verified via the GitHub API — prerelease: false). New features verbatim: “Export complete TUI conversations to Markdown with
/export, either to the clipboard or a new file”; “Fork sessions withcodex exec fork, and archive or restore sessions from the TUI resume picker”; “View estimated thread credits or cost in/status, status lines, and terminal titles for eligible workspaces”; “Use Amazon Bedrock Runtime as a built-in provider with AWS profile, region, and GPT-5.6 routing support”; “Hooks can now run commands asynchronously and invoke MCP tools”; “Sandbox restrictions now fail closed for denied or unreadable paths across Linux and Windows.” 0.149.0-alpha items derived from the rust-v0.148.0…rust-v0.149.0-alpha.7 compare (commit titles; npm dist-tag alpha = 0.149.0-alpha.7 on August 20, 2026) — pre-release, subject to change. ↩↩↩↩↩↩↩↩ -
Codex changelog (developers.openai.com/codex/changelog 308-redirects here), entry dated August 19, 2026: “GitLab support is available in beta on all ChatGPT plans” — connect GitLab projects, create environments, start tasks from issues/MRs, request reviews; GitLab 19.0 or later for Self-Managed. Accessed August 20, 2026. ↩↩
-
Codex CLI v0.149.0 release notes (rust-v0.149.0, published August 20, 2026; verified via the GitHub API, prerelease: false) and v0.149.1 (August 24, 2026; npm
latest= 0.149.1, body is a bare compare link; its five commits are2b66d2ed“Allow exec callers to classify new threads (#40161)”, which addscodex exec --thread-source, plus remote-session image-compaction and memory-consolidation backports; see 135). v0.149.0 new features verbatim: “Added an interactivecodex agentsdashboard for searching, starting, opening, renaming, and stopping tasks, with configurable shortcuts”; “Added/cd,/pwd, and/cwdcommands for managing the working directory in TUI sessions”; “Addedcodex queuefor sending messages to existing local or remote sessions”; “Expanded Vim editing with character replacement and more change motions such ascw,c$, andcc”; “codex doctornow diagnoses endpoint protection, network/proxy failures, desktop app state, and update connectivity”; “SDK users can now pass exact CLI config overrides and selectmaxorultrareasoning effort.” (the docs changelog entry for 0.149.0, read November 11, 2026, attributes that line to #38817 and #39662, and lists “#39662 Add max and ultra reasoning efforts to the SDKs”) Theuntrustedretirement is PR #39630 (“Retire the untrusted approval policy”) in the release’s full changelog. 0.150.0-alpha themes from the rust-v0.149.0…rust-v0.150.0-alpha.7 compare (pre-release, subject to change). ↩↩↩↩↩↩↩↩↩ -
GPT-5.6 Sol promotional pricing, August 21, 2026. OpenAI Developers on X, verbatim: “we’re reducing API prices by over 20% for the next 3 months as we make it more efficient to run, while the credits you buy will go further in Codex on token-based plans and the usage included in your subscription stays the same.” The community announcement adds: “Sol’s promotional pricing is available at least through November 21, 2026.” Credit-rate effect verified on the published rate card August 24, 2026: Sol 100 credits per 1M input tokens (10 cached, 500 output), previously 125 (12.5 cached, 750 output). ↩↩↩↩
-
Codex advanced configuration — Profiles (learn.chatgpt.com/docs/config-file/config-advanced.md), accessed August 25, 2026. Verbatim: “When you pass
--profile profile-name, Codex loads~/.codex/config.toml, then overlays~/.codex/profile-name.config.toml”; “Use top-level config keys in the profile file; don’t nest them under[profiles.profile-name]”; “In Codex 0.134.0 and later,--profileno longer reads[profiles.profile-name]fromconfig.toml, and the top-levelprofile = \"profile-name\"selector is no longer supported. Move legacy profile settings into~/.codex/profile-name.config.toml, then remove the matching[profiles.profile-name]table andprofile = \"profile-name\"selector fromconfig.toml.” A profile file “only needs the values that differ from your base config.” ↩↩↩↩↩↩ -
Agent approvals & security, accessed August 25, 2026. Defines the two layers (the sandbox constrains what a command can touch; the approval policy decides when Codex asks before a command leaves the sandbox or uses the network) and lists the combination presets. The document does not describe
danger-full-access+on-requestas prompting per command. Thecodex execflag surface (-s/--sandbox,-p/--profile,--approve-for-me,--dangerously-bypass-approvals-and-sandbox,-c) percodex exec --helpon 0.149.1. ↩↩↩ -
Hooks, accessed August 26 and November 11, 2026, and
codex-rs/hooks/src/lib.rsat tag rust-v0.149.1:pub const HOOK_EVENT_NAMES: [&str; 11] = ["PreToolUse", "PermissionRequest", "PostToolUse", "PreCompact", "PostCompact", "SessionStart", "SessionEnd", "UserPromptSubmit", "SubagentStart", "SubagentStop", "Stop"]. The source at that tag has noAfterToolUse;AfterAgentappears only in the legacynotifypayload code. Docs: “Multiple matching command hooks for the same event are launched concurrently, so one hook can’t prevent another matching hook from starting.” “Non-managed hooks must be reviewed and trusted before they run.” “Codex records trust against the hook’s current hash, so new or changed hooks are marked for review and skipped until trusted.” “Managed hooks from system, MDM, cloud, orrequirements.tomlsources are marked as managed, trusted by policy, and can’t be disabled from the user hook browser.” “Project-local hooks load only when the project.codex/layer is trusted.” Hooks live inhooks.json(~/.codex/hooks.json,<repo>/.codex/hooks.json, pluginhooks/hooks.json) or as “Equivalent inline TOML inconfig.toml”. “commandandmcp_toolhandlers are supported.promptandagenthandlers are parsed but skipped.” “Iftimeoutis omitted, Codex uses600seconds for most hooks.” “SessionEndandInterruptuse1second by default and support up to3seconds.”PreToolUse“can intercept Bash, file edits performed throughapply_patch, MCP tool calls, and other local function tools”.PostToolUse“can’t undo side effects from a tool that already ran”. “Treat tool hooks as a useful guardrail, not a complete enforcement boundary.” It also documents/hooks,--dangerously-bypass-hook-trust,async, the matcher field for each event, and theStopoutput format. As fetched November 25, 2026, the matcher table givesSessionStartthe start source, “Values arestartup,resume,clear,compact, andfork”, and the page says “A forked thread usessource: "fork".”;codex-rs/hooks/src/events/session_start.rsat rust-v0.172.0 definesenum SessionStartSource { Startup, Resume, Clear, Compact, Fork }. ↩↩↩↩↩↩↩↩↩↩↩↩↩ -
ChatGPT & Codex changelog, entry dated August 24, 2026, “Codex MCP server command deprecated”, fetched November 11, 2026: “The
codex mcp-servercommand is now deprecated. Use the Codex app server instead.” The entry now ends with an update dated September 5, 2026 saying the command and the standalone binary have been removed; as read on August 26, 2026 it also pointed Claude Code users to the Codex plugin for Claude Code. PR #39657 “Warn when launching the deprecated MCP server”, merged August 20, 2026 and contained in rust-v0.149.0 (its merge commit compares asbehindthe tag via the GitHub API): “Print a warning to standard error whencodex mcp-serveris invoked, noting that the command is deprecated and will be removed in a future release. The server continues to launch after the warning.” The string incodex-rs/cli/src/main.rsat rust-v0.149.1:warning: `codex mcp-server` is deprecated and will be removed in a future release.The openai/codex-plugin-cc repository description via the GitHub API: “Use Codex from Claude Code to review code or delegate tasks.” Codex App Server (learn.chatgpt.com/docs/app-server.md), accessed August 26 and November 11, 2026: “Codex app-server is the interface Codex uses to power rich clients (for example, the Codex VS Code extension). Use it when you want a deep integration inside your own product: authentication, conversation history, approvals, and streamed agent events.” ↩↩↩↩ -
PR #40161 “Allow exec callers to classify new threads”, merged August 23, 2026, verbatim: “Add a global
codex exec --thread-source <SOURCE>option and propagate it to newly created and forked threads.” “Default the source touserwhen the option is omitted.” “Expose the classification asthreadSourcein the TypeScript SDK. It applies when a thread is first created and does not override the source when resuming an existing thread.” Carried into v0.149.1 as commit2b66d2ed, one of the five commits in the rust-v0.149.0…rust-v0.149.1 compare (the others: “Budget retained images during remote compaction (#40280)”, “Identify detached memory requests as memory consolidation (#40186)”, “Adapt image compaction backport for pre-annotation releases”, and an untitled release commit). Source at rust-v0.149.1:codex-rs/exec/src/cli.rsdeclares#[arg(long = "thread-source", value_name = "SOURCE", global = true)] pub thread_source: Option<ThreadSource>with the doc comment “Source classification for newly created or forked threads.”;codex-rs/protocol/src/protocol.rsdefinesThreadSource { User, Subagent, Feature(String), MemoryConsolidation }serialized asuser,subagent, the feature name, andmemory_consolidation;sdk/typescript/src/exec.tsforwardsthreadSourceas--thread-sourceonly when nothreadIdis set. Theexeccrate at the same tag has noask_for_approvalfield, andcodex exec --helpon the locally installed 0.147.0 lists-s/--sandbox,-p/--profile,--approve-for-me,--dangerously-bypass-approvals-and-sandbox,--dangerously-bypass-hook-trust, and-cbut no--ask-for-approval. ↩↩↩↩ -
ChatGPT & Codex changelog, entry dated August 25, 2026, “Browser extensions, site tools, and cloud sign-in”, verbatim: “More browsers: Use the ChatGPT browser extension in Microsoft Edge, Brave, Opera, and Vivaldi, as well as Chrome. Set up your browser in Settings > Computer Use in the ChatGPT desktop app. All five support tab mentions and browser control; Opera doesn’t support side chat.” “Site tools (WebMCP): In the desktop app’s built-in browser, ChatGPT Work and Codex can use tools provided by a website to work with the page. Use GPT-5.6 Sol or GPT-5.6 Terra and update to the latest desktop app. Site tools aren’t available with GPT-5.6 Luna or in Enterprise or Edu workspaces.” The extension page (learn.chatgpt.com/docs/chrome-extension, accessed August 26, 2026) is now titled “Browser extension”: “Use the ChatGPT browser extension to work in Google Chrome, Microsoft Edge, Brave, Opera, or Vivaldi from the ChatGPT desktop app.” “All five browsers support tab mentions and browser control from the desktop app. Chrome, Edge, Brave, and Vivaldi also support side chat. Opera doesn’t support side chat; start its tasks in the desktop app instead.” ↩↩↩↩↩↩
-
ChatGPT & Codex changelog, entry dated August 20, 2026, “Codex and ChatGPT updates”, verbatim: “Shared thread snapshots: On all Codex plans, share a read-only snapshot of a local Codex thread from the ChatGPT desktop app for macOS. The snapshot doesn’t update when the original thread changes. Personal-account links can be opened by anyone with the link; workspace-account links are limited to members of the originating workspace. Codex redacts known secret patterns, but review the shared content because sensitive content may remain. View or revoke links in ChatGPT data controls, under Shared links.” Accessed August 26, 2026. ↩↩
-
codex-rs/tui/src/slash_command.rsat tag rust-v0.149.1. TheSlashCommandenum has noConfigvariant;DebugConfigserializes as/debug-configwith the description “show config layers and requirement sources for debugging” (the guide’s/configentry dated from the v0.97.0 era, 39). Descriptions verbatim:Keymap“remap TUI shortcuts”;Rename“rename the current thread”;AutoReview(/approve) “approve one retry of a recent auto-review denial”;Memories“configure memory use and generation”;Agents“view and switch between all active agent sessions”;MultiAgents(/subagents) “switch between this session’s subagents”;Side/Btw“start a side conversation in an ephemeral fork”;Raw“toggle raw scrollback mode for copy-friendly terminal selection”;Ide“include current selection, open files, and other context from your IDE”;Stop(aliasclean) “stop all background terminals”;Experimental“toggle experimental features”;Theme“choose a syntax highlighting theme”;App“continue this session in the Desktop app”, visible only wherecfg!(any(target_os = "macos", target_os = "windows"));Clear“clear the terminal and start a new chat”;Pets“choose or hide the terminal pet”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Configuration Reference (learn.chatgpt.com/docs/config-file/config-reference.md), accessed August 26 and November 11, 2026.
features.network_proxyis typedboolean | table: “Start the network proxy for sandboxed commands (experimental; off by default). Required to enforce permission-profile domain rules unless enabled administrator-managednetwork_proxyrequirements start the proxy. Use a table when setting feature-level policy options such asdomains. Does not filter web search, apps, MCP, or other hosted tools.” Sub-keys verbatim:enabled(boolean) “Defaults tofalse; permission-profile domain rules are not enforced while the proxy is off.”;domains(map<string, allow | deny>) “Unset by default, which means no external destinations are allowed until you addallowrules. Supports exact hosts,*.example.comfor subdomains only,**.example.comfor apex plus subdomains, and global*allow rules. Prefer scoped rules because*broadly opens public outbound access. Adddenyrules for blocked destinations;denywins on conflicts.”;unix_sockets(map<string, allow | deny>) “Unset by default; addallowentries for permitted sockets.”;allow_local_binding“Defaults tofalse; exact local IP literal orlocalhostallow rules can still permit specific local targets.”;enable_socks5“Defaults totrue.”;enable_socks5_udp“Defaults totrue.”;allow_upstream_proxy“Defaults totrue.”;dangerously_allow_non_loopback_proxy“Defaults tofalse; enabling it can expose proxy listeners beyond localhost.”;dangerously_allow_all_unix_sockets“Defaults tofalse; use only in tightly controlled environments.”;proxy_url“Defaults to\"http://127.0.0.1:3128\".”;socks_url“Defaults to\"http://127.0.0.1:8081\".” Permission profiles: networkdomainsare “Enforced only whenfeatures.network_proxyor enabled administrator-managed networking requirements activate the proxy.” Requirements keynetwork_proxy: “Codex 0.166.0 accepts[network_proxy]and its alias[experimental_network].” ↩↩↩ -
Pre-release items on the 0.150.0 alpha line as of August 26, 2026 (npm
alphaat 0.150.0-alpha.13; GitHub release rust-v0.150.0-alpha.13 published 2026-08-26T11:18Z as a prerelease, 289 commits past rust-v0.149.1). Evidence per item:/recap:codex-rs/tui/src/slash_command.rsat the alpha tag addsRecap(“summarize the current conversation now”, #40705).Interrupt:HOOK_EVENT_NAMES: [&str; 12]ends with"Interrupt"(#40511). WebSocket removal: PR #40692 “Accept onlyhttp://andhttps://gRPC endpoints for app server--code-mode-hostconnections”. Paginated history: PR #40677 “Whenthread/startomitshistoryMode, selectpaginatedfor durable threads whose store supportsthread/turns/listandthread/items/list”./copypicker: PR #39997 “Open a picker for/copywith the whole response plus each fenced code block and blockquote from the latest response”. Persistent effort: PR #40799 “Addpersistentto the reasoning-effort protocol and TypeScript SDK types”. Untrusted projects: PR #39837 “Skip project-scopedAGENTS.mddiscovery when the active project is untrusted, while preserving user-level instructions”. Credential broker: PR #40466 “Addfeatures.network_proxy.credential_broker”. Guardian v2: PR #40846 “Default Guardian v2’s review scope to computer-use tools”. Update, August 27, 2026: five of these items shipped in stable 0.150.0 and the rest moved to the 0.151.0 alpha line; see 141 and 143. ↩ -
Codex CLI v0.150.0 release notes and the ChatGPT & Codex changelog, entry dated 2026-08-26. New features, quoted: “Reference other Codex tasks with @ mentions, and ask agents to read, create, or message tasks from the terminal. (#40308, #40315)”; “/copy now offers a picker for full responses, individual code blocks, and blockquotes. (#39997)”; “Bind shortcuts to cycle permission modes, and use . in Vim mode to repeat your last edit. (#39873, #40521)”; “New Interrupt hooks can run commands or MCP handlers when an active top-level turn is interrupted. (#40511)”. Fixes, quoted: “Untrusted projects no longer supply project-level AGENTS.md instructions, and managed deny-read rules remain enforced after permission changes. (#39837, #40004)”; “Fixed elevated Windows sandbox setup and launch aliases under Unicode user paths. (#39971, #40570)”. The notes also list automatic task titles, Markdown link labels, and credential, MCP, shutdown, and Bedrock fixes. At tag rust-v0.150.0 (checked August 27, 2026):
HOOK_EVENT_NAMES: [&str; 12]ends with"Interrupt", which takes no matcher and returns early for subagent sessions;codex-rs/hooks/src/engine/discovery.rssays “SessionEnd and Interrupt default to one second and are capped at three seconds; all other hooks keep the standard ten-minute default.”;config.schema.jsondefinesGuardianV2ReviewScopeConfigToml.computer_use_only(“Restrict asynchronous classification and fast approvals to browser and computer-use tools.”);codex mcp-serverprints “warning:codex mcp-serveris deprecated and will be removed in a future release.” Update, August 30, 2026: v0.151.0 turned both Guardian v2 defaults on (#40846), removed thews://andwss://code-mode transport (#40692), and defaulted durable threads to paginated history (#40677); see 144 and 145. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.150.1 release notes and the ChatGPT & Codex changelog, entry dated 2026-08-27; install
npm install -g @openai/codex@0.150.1. Single bug fix, verbatim: “Remote compaction now counts retained images toward its token budget by default, trimming older images as needed. (#41003)” – #41003 “Backport retained-image compaction budgeting to 0.150” carries the 0.151-alpha line’s PR #40994 “Enable retained-image budgeting by default” back to stable. npm dist-taglatest= 0.150.1, verified 2026-08-27. ↩↩↩ -
Pre-release items on the 0.151.0 alpha line. npm dist-tag
alpha= 0.151.0-alpha.6 on August 27, 2026; GitHub release rust-v0.151.0-alpha.6 published 2026-08-27T12:31Z with prerelease: true; the rust-v0.150.0…rust-v0.151.0-alpha.6 compare lists 136 commits. Evidence per item, commit titles verbatim: “Generate automatic and manual conversation recaps (#40705)” (with “Prepare the TUI for conversation recaps (#40696)” and “Prepare automatic TUI recap generation (#40697)”); “Remove WebSocket transport from code-mode hosts (#40692)”; “Default durable threads to paginated history (#40677)” and “Promote paginated thread history APIs (#40673)”; “Support persistent reasoning effort (#40799)”; “Default Guardian v2 to computer-use reviews with images (#40846)”; “Add Vim character find and till motions (#40785)” and “Add Vim buffer jump motions (#40958)”; “Add turn-scoped settings updates to the app server (#40656)” and “Add a turn-scoped service tier override (#40616)”; “Add worktree settings parser (#40624)”; “Add Amazon Bedrock setup to TUI onboarding (#40679)”; “Require approval for input to escalated terminals (#40978)”. None of this was stable at the time. Update, August 30, 2026: all ten items shipped in stable 0.151.0; see 144 and 145. ↩↩↩ -
Codex CLI v0.151.0 release notes (published 2026-08-29T09:55Z) and the ChatGPT & Codex changelog, entry dated 2026-08-29; npm
latestwas 0.151.0. The release notes list only PRs #41183 to #41209, while the rust-v0.150.1…rust-v0.151.0 compare lists 164 commits (see 145). New features, quoted: “Added a configurable grace period for discovering tools from optional MCP servers. (#41199)” (PR #41199: “Addmcp_optional_startup_grace_mswith a default of 1,000 ms to control how long tool catalog capture waits for optional MCP servers”; “Treat a value of0as disabling the shared grace, so optional servers use their configuredstartup_timeout_secinstead”); “Extensions can now inspect or replace MCP tool results before they reach the model. (#41202)”; “Plugin catalogs now combine per-repository configuration and report invalid project marketplaces without hiding valid plugins. (#41208)”. Fixes, quoted: “Preserved restored permission profiles across TUI turns and prevented/cdfrom weakening sandbox restrictions. (#41192)” (PR #41192: “Reject/cdwhen a restored profile cannot be represented safely by a legacy sandbox mode”); “Kept tool availability and reasoning effort correct when switching models or falling back to another model. (#41195, #41206)”; “Counted nested subagent token usage toward root goal budgets. (#41183)”; “Prevented stale Guardian classifications from authorizing actions after permission state changes. (#41196)”. Checked August 30, 2026. ↩↩↩↩↩↩↩↩↩ -
Evidence that the ten pre-release items listed from the 0.150 alpha cycle shipped in stable 0.151.0. The release notes cover only #41183 to #41209, so the evidence is the rust-v0.150.1…rust-v0.151.0 compare (164 commits, no reverts). Commit titles, quoted: “Generate automatic and manual conversation recaps (#40705)” (PR: “Add
/recapto request the same summary on demand”); “Remove WebSocket transport from code-mode hosts (#40692)”; “Promote paginated thread history APIs (#40673)” and “Default durable threads to paginated history (#40677)” (PR: “Continue to default ephemeral threads and threads backed by stores without those APIs tolegacy.”); “Support persistent reasoning effort (#40799)”; “Default Guardian v2 to computer-use reviews with images (#40846)” (PR: “Setfeatures.guardianv2.review_scope.computer_use_only = falseto retain the broader tool review scope” and “Setfeatures.guardianv2.transcript.include_images = falseto disable them”); “Add Vim character find and till motions (#40785)” and “Add Vim buffer jump motions (#40958)”; “Add live turn settings updates (#40653)”; “Add worktree settings parser (#40624)”; “Add Amazon Bedrock setup to TUI onboarding (#40679)”; “Require approval for input to escalated terminals (#40978)” (PR: “Add thewrite_stdin_approvalfeature flag, disabled by default”) and “Reject oversized reviewed terminal input (#41159)” (PR: “Require the fully formatted action and approval reason to fit within 8,000 bytes”). At tag rust-v0.151.0 (checked August 30, 2026):slash_command.rshasRecap(“summarize the current conversation now”);codex-rs/code-mode-host/src/main.rsdocuments “Transport endpoint:stdio,stdio://, orgrpc://IP:PORT.”;ThreadHistoryModestill declares#[default] Legacy;openai_models.rsaddsReasoningEffort::Persistent;codex-rs/ext/guardian-v2/src/async_scorer/config.rsresolves both Guardian v2 settings with.unwrap_or(true). ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
0.152.0 alpha changes, pre-release and subject to change. npm dist-tag
alpha= 0.152.0-alpha.4 on August 30, 2026; GitHub release rust-v0.152.0-alpha.4 published 2026-08-30T13:56Z with prerelease: true; the rust-v0.151.0…rust-v0.152.0-alpha.4 compare is 74 commits ahead. Evidence per item, commit titles verbatim: “Add Vim search motions to the composer (#41586)”; “Update tests for default-enabled update_plan (#41630)”; “Supportopenai/elicitationform requests (#41447)”; “Support per-tool MCP output limits (#41421)”; “Add configurable gating for the sleep tool (#41243)” and “Classify clock tools as built-in control tools (#41331)”; “Make subagents follow the root service tier (#41308)”; “Preserve context baselines across nested agent forks (#41424)”; “Add recency sorting toproject/list(#41223)”; “Support configurable timeouts for thread shell commands (#41384)”; “Refresh the TUI model picker from the app server (#41467)”; “Restrict cloud task credentials to trusted origins (#41403)”; “Source proactive multi-agent instructions from the model catalog (#41457)” (“Clarify proactive multi-agent delegation guidance (#41380)” itself already reached stable as a 0.151.0 back-branch pick); continued Guardian v2 iteration (“Roll over Guardian context before follow-up reviews (#41215)”, “Preserve Guardian authorization across history compaction (#41660)”). None of this is stable. ↩↩↩ -
Codex CLI v0.152.0 release notes, September 1, 2026; compare rust-v0.151.0…rust-v0.152.1. New features, quoted: “Vim mode supports
/and?searches within drafts, highlighted matches, and repeat navigation withnandN. (#41586)”; “Rate-limit banners offer actions for checking usage, managing credits, resetting limits, and managing plans. (#41742)”; “The terminal UI andcodex execshow credential-refresh progress, including Amazon Bedrock reauthentication. (#41239)”; “MCP server names can contain:,@,/, and., supporting package-style names throughout CLI commands and authentication. (#41700)”; “Individual MCP tools support anoutput_token_limitsetting, with consistent truncation across session resumes. (#41421)”. Chores, quoted: “The planning tool is disabled by default; enable it withtools.update_plan.enabled = true. (#41744)”, which reverses the default-on state the alpha line had carried (#41630; see 146). Fixes, quoted: “Automatic approval reviews preserve user instructions, answers, and valid authorizations across history compaction. (#41660, #41846, #41852)”; “Cloud task requests reject untrusted backend URLs and disable redirects to protect saved credentials. (#41403)” (PR #41403: “ValidateCODEX_CLOUD_TASKS_BASE_URLagainst trusted ChatGPT HTTPS origins on port 443 and reject URLs containing user information, queries, or fragments”). From the compare, commit titles quoted: “Supportopenai/elicitationform requests (#41447)”; “Support per-tool MCP output limits (#41421)” (PR: “Apply the most restrictive limit when plugin and user policies overlap”); “Support package-style MCP server names (#41700)” (PR: “enabling names such asnpm:@modelcontextprotocol/server-sequential.thinking”); “Start fresh Vim drafts in Insert mode (#41921)”; “Make subagents follow the root service tier (#41308)”; “Allow models to enable token budgeting by default (#41803)”. Checked September 3, 2026. ↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.152.1 release notes, September 1, 2026; install
npm install -g @openai/codex@0.152.1. The release body carries no verified highlights of its own (verbatim: “Release highlights could not be verified: the supplied PR index is empty, and GitHub returned 404 for therust-v0.152.0...rust-v0.152.1comparison.”), so the patch content is provable via the rust-v0.151.0…rust-v0.152.1 compare: one functional cherry-pick, “Source Guardian REPL policy from model metadata (#41919)” (cherry-picked from commit 865bbf9a; PR: “Addauto_review.node_repl_policyto model messages fornode_replandcua_replreviews”; “Use the reviewer model’s configured policy, falling back to the bundled policy when the field is absent and skipping injection when it is explicitly empty”; “Include the effective policy in Guardian session reuse checks and reject unsafe parent-model fallback transitions that would change it”), plus the branch’s own version-stamping commits. Verified 2026-09-03. ↩↩↩ -
Codex CLI v0.153.0 release notes, September 3, 2026; compare rust-v0.152.1…rust-v0.153.0. New features, quoted: “Vim mode now supports undo with
uand redo withCtrl+R, preserving complete drafts including pasted content and attachments. (#41941, #42140)”; “The plugin CLI can list, install, and remove plugins from remote marketplaces. (#42150)”; “Settui.auto_recap = falseto disable automatic recaps while keeping manual/recapavailable. (#42101)” (PR: “Add thetui.auto_recapconfiguration option, enabled by default”); “Plus and Team users receive an earlier warning when less than half of their allowance remains in an approximately five-hour usage window. (#42142)” (PR: “Preserve the existing 75%, 90%, and 95% usage thresholds for other plans and window lengths”). Fixes, quoted: “Full Access skips Guardian reviews for confirmation-only actions. User approval mode skips background Guardian scoring and prewarming, while sensitive-action checks and requests for user input retain their existing handling. (#42147, #42256)”; “Remembered MCP tool approvals are scoped to the selected app account, and relative MCP executable paths start more reliably on macOS. (#42133, #42117)”. Configuration, quoted: “tui.disable_paste_burstreplaces the top-level setting, which remains supported as a fallback. (#41976)”; “Adds the disabled-by-defaultfeatures.context_management.experimental_modeconfiguration. When enabled for eligible ChatGPT Plus, Pro, or Pro Lite sessions using the Codex backend, it activates token-budget context, history notes, and thenew_contexttool. API-key sessions, custom providers, and temporary structured threads remain excluded. (#42385)”. The notes also cover TUI reconnects that keep drafts and transcripts, Guardian review history across compaction, and rollout compression. Checked September 3, 2026. ↩↩↩↩↩↩↩↩↩↩↩ -
Pre-release items on the 0.154.0 alpha line. The rust-v0.153.0…rust-v0.154.0-alpha.1 compare is 84 commits ahead of 0.153.0 as of September 3, 2026. Items from the compare: Vim replace mode (#42194), managed worktree creation (#42196), TUI preferences separated from server configuration (#42202), a native voice runtime cluster for macOS, Linux, and Windows (#42204, #42208, #42209, #42332), live context-compaction status in the TUI (#42319), a configurable app-server thread unload delay (#42320), PATH helpers no longer executed before workspace trust (#42324, security), a Windows sandbox provisioning-service cluster (#42309-#42353), durable reasoning configuration updates (#42328), and free-form async user messages (#42354). Alpha compares overlap stable cherry-picks: “Skip Guardian scoring in User approval mode (#42256)” appears in both the rust-v0.152.1…rust-v0.153.0 stable compare and the alpha line. None of this was stable at the time. ↩↩↩↩↩↩↩
-
Codex CLI v0.153.1 release notes, September 3, 2026 (published 14:02 PT); install
npm install -g @openai/codex@0.153.1; compare rust-v0.153.0…rust-v0.153.1. The patch’s headline change is not listed in the release body and is provable only via the compare: “Honor model requirements in Guardian computer-use scoring (#42422)” (cherry-picked from 38ba8cdc) – computer-use-only Guardian scoring and fast approval decisions run only when the active model setsnode_repl_auto_review_required, and prior or in-flight scores are invalidated on a model switch that skips scoring, so switching back to a reviewed model cannot revive a stale approval decision. The listed change: #42605 backports a GPT-6-Astra model catalog entry to stable, configurable through the API only; the default model and the model picker are unchanged. Verified 2026-09-03. ↩↩↩↩↩↩ -
Codex CLI v0.153.2 release notes, September 3, 2026 (published 16:53 PT); npm
latestuntil 0.153.4 the next day; installnpm install -g @openai/codex@0.153.2; compare rust-v0.153.0…rust-v0.153.2. One cosmetic fix: #42632 corrects the GPT-6-Astra Fast tier description text from “1.5x” to “2x speed, increased usage”; display text only. None of the 0.154.0-alpha.1 items (150) shipped in 0.153.1 or 0.153.2; the stable changes beyond 0.153.0 are exactly three: #42422 and #42605 (0.153.1) and #42632 (0.153.2). Verified 2026-09-03. ↩↩↩ -
Pre-release items on the 0.154.0 alpha line, which moved from alpha.1 to alpha.3, 103 commits ahead of 0.153.0 as of September 3, 2026. Alpha release notes are empty, so the compare is the source: rust-v0.154.0-alpha.1…rust-v0.154.0-alpha.3 carries the 19 commits new since alpha.1. New in that compare: a GPT-6-Astra bundled model catalog (#42607) and Amazon Bedrock catalogs (#42619), staging for a model launch; a security and hardening cluster – the macOS sandbox hardened against terminal input injection (#42590), Guardian review required for incompatible compaction checkpoints (#42588), trusted headers for remote exec WebSockets (#42606), and Noise handshakes bounded by the exec-server init timeout (#42623); and Guardian context work – a thread context flag (#42529) and verified user answers persisted (#42579). The alpha.1 items are in 150. None of this was stable when checked on September 3, 2026. Update, September 4, 2026: #42607 and #42619 reached stable through 0.153-line backports (#42874 in v0.153.4 and #42805 in v0.153.3; 156157); the other items here and in 150 had not shipped. ↩↩↩↩↩↩↩
-
Press coverage of the GPT-6-Astra announcement, September 3-4, 2026 – the claims in this guide that rest on press rather than first-party docs are the announcement date and the rollout order and timing: CNBC (September 3: phased rollout starting with a limited set of organizations, cybersecurity-program partners first, then ChatGPT Plus, Pro, Business, and Enterprise “over the coming days,” plus the OpenAI API and AWS), Axios (September 3: Brockman calls it a “generational leap”), Forbes (September 3, headlined “OpenAI Launches GPT-6 Astra After A Curious False Start” – the false start it describes is the announcement page’s availability, not the catalog staging described in 151 and 153: CNBC, Reuters, The Verge, and VentureBeat “published stories citing OpenAI launch material before the company’s main Astra page was publicly accessible,” and “an official OpenAI blog post was up before it was temporarily removed,” going live for good around 3:31 p.m. ET), Al Jazeera (September 4), and 9to5Mac (September 4). openai.com returned 403, so no first-party announcement page is cited; model capability, pricing, and Codex-integration claims rest on the first-party docs in 155. Verified 2026-09-04. ↩↩↩↩
-
First-party documentation for GPT-6-Astra as read in September 2026. The Codex pages have changed since; see 233 and 234. Accessed September 4, 2026: the OpenAI API models page lists gpt-6-astra as the flagship at $10/MTok input and $50/MTok output with a 1.05M context window, 128K max output, and an April 30, 2026 knowledge cutoff. The gpt-6-astra model page gives “Maximum input tokens: 922,000” and prices prompts over 272K input tokens “at 2x input and cache rates and 1.5x output for the full request”; the API pricing page lists the long-context rates ($20/$75 per 1M tokens). Codex speed docs: “Fast mode consumes credits at 2.5x the Standard rate where available”. Codex models docs: availability “depends on the rollout, your sign-in method, and your client”; reasoning levels run Low, Medium (default), High, Extra High, Max, Ultra; Accessed September 5, 2026: “On supported Codex clients, users signed in with ChatGPT Plus or Pro can opt in to experimental context management. Astra keeps notes across context windows and can search earlier messages and tool results from the same task. This experiment is off by default and isn’t available with Business, Enterprise, or API-key sign-in at launch.” The opt-in key is
features.context_management.experimental_mode = true. Accessed September 7, 2026: “For eligible Pro, Business ($100), and Enterprise accounts, the Astra rollout updates the Power options to Terra Light, Sol Light, Sol Medium, Astra Light, Astra Medium, and Astra Extra High.” Accessed September 15, 2026: the availability matrix marked Astra available for Codex cloud. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.153.3 release notes, September 4, 2026 (published 19:01 UTC); install
npm install -g @openai/codex@0.153.3; compare rust-v0.153.2…rust-v0.153.4 (the two-patch delta is exactly four PRs plus a version bump). Two changes: #42805 adds GPT-6-Astra to the Amazon Bedrock catalogs (the Mantle and Runtime global and US routes; GPT-5.6 Sol remains the Bedrock default) – a cherry-pick of #42619 from the alpha line (153); #42809 corrects Astra’s async-clarification guidance (text only). Verified 2026-09-04. ↩↩↩↩↩ -
Codex CLI v0.153.4 release notes, September 4, 2026 (published 23:25 UTC); npm
latest= 0.153.4; installnpm install -g @openai/codex@0.153.4; compare rust-v0.153.2…rust-v0.153.4. Two changes: #42874 flips the bundled model catalog’s visibility from hide to list, and GPT-6-Astra’s existing catalog priority makes it the bundled default when no model is explicitly configured – the shipped form of #42607 from the alpha line (153); #42878 qualifies async-question guidance by tool availability. Operational caveat: on CLI 0.153.4 and later, an account not yet in the GPT-6-Astra rollout carries a bundled default it never chose (what actually serves is entitlement-dependent); pinmodel = "gpt-5.6-sol"in config.toml or pass-mexplicitly for deterministic selection. Bundled-catalog facts from the versioned models.json at rust-v0.153.4: the gpt-6-astra entry ships visibility “list”, priority 1, anddefault_reasoning_level“low” – a lower default than the Medium the docs models page marks (155). Verified 2026-09-04. ↩↩↩↩↩↩↩↩↩ -
Rollout-completion announcements, September 4, 2026. OpenAI on X (September 4): “GPT-6 Astra is now available to all Pro, Enterprise, and Business Premium users in ChatGPT Work and Codex. It’s also live in the API. It might take a few days to roll out to our Plus and Business users.” The Codex lead Tibo Sottiaux, the same evening, as quoted in the OpenAI community thread: “Astra is now rolled out to all Plus and Business users too.” Attribution note: the X-post wording was confirmed through two independent secondary renderings of the posts (the community thread above among them), not a direct fetch of x.com. Counterweight: September 5 posts in the same community thread report Plus accounts still seeing only GPT-5.6 models in Codex, and the models docs availability line (155) is unchanged – treat the docs line as the operative availability statement and keep the Sol pin (see Which Model Should I Choose?) until Astra answers on your own account. Verified 2026-09-05. ↩↩
-
Pre-release items on the 0.154.0 alpha line, which moved from alpha.3 to alpha.6, published September 7, 2026 (18:03 UTC). The intermediate rust-v0.154.0-alpha.4 and rust-v0.154.0-alpha.5 tags exist with no published releases, and npm’s alpha dist-tag points at 0.154.0-alpha.6 (npm
latestremains 0.153.4). Alpha release notes are empty, so the compare is the source: rust-v0.154.0-alpha.3…rust-v0.154.0-alpha.6 carries the 147 commits new since alpha.3. The largest changes are the removal of the deprecatedcodex mcp-servercommand (#42993, commit title “Remove the deprecatedcodex mcp-servercommand”) and the Guardian v2 overhaul’s removal of the legacy approval review paths (#43462, “Remove legacy Guardian approval review paths”). The “Daybreak” eligibility concept (#42667 “Tailor TUI cyber refusal notices to Daybreak eligibility”, #42854 “Persist Daybreak preferences in thread metadata”) appeared in no OpenAI docs page when checked. The alpha.1 and alpha.3 items are in 150 and 153. None of this was stable when checked on September 7, 2026. ↩↩↩↩ -
Pre-release items on the 0.154.0 alpha line, which moved from alpha.6 to alpha.7, published September 8, 2026 (17:44 UTC); npm’s alpha dist-tag moved to 0.154.0-alpha.7 in lockstep (npm
latestremains 0.153.4, and no stable release exists past 0.153.4). Alpha release notes are empty, so the compare is the source: rust-v0.154.0-alpha.6…rust-v0.154.0-alpha.7 carries the 58 commits new since alpha.6. Two features moved from groundwork to enabled, commit titles quoted: “Add live WebRTC voice conversations to the TUI (#43581)” (with nine follow-up commits), and “Enable MCP user verification in the TUI (#43712)” plus “Enable user verification for the bundled TUI on supported devices (#43715)”, backed by “Add macOS user verification with Secure Enclave signing (#43624)”. No alpha.7 commit reverses thecodex mcp-serverremoval (#42993) or the legacy Guardian approval review path removal (#43462). Also new: Memory v2 (#43797, #43799, #43800, #43808, #43813, #43827) and managed app-server daemon auto-updates (#43521, #43529, #43542, #43552, #43562, #43572, #43619, #43622, #43698). “Daybreak” was absent from all OpenAI docs when checked. The alpha.1, alpha.3, and alpha.6 items are in 150, 153, and 159. None of this was stable when checked on September 8, 2026. ↩↩↩ -
Codex CLI v0.154.0 release notes, stable, published September 9, 2026 (22:35 UTC); npm
latestmoved from 0.153.4 to 0.154.0 (22:40 UTC); compare rust-v0.153.4…rust-v0.154.0, 249 commits. The release was cut at about the alpha.6 boundary: none of the 58 commits in the rust-v0.154.0-alpha.6…rust-v0.154.0-alpha.7 compare (160) appears in the stable compare. In stable, commit titles quoted: “Remove the deprecatedcodex mcp-servercommand (#42993)”, “Remove legacy Guardian approval review paths (#43462)”, “Raise Guardian’s action review limit to 200,000 bytes (#44060)”, “Add a native Windows MXC sandbox adapter (#42841)”, “Gate experimental context by model capability at session startup (#43147)”, “Add Vim replace mode to the TUI composer (#42194)”, “Show live context compaction status in the TUI (#42319)”, and “Avoid executing PATH helpers before workspace trust (#42324)”; also the managed-worktree changes (#42196, #42366, #42652, #43069, #43120, #43286), async messages (#42354, #42891, #42894, #42897), Windows sandbox provisioning and the daemon, remote permission profiles (#42453, #43340), and voice runtime infrastructure without the TUI feature. Not in stable: “Enable MCP user verification in the TUI (#43712)”, “Add macOS user verification with Secure Enclave signing (#43624)”, “Add live WebRTC voice conversations to the TUI (#43581)”, Memory v2 (#43797 to #43827), daemon auto-update configuration (#43542, #43562), and reasoning-effort pinning (#43795, #43796). The 0.154.0 release notes are complete and match the compare. Checked September 15, 2026. ↩↩↩↩↩↩↩↩↩↩ -
ChatGPT & Codex changelog, as read on September 15, 2026 – three entries. On November 11, 2026 the page still carries the first two; the third is no longer on it. (1) “Codex CLI 0.154.0” (September 9): the curated feature list maps to the verified commits – GPT-6-Astra in the model picker and Amazon Bedrock catalogs (#42879, #42619), experimental worktree support via
--worktreeor/worktree(#42652, #43069, #43120, #43286), inline question answering while Codex continues working (#42891, #42894, #42897), Windows background-server sharing with daemon lifecycle and managed updates (#42405, #42392), VimRreplace mode with undo and dot-repeat (#42194, #42584), and formatting-preserving copy (#42847, #43055) – and is silent on voice, memory, and user verification as features: those words appear only in the entry’s exhaustive commit list as infrastructure items, and “Secure Enclave” appears zero times, consistent with the branch cut. (2) “Codex MCP server removed” (September 5), verbatim: “Thecodex mcp-servercommand and standalonecodex-mcp-serverbinary have been removed after their deprecation on August 24, 2026. Update integrations that launch either command before upgrading Codex.” The entry points integrations at the Codex app server, notes the app-server command “is experimental and isn’t supported for production workloads,” and confirms connecting to external MCP servers throughcodex mcpis unaffected. (3) “Codex CLI Python SDK 0.154.0” (September 10), verbatim: “Addmaxandultrareasoning-effort values. (#39662)” – the SDK-side confirmation of the Max and Ultra rungs the models docs list for Astra. ↩↩↩ -
Pre-release items on the 0.155.0 alpha line. The line opened September 10, 2026 (0.155.0-alpha.1) and reached 0.155.0-alpha.6 on September 15 (02:00 UTC; npm’s alpha dist-tag moved in lockstep) – twelve alpha publishes in six days counting the out-of-sequence hotfix tags (alpha.2.3, alpha.2.4, alpha.3.7 through alpha.3.10). Alpha release notes are empty, so the compare is the source: rust-v0.154.0…rust-v0.155.0-alpha.6 carries 384 commits, among them the 58 alpha.7 commits that 0.154.0 left out. The largest changes are two default changes, commit titles quoted: “Enable TUI voice conversations by default (#44921)” and “Enable worktrees by default and clarify local daemon errors (#44870)”, plus the removal “Remove the Windows
/sandbox-add-read-dirslash command (#44259)”. None of this was stable when checked on September 15, 2026. ↩↩ -
0.155.0-alpha watch delta, alpha.6 -> alpha.10, plus the September 16 npm dist-tag state. Four alphas published September 15-16, 2026, all with empty stub release bodies: rust-v0.155.0-alpha.7 (September 15, 21:09 UTC), rust-v0.155.0-alpha.8 (22:26 UTC), rust-v0.155.0-alpha.9 (September 16, 01:34 UTC), and rust-v0.155.0-alpha.10 (04:20 UTC) – so the compares are the only source: rust-v0.155.0-alpha.6…rust-v0.155.0-alpha.10 carries 65 commits, and the full line compare rust-v0.154.0…rust-v0.155.0-alpha.10 carries 448. Separately, rust-v0.155.0-alpha.2.5 published September 16, 2026 (13:17 UTC) as an out-of-band cut from the alpha.2 base: rust-v0.155.0-alpha.2…rust-v0.155.0-alpha.2.5 is exactly six commits, titles verbatim: “Stage voice release packaging for alpha rehearsal”, “[voice] fetch public Cygwin source in alpha rehearsal”, “Stage Linux-only voice alpha rehearsal”, “Publish opt-in provisioned macOS packages with Rust releases (#45345)”, “Fix Windows sandbox refresh after elevated provisioning”, and “Release 0.155.0-alpha.2.5”. npm dist-tag state re-checked September 16, 2026 against the registry:
latest= 0.154.0 andalpha= 0.155.0-alpha.2.5 (npm publish 13:26 UTC; the per-platform alpha tags moved in lockstep), so@alpharesolves below the alpha.10 head and installs a build missing all alpha.3+ content until the tag moves again. GPT-5.5 retirement as the Codex models documentation read on September 16, 2026 (it has changed since; 202 holds the current wording): “GPT-5.5 retires from Codex with ChatGPT sign-in on October 14, 2026. Replace gpt-5.5 with gpt-5.6-sol”, and, in its GPT-5.5 retirement section: “On October 14, 2026, GPT-5.5 will retire from ChatGPT, ChatGPT Work, and Codex on all plans, including consumer, Business, Enterprise, and Edu plans. This retirement does not apply to the OpenAI API.” ↩↩↩↩ -
Codex CLI v0.155.0 release notes, stable, published September 17, 2026 (23:14:43 UTC); npm
latestmoved from 0.154.0 to 0.155.0; compare rust-v0.154.0…rust-v0.155.0. “Enable TUI voice conversations by default (#44921)” and “Enable worktrees by default and clarify local daemon errors (#44870)” merged September 11, 2026 but are not ancestors of the rust-v0.155.0 tag, so 0.155.0 ships voice as an opt-in experimental feature (enabled through/experimental, supported builds only) with managed worktrees non-default. In stable: live voice conversations (#43581) as an experimental feature (#44331) with mute controls (#43651, #43690); MCP user verification with Touch ID and the Secure Enclave in local TUI sessions on supported Macs (#43624, #43712, #43715); removal of the Windows/sandbox-add-read-dircommand (#44259); worktree management additions (#43942, #44424, #44433); live reasoning summaries in the TUI status row (#43558, #43921); daemon update schedules andcodex app-server daemon update(#43542, #43562, #44314); Amazon Bedrock AWS credential commands (#44028); Python SDK publishing aligned with stable CLI releases (#44067); security fixes for WSL interop escapes (#44286) and shell-snapshot credential exposure (#43909, #44040); Memory v2 groundwork (#43797 to #43827). npmalphamoved to rust-v0.155.0-alpha.9.2, published September 18, 2026 (03:09 UTC), after stable: an out-of-band build with two cherry-picked Windows sandbox fixes (#46237, #46333), so@alpharesolves semver-belowlatest. The docs changelog had no 0.155.0 entry and no docs page announced voice when this was checked (2026-09-17). ↩↩↩↩↩↩↩↩↩↩↩↩ -
Pre-release items on the 0.156.0 alpha line, which stood at 0.156.0-alpha.2 on September 17, 2026; alpha release notes are empty, so the compare is the source: rust-v0.155.0…rust-v0.156.0-alpha.2 carries 351 commits. It has the first Daybreak code:
daybreakEnabledcan be set when starting a thread (#45513); the concept appeared in no public docs. The default-on flips “Enable TUI voice conversations by default (#44921)” and “Enable worktrees by default and clarify local daemon errors (#44870)” are on this line and not in stable 0.155.0. Also on the line: a configurable F8 voice shortcut (#46071) and voice-session analytics (#46058), the/usageaccount analytics dashboard (#45763-#45772), TUI Mermaid rendering (#46054, #45817) and TeX math rendered as Unicode (#45501, #45612, #46266), a/daemonmenu (#45854) with a--no-daemonflag (#46088) and opt-in automatic background server startup (#46117), the personality feature flag retired (#45809), an Astra composer starfield (#46096), and heavy Windows sandbox provisioning work. None of this was stable when checked on September 17, 2026. ↩↩↩↩ -
Codex CLI v0.155.1 release notes, stable, published September 18, 2026 (20:03:04 UTC); npm
latestmoved from 0.155.0 to 0.155.1 (20:09:23 UTC) on every per-platform tag. The compare rust-v0.155.0…rust-v0.155.1 carries two commits:5e0d1ef8“[0.155 hotfix] Restore none as the TUI reasoning summary default (#46467)” and the release commit. The change is one line innew_thread_reasoning_overrides(codex-rs/tui/src/app_server_session.rs): the fallback whenconfig.model_reasoning_summaryis unset moved fromReasoningSummary::DetailedtoReasoningSummary::None. Per the PR, 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”; the fix restoresnone“while honoring explicitauto,concise, anddetailedsettings and concurrent delivery when summaries are explicitly enabled.” The same change landed onmainas #46533. #44921 (voice) and #44870 (worktrees) are still not ancestors of rust-v0.155.1. The ChatGPT & Codex changelog now has entries for Codex CLI 0.155.0 (2026-09-17) and 0.155.1 (2026-09-18); the 0.155.0 entry reads “Added experimental /voice conversations with live transcripts and microphone controls on supported builds, enabled through /experimental. (#43581, #43651, #44331)”. The slash-command reference listed/worktreebut neither/voicenor/experimental, and the docs Voice feature page documents ChatGPT Voice in the desktop app, a separate product from the CLI command. Checked September 21, 2026. ↩↩ -
Pre-release items on the 0.156.0 alpha line as of September 21, 2026; replaces the alpha.2 snapshot in 166. The line stood at 0.156.0-alpha.14, and npm’s
alphatag and every per-platformalpha-*tag matched it, so@alphawas semver-ahead oflatest(0.155.1) again after the two out-of-band builds recorded in 164 and 165. From the releases API: alpha.9 2026-09-20T00:17:45Z, alpha.10 2026-09-20T21:18:52Z, alpha.11 2026-09-20T22:49:40Z, alpha.12 2026-09-21T00:06:46Z, alpha.13 2026-09-21T02:15:06Z, alpha.14 2026-09-21T04:09:08Z. Alpha release notes are empty, so the source is the compare rust-v0.156.0-alpha.2…rust-v0.156.0-alpha.14, 147 commits. New in this window, each an ancestor of rust-v0.156.0-alpha.14 and not of stable rust-v0.155.1: “Add six bundled TUI themes and theme-aware accents” (#46504), “Use catalog model display names throughout the TUI” (#46503), “Enable Guardian parent-compaction reuse by default” (#46522), “Allow worktree sessions to use an existing local daemon” (#46498), “Disable reasoning summaries by default for new TUI threads” (#46533), “Add bounded filesystem path diagnostics tocodex doctor” (#46543), “Respect reduced motion in the voice UI” (#46835), “Preserve voice playback across pauses and packet bursts” (#46880), “Stabilize usage dashboard navigation and add keyboard help” (#46863), “Enable mouse navigation in the TUI usage view” (#46866), and “Improve usage report layouts and preserve reading positions” (#46864). Unchanged from 166:daybreakEnabledon thread start (#45513) and the default-on changes #44921 and #44870. None of this was stable at the time. ↩↩↩↩ -
State of the 0.156.0 line on September 22, 2026, before the stable shipped later that day, plus the 0.157.0 alpha line; replaces the alpha.14 snapshot in 168. From the npm registry and the GitHub API: npm
latestwas 0.155.1 and no non-alpha 0.156.x version existed on npm; the releases API showed no non-prerelease release since rust-v0.155.1 (September 18, 2026, 20:03 UTC); therust-v0.156.0*tags were alpha.1 through alpha.18 only. Last published builds on the line: rust-v0.156.0-alpha.16 (September 21, 16:51 UTC) and rust-v0.156.0-alpha.17 (21:40 UTC). The 0.157.0 line: rust-v0.157.0-alpha.1 published September 21, 18:08 UTC, reaching rust-v0.157.0-alpha.8 on September 22, 12:34 UTC; npm’salphatag read 0.157.0-alpha.8. The compare rust-v0.156.0-alpha.14…rust-v0.157.0-alpha.8 reports ahead_by 94 and behind_by 1, the one missing commit being the “Release 0.156.0-alpha.14” version bump, so every content commit on the 0.156.0 alpha line is in the 0.157.0-alpha.8 history. “Enable TUI voice conversations by default (#44921)”, “Enable worktrees by default and clarify local daemon errors (#44870)”, and “Enable Guardian parent-compaction reuse by default (#46522)” are ancestors of rust-v0.157.0-alpha.8 and not of stable rust-v0.155.1. A third out-of-band build after those in 164 and 165: rust-v0.155.0-alpha.16.1 published September 22, 00:20 UTC, two commits over rust-v0.155.0-alpha.16: “Add system proxy fallback for login and startup requests (#46562)” and the version bump. None of the 0.157.0 alpha line was stable at the time. ↩↩↩↩ -
Codex CLI v0.156.0 release notes, stable, published September 22, 2026 (19:51:01 UTC); npm
latestmoved from 0.155.1 to 0.156.0 at 19:55:37 UTC. Compare: rust-v0.155.1…rust-v0.156.0, 526 commits. In the compare:3f59eb9“Enable TUI voice conversations by default (#44921)”,68bc536“Enable worktrees by default and clarify local daemon errors (#44870)”, and3fd9e7e“Enable Guardian parent-compaction reuse by default (#46522)”. rust-v0.156.0-alpha.16…rust-v0.156.0 reports ahead_by 1 and behind_by 1, each side’s own release commit, so the stable content equals alpha.16. All fifteen pre-release items the guide had listed are in the compare: themes (#46504:ada,babbage,curie,cushman,dali,davinci), catalog display names (#46503), reasoning summaries off by default (#46533),codex doctorpath diagnostics (#46543), the F8 voice shortcut (#46071), Mermaid (#46054, #45817), TeX as Unicode (#45501, #45612, #46266),/daemon(#45854) and--no-daemon(#46088), the personality flag retired (#45809),daybreakEnabled(#45513), and the/usagedashboard (eight PRs between #45763 and #45772). New in stable: the optional fullscreen TUI (#46883/tui, with #46849 keeping the fullscreen transcript off by default) and the local agent message board (#46959). The ChatGPT & Codex changelog entry “Codex CLI Release: 0.156.0” (2026-09-22) states “Voice conversations are enabled by default, with an F8 toggle, a/voice settingspicker, and bundled audio runtimes for Linux and Windows. (#44921, #46071, #44622, #44714, #44922)” and “worktree support is now enabled by default. (#46839, #45276, #44870)”. The config keys behind these defaults, from the code:[features] realtime_conversation,[features] worktrees,[features] guardian_reuse_parent_compaction, and[tui] fullscreen_transcript. Checked September 22, 2026. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Pre-release items on the 0.157.0 alpha line and the 0.156.1 tag as of September 22, 2026; replaces the alpha.8 snapshot in 169. npm:
latest0.156.0,alpha0.157.0-alpha.10 (published 22:21:59 UTC, September 22). Compare: rust-v0.156.0…rust-v0.157.0-alpha.10, ahead_by 101. Alpha release notes are empty, so the compare is the source. Commit titles, quoted:49e95cc7“Add GPT-6 Sol and Luna to the model catalog (#47332)” and “Add GPT-6 Sol and Luna to Amazon Bedrock catalogs (#47347)”; “Remove theultrafastservice tier fromgpt-5.6-sol(#47130)”; “Enable the fullscreen transcript by default (#47178)”, “Enable automatic daemon startup by default (#47179)”, and “Enable Guardian thread context by default (#47275)”; “Enable/importin remote and local daemon sessions (#47317)”; “Add extra policy configuration for Guardian reviews (#47125)”; “Support caller-provided MITM CAs in the network proxy (#47132)”; “Add conditional turn interruption that preserves pending input (#47340)”; “Honor configured proxies for realtime WebSocket connections (#47101)”. A docs changelog entry headed “GPT-6 Sol and Luna in Codex and ChatGPT Work”, dated 2026-09-22, names the model IDsgpt-6-solandgpt-6-luna. The tagrust-v0.156.1existed (tip commitb412ff32, September 23, 2026 00:45:44 UTC) two commits past rust-v0.156.0, one of themf1b21bb2“Add GPT-6 Sol and Luna to the 0.156 model catalog (#47332)”, with no GitHub release and no npm package yet. Update, September 23, 2026: 0.156.1 was released (GitHub 02:41:36 UTC, npmlatest02:45:25 UTC), and the model table, pricing rows, and recommendation were updated from the shipped catalog and the models docs; see 172. ↩↩↩ -
Codex CLI v0.156.1 release notes, stable, published September 23, 2026 (02:41:36 UTC); npm
latestmoved from 0.156.0 to 0.156.1 at 02:45:25 UTC. Release notes: “Choose GPT-6 Sol or GPT-6 Luna from the model picker. The rate-limit switch prompt now recommends GPT-6 Luna. (#47405)”. rust-v0.156.0…rust-v0.156.1 is two commits:f1b21bb2“Add GPT-6 Sol and Luna to the 0.156 model catalog (#47332)” and the release commit.codex-rs/models-manager/models.jsonat the tag definesgpt-6-sol(“Workhorse model for coding and everyday work,” default reasoning medium, efforts low through ultra,default_service_tierpriority, Fast “1.5x speed”) andgpt-6-luna(“Fast and affordable model for easier tasks,” default medium, efforts low through max, same Fast default), both withcontext_window272,000.gpt-6-astrakeeps priority 1 (the bundled default) withdefault_reasoning_levellow and no default service tier.upgradetargets:gpt-5.6-sol,gpt-5.6-terra,gpt-5.5, andgpt-5.4togpt-6-sol;gpt-5.6-lunaand the retiredgpt-5.4-minitogpt-6-luna.codex-rs/tui/src/service_tier_resolution.rsapplies a model’sdefault_service_tierwhen noservice_tieris configured,fast_modeis enabled, and the user has not opted out of Fast defaults. Incodex-rs/features/src/lib.rs,realtime_conversation,worktrees, andguardian_reuse_parent_compactionareStage::Stablewithdefault_enabled: true;transcript_v2isStage::Deprecatedand ignored;tui.fullscreen_transcriptdefaults tofalse. The global--disable <key>flag is “Equivalent to-c features.<name>=false.” #44870’s daemon message: “The local Codex service cannot check background terminals. Runcodex app-server daemon update, then restart Codex.” #46883:/tui“savestui.fullscreen_transcriptto the selected user config file”. The docs read the same day are in 231 (models) and 232 (pricing). ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Alpha-channel state, verified 2026-09-23 against the GitHub API and the npm registry. npm dist-tags:
latest= 0.156.1 andalpha= 0.158.0-alpha.2 (npm 13:24:05 UTC; GitHub release rust-v0.158.0-alpha.2 13:07:10 UTC), with every per-platformalpha-*tag matching. rust-v0.158.0-alpha.1 exists as a tag only (tag object dated 10:48:51 UTC; no GitHub release, not on npm). The 0.157 line reached rust-v0.157.0-alpha.11 (GitHub 04:50:17 UTC; npm 05:01:29 UTC); rust-v0.157.0-alpha.10 was published on GitHub September 22 at 22:07:05 UTC and on npm at 22:21:59 UTC. No rust-v0.157.0 tag or release and no 0.157.0 npm version exist, so the 0.157 line has not produced a stable; it is not described as skipped, because no higher version has shipped stable. rust-v0.157.0-alpha.11…rust-v0.158.0-alpha.1 is ahead_by 7, behind_by 1. The fourth out-of-band cut: rust-v0.155.0-alpha.16.3 (tag 02:50:51 UTC, GitHub release 03:41:37 UTC, npm 03:47:24 UTC), three commits over rust-v0.155.0-alpha.16: “Add system proxy fallback for login and startup requests (#46562)”, “Backport GPT-6 Sol and Luna to 0.155 alpha (#47332)”, and the release bump; no 0.155.0-alpha.16.2 exists as a tag or npm version. Thealphatag did not point at alpha.16.3 when checked, and the registry keeps no history of where it pointed before. Content of the 0.157 alpha line through alpha.10 is itemized in 171; rust-v0.156.0…rust-v0.157.0-alpha.11 is 127 commits ahead. ↩↩↩ -
How recent alpha lines resolved into stable releases, from the Codex releases list. 0.149.0 (August 20): every listed pre-release item shipped.129 0.150.0 (August 26): five items shipped (the
Interrupthook, the/copypicker, AGENTS.md skipped in untrusted projects,features.network_proxy.credential_broker, Guardian v2’sreview_scope.computer_use_only) and five moved to 0.151 (/recap, code-mode WebSocket removal, paginated history as the durable-thread default, thepersistenteffort, Guardian v2 image reviews).141142 0.151.0 (August 29): all ten items shipped.143144145 0.152.0 (September 1): all thirteen items shipped, butupdate_planlanded opt-in because #41744 reversed #41630 before the release.146147 0.153.0 to 0.153.2 (September 3): none of the listed alpha items shipped.149151152 0.153.3 and 0.153.4 (September 4): the Astra catalogs shipped (#42874, #42805).156157 Around then developers.openai.com/codex/* began redirecting to learn.chatgpt.com/docs/*.155 0.154.0 (September 9): cut at about alpha.6, with none of alpha.7’s 58 commits; earlier notes 150, 153, 159, 160.161 0.155.0 (September 17): the voice and worktree default changes (#44921, #44870) were not in the tag and shipped in 0.156; earlier notes 163, 164.165 0.156.0 (September 22): all fifteen items shipped; the stable content equals rust-v0.156.0-alpha.16. That morning there was no rust-v0.156.0 tag and v2.73 of this guide called the line skipped; the stable arrived that evening. A missing tag describes only the moment it was checked. Earlier notes 166, 168, 169.170 0.156.1 (September 23): a tag before its release (171), published hours later.172alphatag: it pointed at the out-of-band 0.155.0-alpha.2.5 (September 16) and 0.155.0-alpha.9.2 (September 18), each older thanlatest; other out-of-band builds were 0.155.0-alpha.16.1 (September 22)169 and 0.155.0-alpha.16.3 (September 23).173 ↩↩ -
Codex CLI v0.157.0 release notes, stable, published September 25, 2026 (02:31:06 UTC), and v0.157.1, published September 26, 2026 (01:02:31 UTC). 0.157.0: rust-v0.156.0…rust-v0.157.0 is 128 commits, cut from 0.157.0-alpha.11.1. In the compare and in code at the tag:
5106a523“Enable the fullscreen transcript by default (#47178)” (the PR: “tui.fullscreen_transcript=falserestores terminal scrollback”);75ec81c8“Enable automatic daemon startup by default (#47179)” (daemon_auto_startisStage::Stable,default_enabled: true; launch exclusions incodex-rs/tui/src/daemon_startup.rsinclude--no-daemon,--oss,--profile, workload identity,CODEX_EXEC_SERVER_URL, and most-c,--enable, and--disableoverrides);d6093d32(#47318) adds the run-without, restart, or cancel choices, “Default to cancel”;279ba894“Enable Guardian thread context by default (#47275)”;df309410“Add GPT-6 Sol and Luna to Amazon Bedrock catalogs (#47347)” (“Make GPT-6 Sol the default and provider fallback model”);cf6754e6(#47130) removesultrafastfromgpt-5.6-sol;24462234“Refresh bundled model metadata and instructions (#47397)” setssupports_experimental_contextto false forgpt-6-astra, andcodex-rs/core/src/session/token_budget.rsreturns early for such a model.service_tier_resolution.rsis identical to 0.156.1, so the Fast default in 172 still holds. 0.157.1: rust-v0.157.0…rust-v0.157.1 is five commits: #48138 and #48238 (CREATE_NO_WINDOWfor the code-mode host and local stdio MCP servers), #48157, #48272 (“Detached Windows daemons can inherit the launcher’s output pipes, leaving callers waiting for EOF”), and the release commit; its release notes list none of them. Docs, accessed September 26, 2026: the changelog has entries for both releases; the models, pricing, and speed pages were unchanged from 231 and 232; the config reference documented neithertui.fullscreen_transcriptnordaemon_auto_start. ↩↩↩↩↩↩↩↩↩↩↩↩ -
Alpha-channel state, verified September 26, 2026 against the npm registry and the GitHub releases API. npm dist-tags:
latest= 0.157.1,alpha= 0.159.0-alpha.4 (npm 06:33:57 UTC; GitHub rust-v0.159.0-alpha.4 06:21:38 UTC), every per-platformalpha-*tag matching. The 0.158 line: rust-v0.158.0-alpha.1 is a tag only; alpha.2 (September 23, 13:07 UTC) through alpha.15 (September 25, 17:33 UTC) were published; no rust-v0.158.0 tag and no 0.158.0 npm version exist. rust-v0.159.0-alpha.1 was published September 25 at 18:48 UTC (npm 19:02 UTC); rust-v0.158.0-alpha.15…rust-v0.159.0-alpha.1 is ahead_by 5, behind_by 1. Out-of-band cuts since 173: 0.155.0-alpha.16.4 (GitHub September 23, 19:55 UTC; three changes over alpha.16 plus the release commit: “Add system proxy fallback for login and startup requests (#46562)”, “Backport GPT-6 Sol and Luna to 0.155 alpha (#47332)”, and “Allow unrelated namespace mounts in Linux sandbox socket checks (#46535)”), 0.157.0-alpha.11.1 (September 24, 21:50 UTC; #47899 over alpha.11, and the base of stable 0.157.0), and 0.158.0-alpha.15.1 (September 26, 02:58 UTC) and 0.158.0-alpha.2.1 (04:51 UTC), each carrying the same four Windows fixes as 0.157.1 over its base. 0.158.0-alpha.2.1 reached npm at 05:04:15 UTC, after 0.159.0-alpha.3; whether thealphatag pointed at it before 0.159.0-alpha.4 is not recoverable from the registry. 0.158 is not described as skipped, because no higher version has shipped stable. ↩↩ -
Codex CLI v0.158.0 release notes, stable, published September 28, 2026 (05:07:23 UTC; npm 05:12:20 UTC). rust-v0.157.1…rust-v0.158.0 is ahead_by 207. rust-v0.158.0-alpha.15.4…rust-v0.158.0 is one commit, the release commit, so the stable was cut from alpha.15.4: alpha.15 plus sixteen cherry-picks, among them the four 0.157.1 Windows fixes. Defaults, checked in code at the tag and unchanged at rust-v0.159.1:
c098f97e“Enable terminal input approval by default (#47799)” (write_stdin_approvalisStage::Stable,default_enabled: true;codex-rs/core/src/unified_exec/stdin_approval.rs: “Runtime-internal grants alone do not require review; agent grants and policy drift do”); #47639 “Addtui.copy_on_selectwithauto(default),always, andnevermodes” (codex-rs/config/src/types.rs: “Defaults toauto: enabled except in direct terminals known to forward their native copy shortcut (Ghostty 1.2+, Kitty on macOS, Windows Terminal, and VS Code on Windows)”); #48118,right_click_pastewithAutoas the default (“Enable on Windows/WSL/Linux”),On, andOff;a6df7385“Make thread-owned Guardian context always enabled (#47686)” (“Deprecate and ignorefeatures.guardianv2.thread_context, including profile overrides, with a migration notice.”). Also:694d8d45(#47932) removes GPT-5.4 from the bundled and Bedrock catalogs, whilecodex-rs/tui/src/app/startup_prompts.rsstill maps savedgpt-5.4togpt-6-sol;b725da3b(#47971): “Displayproliteas ‘Pro’,proas ‘Pro (More)’, andpromaxas ‘Pro (Max)’”.daemon_auto_start,worktrees,realtime_conversation, andguardian_reuse_parent_compactionstay stable and on, andfullscreen_transcriptstays on by default. The docs changelog has a 2026-09-28 “Codex CLI 0.158.0” entry; the config reference documented none ofwrite_stdin_approval,copy_on_select,right_click_paste,fullscreen_transcript, ordaemon_auto_start. Checked September 29, 2026. ↩↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.159.0 release notes, stable, published September 29, 2026 (08:05:42 UTC; tag created 06:52:06 UTC; npm 08:10:59 UTC). rust-v0.158.0…rust-v0.159.0 is ahead_by 89, behind_by 17 (0.158.0’s sixteen cherry-picks and its release commit, which reach main as different commits). The cut: rust-v0.159.0-alpha.13…rust-v0.159.0 is one commit, the release-notes commit
687a119f; alpha.13 was published September 28 at 15:20:06 UTC. Already in 0.158.0: #48138, #48157, #48238, #48272, #48352, #48469, #48483, #48491, #48502, #48513, #48544, #48548, #48549, #48621, #48686, and #48824 appear in both compares.tui.prompt_suggestionsexists at rust-v0.158.0-alpha.15 (codex-rs/config/src/types.rs: “Suggest a next message after successful turns. Defaults tofalse.”) and at none of rust-v0.156.1, rust-v0.157.1, rust-v0.158.0, or rust-v0.159.0. New: #48135 and #48141,instant_interrupt(codex-rs/features/src/lib.rs:Stage::UnderDevelopment,default_enabled: false, “Preempt responses and yield foreground code-mode observations on new user input”); #48205, #48206, #48805, #48814, #48895, #48628, #48828, #48199, #48754, #48151, #48155; #48176 (“Add.awsto the protected metadata paths alongside.git,.agents, and.codex… Preserve explicit user rules that override the default protection”); #48565 (“Allow macOS TLS trust evaluation in network-enabled Seatbelt profiles”); #48198 (“Honor execution environment proxy requirements”); #48604 (theplugin-creatorskill deleted). The docs changelog carries a 2026-09-29 “Codex CLI 0.159.0” entry matching the release body. Verified 2026-09-29. ↩↩↩ -
Codex CLI v0.159.1 release notes, stable, published September 29, 2026 (20:32 UTC). rust-v0.159.0…rust-v0.159.1 is three commits:
9fb2f5f4(#49323),3b765518(#49342), and the release commit. Release notes: “Added GPT-6.1 Sol as the default model in the bundled catalog and Amazon Bedrock Mantle and Runtime catalogs. (#49323, #49342)”. At the tag,codex-rs/models-manager/models.jsongivesgpt-6.1-solpriority 1, “Latest workhorse model for coding and everyday work.”,default_reasoning_levellow,context_window272000,default_service_tiernull with a Fast tier, andsupports_experimental_contextfalse;gpt-6-solbecomes “Previous generation workhorse model.” and keepsdefault_service_tierpriority. Docs as read on September 29, 2026 (the models and speed pages have changed since; 233 and 234 hold the current wording): the changelog entry “GPT-6.1 Sol in Codex and ChatGPT Work”: “GPT-6.1 Sol offers near-Astra performance for complex work at a lower cost than Astra.” The models page then said: “The GPT-6.1 Sol launch rollout includes Plus, Pro, Business, Enterprise, and Edu”; “For Enterprise and Edu, the plan keeps GPT-6.1 Sol off by default until an administrator enables it. Free and Go are not included at launch”. The pricing page: GPT-6.1 Sol at 50 / 2.5 / 250 credits per 1M tokens and a Plus band of 15-160 messages; Fast at 2.5x included usage and 2x purchased credits. The config reference describesfeatures.context_management.experimental_modeas “Experimental context-management setting. The feature is not currently available.” The API model page: $2.00 input, $0.10 cached input, $10.00 output per 1M tokens; above 272K input tokens, 2x input and 1.5x output for the full request; Fast at 2x. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Alpha-channel state, verified September 29, 2026 against the npm registry and the GitHub releases API. npm dist-tags:
latest= 0.159.1,alpha= 0.161.0-alpha.2 (npm 18:45:02 UTC; GitHub rust-v0.161.0-alpha.2 18:32:11 UTC), every per-platformalpha-*tag matching. The 0.159 line ran from alpha.1 (GitHub September 25, 18:48 UTC) to alpha.13 (September 28, 15:20 UTC), the base of 0.159.0 (178). The 0.160 line: tags rust-v0.160.0-alpha.1 through alpha.6 exist; GitHub prereleases and npm versions exist for alpha.2 (September 28, 19:51 UTC), alpha.3 (September 29, 01:32 UTC), and alpha.6 (06:27 UTC), while alpha.1, alpha.4, and alpha.5 are tags only. No rust-v0.160.0 tag and no 0.160.0 npm version exist. rust-v0.160.0-alpha.6…rust-v0.161.0-alpha.1 is ahead_by 1, behind_by 1:8c0a03fe“Release 0.161.0-alpha.1,” which changes only the version incodex-rs/Cargo.toml; 0.161.0-alpha.1 was published at 16:22:41 UTC (npm 16:37:40 UTC). rust-v0.159.0…rust-v0.160.0-alpha.6 is 54 ahead, 1 behind. 0.160 is not described as skipped, because no higher version has shipped stable. Out-of-band cuts since 176: 0.158.0-alpha.15.2 (September 27, 00:02 UTC), 0.158.0-alpha.15.3 (19:18 UTC), and 0.158.0-alpha.15.4 (September 28, 01:46 UTC), the release-branch builds that led to 0.158.0 (177); whether thealphatag pointed at any of them is not recoverable from the registry. ↩↩↩↩ -
Codex CLI v0.159.2 release notes, stable, published September 29, 2026 (23:57:16 UTC; npm September 30, 00:03:49 UTC). rust-v0.159.1…rust-v0.159.2 is two commits:
2851358e“[0.159] Backport Windows console suppression for 0.159.2 (#49385)” and the release commit. Release notes: “Suppressed console windows flashing on Windows when Codex launches background processes and sandboxed commands. (#49385)”. #49385 cherry-picks #49164 (“Suppress Windows console windows for background subprocesses”) and #49308 (“Run piped legacy Windows sandbox processes without a console”) for #48074 (“Windows: terminal windows repeatedly flash during requests after installing the Codex daemon”). In code, a new crate,codex-rs/utils/process, providesbackground_command, which setsCREATE_NO_WINDOWon Windows and is a plainCommand::newelsewhere; shell-tool spawns, shell snapshots, hooks, Git, plugins, Bedrock auth refresh,codex doctor, and Windows sandbox setup now use it. The compare touches none ofmodels.json,codex-rs/features/src/lib.rs,codex-rs/config/src/types.rs,service_tier_resolution.rs, ortoken_budget.rs, so defaults are unchanged:gpt-6.1-solis priority 1 withdefault_service_tiernull,gpt-6-solandgpt-6-lunakeeppriority,write_stdin_approvalanddaemon_auto_startare stable and on, andcopy_on_selectandright_click_pastedefault toAuto. Docs as read on September 30, 2026 (the models page has changed since; see 233): the changelog had a 2026-09-29 “Codex CLI 0.159.2” entry; the models page said “For complex coding and agentic workflows, use GPT-6.1 Sol when available to your account and client”; the config reference said offeatures.context_management.experimental_mode, “The feature is not currently available”; the pricing page listed GPT-6.1 Sol at 50 / 2.5 / 250 credits and Fast at 2.5x. ↩↩↩ -
Alpha-channel state, verified September 30, 2026 against the npm registry and the GitHub releases API. npm dist-tags:
latest= 0.159.2,alpha= 0.161.0-alpha.4 (npm 12:02:07 UTC; GitHub rust-v0.161.0-alpha.4 11:49:10 UTC), every per-platformalpha-*tag matching. Since 180: rust-v0.161.0-alpha.3 (GitHub September 30, 02:24:58 UTC; npm 02:39:26 UTC) and alpha.4, whose release bodies read only “Release 0.161.0-alpha.3” and “Release 0.161.0-alpha.4”; rust-v0.161.0-alpha.2…alpha.3 is ahead_by 30 and alpha.3…alpha.4 ahead_by 16, each behind_by 1. rust-v0.160.0-alpha.6.1 (GitHub September 30, 01:09:54 UTC; npm 01:24:04 UTC) is two commits over alpha.6:917ab708“[0.160] Backport remaining Windows console fix to frozen alpha.6 (#49386)” and the release commit4f06e9e5. #49386 (baserelease/0.160.0-alpha.6, merged September 29, 22:52 UTC) backports #49308 and says alpha.6 “already contains #49164, so only the missing patch is included” and “This does not advance the baked candidate to current main or publish stable 0.160.” No rust-v0.160.0 or rust-v0.161.0 tag and no 0.160.0 or 0.161.0 npm version exist. Whetheralphapointed at 0.160.0-alpha.6.1 before 0.161.0-alpha.3 published is not recoverable from the registry. ↩↩↩↩ -
Codex CLI v0.160.0 release notes, stable, published October 1, 2026 (20:19:13 UTC; npm 20:26:19 UTC). rust-v0.160.0-alpha.6.1…rust-v0.160.0 is two commits:
cb779962“[0.160] Backport maintenance-line catalog and security reminder updates (#49763)” and the release commit. #49763 cherry-picks #49318 (bundled catalog), #49339 (Bedrock catalogs), and #49715 (account-security reminders) “to bring the frozen 0.160 candidate into parity with the fixes delivered on the 0.159 maintenance line”. rust-v0.159.2…rust-v0.160.1 is 57 commits. At rust-v0.160.1,codex-rs/models-manager/models.jsonis byte-identical to rust-v0.159.2:gpt-6.1-solpriority 1,gpt-6-astra2,gpt-6-sol3,gpt-6-luna4.codex-rs/features/src/lib.rsadds two specs,guardian_root_handoff_contextandguardian_conversation_history_tools, eachstage: Stage::UnderDevelopment, default_enabled: false.AutoReviewTomlincodex-rs/config/src/config_toml.rsaddsexperimental_conversation_history_prompt(“Experimental replacement for the history-retrieval instructions when history tools and Apps are enabled. Omitted or blank values use the built-in prompt.”) andconversation_history_max_output_tokens(“Defaults to 4,000; stricter parent tool limits still apply.”).codex-rs/model-provider-info/src/lib.rs(#49118):env_keyis the “Environment variable that stores the user’s API key for this provider”; withrequires_openai_auth, “credentials are stored using the backend selected bycli_auth_credentials_store.”codex-rs/tui/src/subscription.rsmaps Pro, ProLite, and ProMax to “Pro 200,” “Pro 100,” and “Pro 500” (#49043, #49079).codex-rs/tui/src/projectless.rsapplies workspace defaults only when no project layer, saved trust, explicit sandbox or permission setting, remote workspace, or managed default intervenes (#49160). The config reference, accessed October 6, 2026, describesmodel_providers.<id>.env_keyas “Environment variable supplying the provider API key” and did not yet list the new Guardian flags orauto_reviewkeys. ↩↩↩↩↩ -
Codex CLI v0.160.1 release notes, stable (prerelease false), published October 5, 2026 (18:29:37 UTC; npm 18:33:51 UTC); npm
latestand every per-platform tag read 0.160.1 at the October 6 access. Installnpm install -g @openai/codex@0.160.1. rust-v0.160.0…rust-v0.160.1 is ahead_by 2, behind_by 1:91c0ea5d“Backport Windows remote MCP environment preservation to 0.160 (#51121)” and the release commit, touching onlycodex-rs/rmcp-client/src/stdio_server_launcher.rsandcodex-rs/Cargo.toml(version 0.160.1). #51121 is the exact single-file patch of #50129: “PreserveSYSTEMROOT,TEMP, andTMPin the remote environment allowlist,” with a regression test that “unrequested secrets remain excluded.” At the tag, the launcher chains["SYSTEMROOT", "TEMP", "TMP"]into the remote allowlist. Verified 2026-10-06. ↩↩↩ -
Codex CLI v0.159.3 release notes, stable (prerelease false), published September 30, 2026 (22:57:34 UTC; npm 23:02:02 UTC). Release body, verbatim: “Eligible local sessions signed in with ChatGPT can now show optional reminders to complete account security setup. (#49744)”. rust-v0.159.2…rust-v0.159.3 is ahead_by 2, behind_by 1:
9fa22a5c“[0.159] Backport account security setup reminders for 0.159.3 (#49744)” (merged torelease/0.159at 21:44 UTC) and the release commit; 24 files. Upstream #49715: notices fetched asynchronously “for local ChatGPT sessions using the OpenAI provider,” shown “as dismissible inline banners with a browser action, while giving applicable usage banners priority,” with dismissal preserved “across thread changes, reconnects, and banner replacement.”codex-rs/tui/src/security_setup.rsat rust-v0.160.1 (the same change via #49763): “The server owns eligibility, rollout and cutoff copy. Reads never block a turn; no reminder analytics are sent. Unknown or unavailable state produces no notice”; it returns early for non-openaiproviders, remote workspaces, non-ChatGPT auth, and FedRAMP accounts, and accepts onlyhttps://chatgpt.comaction URLs. Verified 2026-10-06. ↩↩ -
Alpha-channel state, verified October 6, 2026 against the npm registry and the GitHub releases API. npm dist-tags:
latest= 0.160.1,alpha= 0.162.0-alpha.16 (npm October 5, 21:53:28 UTC; GitHub rust-v0.162.0-alpha.16 prerelease, 21:37:19 UTC), every per-platformalpha-*tag matching. rust-v0.161.0-alpha.13.1 is a GitHub prerelease (October 6, 05:27:02 UTC; npm 05:41:18 UTC) published under therelease-0.161.0-alpha.13.1-alphadist-tag, notalpha. The three most recent non-prerelease GitHub releases are rust-v0.160.1, rust-v0.160.0, and rust-v0.159.3; no 0.161.0 stable exists. 0.161 is not described as skipped, because no higher version has shipped stable. ↩↩↩ -
Codex CLI v0.161.0 release notes, stable, published October 7, 2026 (15:58:45 UTC; npm 16:04:02 UTC); cut from 0.161.0-alpha.13.1; rust-v0.160.1…rust-v0.161.0 is ahead_by 155. New features, quoted: “Sign in to MCP servers from an active terminal session with
/mcp login <name>. (#49290)”; “Choose your microphone, speaker, and microphone input channels for voice conversations, with preferences saved locally. (#49437, #49836)”; “Daybreak is opt-in through--enable cli_daybreakorfeatures.cli_daybreak=true;daybreak=truealone is insufficient. By default, controls and indicators are hidden,/daybreakis unavailable, and automatic Cyber routing is omitted”; “Select a Cyber access program per turn withcodex exec --cyber-access-programor the TypeScript SDK’scyberAccessProgramoption. The explicit exec override remains available withcli_daybreakdisabled and leaves the saved choice unchanged. (#49939, #51207)”; “Amazon Bedrock supports multi-agent V2 and Ultra reasoning on compatible models; Bedrock Mantle also accepts AWS GovCloud regions. (#49345, #49813)”; “Authentication guidance now accounts for keyring storage instead of implying credentials always reside inauth.json. (#49361)”. The note’s “GPT-6.1 Sol is now the default model in the bundled and Amazon Bedrock catalogs. (#49318, #49339)” names the PRs v0.159.1 shipped;models.jsonat rust-v0.161.0 is identical to rust-v0.160.1. At the tag,codex-rs/tui/src/slash_command.rsdescribes/mcpas “list MCP tools; use /mcp verbose or /mcp login” and /daybreakas “turn Daybreak on or off”;codex-rs/exec/src/cli.rsdefines--cyber-access-program <PROGRAM>with the valuesstandard,daybreak_blue, anddaybreak_red. From the PR list: “#49807 Enable API-key model discovery by default”. Checked October 11, 2026. ↩↩↩↩↩↩↩ -
Codex CLI v0.162.0 release notes, stable, published October 8, 2026 (18:55:59 UTC; npm 19:01:18 UTC); cut from 0.162.0-alpha.18.1; rust-v0.161.0…rust-v0.162.0 is ahead_by 227. New features, quoted: “Add tools for creating and listing managed Git worktrees from trusted local projects when the worktrees feature is enabled. (#50148)”; “Pin tasks in the agent Command Center with
pand keep them in a shared Pinned group when supported by the server. (#51500)”; “Navigate and copy transcript blocks with/copy, useCtrl+Insertto copy selections, and tune mouse-wheel scrolling withtui.mouse_scroll_speed. (#50434, #50215, #50209)”; “Configure live web access and remote compaction capabilities for custom Responses-compatible model providers. (#50459)”; fix: “Preserve existing CRLF line endings inapply_patchupdates without requiring an opt-in. (#51203)”. Not in the release notes: PR #51812 “Enable instant interrupts by default” merged October 7, 2026, andcodex-rs/features/src/lib.rscarriesinstant_interruptwithdefault_enabled: falseat rust-v0.161.0 andtrueat rust-v0.162.1 (stageUnderDevelopmentat both;Features::with_defaults()enables every spec whosedefault_enabledis true). In the same file,apply_patch_preserve_line_endingsmoves toStage::Removedandultrafast_modeis added as stable and on (“Enable Ultra Fast mode independently of Fast mode”).codex-rs/config/src/tui_mouse_scroll.rsrejects atui.mouse_scroll_speedthat is not “a finite positive number”;codex-rs/model-provider-info/src/capabilities.rsdefinesexternal_web_access: Option<bool>(“Whether hosted web search may access the live web”) andremote_compactionwith the valuesunsupportedandv2, defaulting to V2 for OpenAI and Azure Responses providers. From the PR list: “#51253 Enforce Fast and Ultra Fast policies independently”, “#50472 Enable Ultrafast service tiers for Amazon Bedrock Astra models”. Checked October 11, 2026. ↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.162.1 release notes, stable (prerelease false), published October 9, 2026 (19:44:51 UTC; npm 19:50:30 UTC); npm
latestand every per-platform tag read 0.162.1 at the October 11 access. Installnpm install -g @openai/codex@0.162.1. rust-v0.162.0…rust-v0.162.1 is ahead_by 3, behind_by 1:1a1335ee“Preserve line breaks and links in multiline async questions (#51866)”,f715d506“Limit daemon feature compatibility checks to explicit CLI overrides (#52648)”, and the release commit. Release body, verbatim: “Fixed a TUI crash when asynchronous questions contain multiple lines, preserving line breaks and complete hyperlink destinations. (#51866)”; “Fixed startup failures caused by differences between a running background server’s feature settings and CLI defaults. Compatibility checks now apply only to explicit command-line feature overrides. (#52648)”. ↩↩↩↩↩ -
Alpha-channel and flag state, verified October 11, 2026 against the npm registry, the GitHub releases API, and the source at each tag. npm dist-tags:
latest= 0.162.1,alpha= 0.163.0-alpha.5 (npm October 10, 00:48:26 UTC; GitHub rust-v0.163.0-alpha.5 prerelease, 00:26:59 UTC), every per-platformalpha-*tag matching. Stable cuts: v0.161.0 from 0.161.0-alpha.13.1 and v0.162.0 from 0.162.0-alpha.18.1, each one commit ahead of its base; rust-v0.162.0-alpha.20…rust-v0.162.0 is ahead_by 2, behind_by 52, so alpha.20 (October 8, 02:25 UTC) carried 52 commits the stable did not.codex-rs/features/src/lib.rs, rust-v0.160.1 to rust-v0.161.0:api_key_model_discoverymoves fromUnderDevelopment, off, toStable, on (PR #49807 “Enable API-key model discovery by default”;codex-rs/models-manager/src/manager.rs: “Supply startup API-key discovery policy; live changes require a new session. Static catalogs ignore this setting”, andshould_refresh_models()is true whensupports_api_key_discovery(), which requires API-key auth against an endpoint that supports API-key model listing); addedcli_daybreak(UnderDevelopment, off),api_key_cyber_access_programs(Stable, off),browser_annotation_apiandin_app_voice(Stable, on, both “Requirements-only gate: this should be set from requirements, not user config”),login_shell_package_path(Experimental, “Bundled tools in login shells”), andmodel_catalog_in_context(UnderDevelopment, off). The three most recent non-prerelease GitHub releases are rust-v0.162.1, rust-v0.162.0, and rust-v0.161.0. ↩↩↩↩↩ -
OpenAI, Codex source at commit 72f999e, seatbelt.rs and seatbelt_base_policy.sbpl, fetched October 11, 2026: when the policy has full-disk read access and no unreadable roots, the generated macOS profile is
(allow file-read*); the base policy notes that child processes inherit the policy of their parent. On the author’s Mac, Codex CLI 0.154.0 inread-onlymode, and again with the author’s configuration (nosandbox_modeset), read a file that needs Full Disk Access; see macOS Full Disk Access and AI Agents, section 5. ↩ -
Alpha-channel state, verified October 13, 2026 against the npm registry and the GitHub releases API. npm dist-tags:
latest= 0.162.1,alpha= 0.163.0-alpha.9 (npm 15:58:51 UTC; GitHub rust-v0.163.0-alpha.9 prerelease, 15:47:20 UTC), after rust-v0.163.0-alpha.8 (GitHub 13:14:41 UTC; npm 13:47:11 UTC) the same day. The three most recent non-prerelease GitHub releases are still rust-v0.162.1, rust-v0.162.0, and rust-v0.161.0. ↩↩ -
Alpha-channel state, verified October 14, 2026 against the npm registry and the GitHub releases API. npm dist-tags:
latest= 0.162.1,alpha= 0.163.0-alpha.11 (npm 03:38:05 UTC; GitHub rust-v0.163.0-alpha.11 prerelease, 03:27:29 UTC), after rust-v0.163.0-alpha.10 (GitHub October 13, 19:04:12 UTC; npm per-platform builds from 19:22 UTC). alpha.10 therefore already existed when guide v2.81 named alpha.9 as current; corrected here. The three most recent non-prerelease GitHub releases are still rust-v0.162.1, rust-v0.162.0, and rust-v0.161.0. ↩↩ -
Codex CLI v0.163.0 release notes, stable, published October 15, 2026 (21:30:38 UTC; npm 21:37:11 UTC). rust-v0.162.1…rust-v0.163.0 is ahead_by 232; rust-v0.163.0-alpha.10.2…rust-v0.163.0 is the release commit only. New features, quoted: “Open
/configto search preferences across categories, change supported settings immediately, and see which changes require a restart. (#52990, #53429)”; “Send a follow-up while Codex is responding to steer it immediately. Interrupting a turn also stops active Code Mode cells and their nested tool calls. (#51812, #51835)”; “Configure a leader key in/keymap. The default isCtrl+X, shortcut hints stay open until you choose or cancel, and voice mute moves toF9. (#52273)”; “Restart a managed background server from/daemon. Codex warns about work the restart could interrupt, then reconnects automatically. (#53173)”; “Codex can run independent read-only tools in parallel, including skill, memory, and conversation-history lookups. (#52245)”; “Daybreak is enabled by default for eligible accounts.codex execcan also select it with an OpenAI API key when the server offers access. (#53701, #53717)”. Chores: “Codex now uses its standard shell executor and no longer bundles a patchedzsh. Configurations using the retired shell flags receive a migration notice. (#52160, #52213)”; smaller Linux and macOS packages (#52178). Documentation: “Clarified how the Linux sandbox uses bubblewrap for filesystem isolation and seccomp for syscall filtering. (#52610)”. PR #52273: “Addtui.keymap.global.leader, defaulting toctrl-x, and symbolic bindings such asleader c”. PR #52160: “Ignoreshell_zsh_forkandunified_exec_zsh_fork, emit migration notices for legacy configuration, and warn when ignoring managed requirements for these flags”. ↩↩↩↩↩↩↩↩↩↩↩↩ -
Flag, sandbox, and alpha-channel state checked October 17, 2026 against the source at each tag, the npm registry, and the GitHub releases API.
codex-rs/features/src/lib.rs, rust-v0.162.0 to rust-v0.163.0:cli_daybreakgoes fromUnderDevelopmentand off toStableand on (PR #53701 “Markcli_daybreakas stable and enable it by default”);code_mode_interruptlikewise;api_key_cyber_access_programsturns on (PR #53717);shell_zsh_forkandunified_exec_zsh_forkareRemoved;instant_interruptstaysUnderDevelopmentand on; new and off:async_compaction,code_mode_host_grpc,code_mode_tool_description_first,credential_masking,guardian_trust_orchestrator_connectors,output_token_replay,retain_client_tool_outputs,subagent_default_context_limits. rust-v0.163.0 to rust-v0.164.0-alpha.3:worktreesandrealtime_conversationgo fromStabletoRemovedwith their features on;stable_environment_toolsisRemoved.models.jsonis the same blob at rust-v0.162.1 and rust-v0.163.0. Linux sandbox,codex-rs/linux-sandbox/README.mdat rust-v0.163.0: “The helper uses bubblewrap for filesystem and namespace isolation, and seccomp for syscall filtering.src/seccomp.rsinstallsPR_SET_NO_NEW_PRIVSand the seccomp filters; it also retains the legacy Landlock filesystem implementation”, “Bubblewrap is the default filesystem sandbox”, “On Linux, Codex prefers the firstbwrapfound onPATHoutside the current working directory whenever it is available”, “Ifbwrapis missing, the helper falls back to the bundledcodex-resources/bwrapbinary”. PR #52610 “Align Linux sandbox names and docs with bubblewrap and seccomp” (merged October 9): “Sandbox enforcement behavior is unchanged”. npm:latest0.163.0,alpha0.164.0-alpha.3 (October 17, 04:14:55 UTC; rust-v0.164.0-alpha.3), after rust-v0.164.0-alpha.1 (October 16) and alpha.2. The out-of-band rust-v0.163.0-alpha.10.2 (October 15, 18:26 UTC) followed alpha.10.1 (October 14) on the alpha.10 base. ↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.164.0 release notes, stable, published October 23, 2026 (04:48:10 UTC; npm 04:52:29 UTC). rust-v0.163.0…rust-v0.164.0 is ahead_by 330; rust-v0.164.0-alpha.11…rust-v0.164.0 is the release commit only. New features, quoted: “Save reusable prompts and slash commands in ten numbered
/presetsslots, with a keyboard menu for quick access. (#54380, #54381)”; “Set model, reasoning effort, speed, and permission profiles directly with inline/modeland/permissionsarguments. (#54378, #54383)”; “Authenticate enterprise MCP connections using eligible Codex account grants or dedicated sign-in, including OAuth clients requiring secrets. (#55334, #55859, #56001)”; “Mask credentials during supported remote Bash commands and Zsh snapshot sessions, including credentials from custom providers. (#54309, #54432, #56049)”; “The Amazon Bedrock setup wizard is now enabled by default, with API key entry grouped alongside other AWS sign-in methods when credentials are detected. (#56033, #56023)”. Fixes, quoted: “Windows HTTPS and WebSocket connections now handle proxy authentication challenges using the signed-in user’s Negotiate or NTLM credentials. (#55994, #56000)”. The notes also cover image previews in the fullscreen transcript on Kitty or Sixel terminals (#54216), compaction and resume fixes, sandbox hardening for case-variant paths and symlinks, and disk housekeeping (#53827, #55149, #55689, #55690, #55856). Presets persist undertui.presets(#54380). PR #54378: “Allow/model [model] --reasoning <level> --speed <tier>to update the current session without changing saved defaults.” PR #54383: “Allow/permissions <profile-id>to select a built-in or custom permission profile, for example/permissions :read-only. Support:ask-for-approvaland:approve-for-mealiases”. PR #56033: “Users can still disable it withfeatures.bedrock_setup_wizard = false”. ↩↩↩↩↩↩↩↩↩↩ -
Flag and alpha-channel state verified October 23, 2026 against the source at each tag, the npm registry, and the GitHub releases API.
codex-rs/features/src/lib.rs, rust-v0.163.0 (170 flags) to rust-v0.164.0 (177):bedrock_setup_wizard,incremental_tools, andmcp_oauth_refresh_coordinationUnderDevelopment, off, toStable, on;worktreesandrealtime_conversationStable, on, toRemoved, on;stable_environment_toolsUnderDevelopmenttoRemoved;transcript_v2DeprecatedtoRemoved;credential_maskingunchanged,UnderDevelopment, off; new and off:app_server_websocket_compression,executor_capability_discovery_v2,mcp_tool_list_changed,multi_env_copy_file,runtime_agent_instances,subagent_thread_environments,wake_on_agent_messages. rust-v0.164.0 to rust-v0.165.0-alpha.1 (180 flags):reasoning_effort_overrideUnderDevelopment, off, toStable, on; new and off:guardianv3,guardian_recorded_items,tui_multi_backend.codex-rs/models-manager/models.jsonis the same blob (72a78e0e) at rust-v0.162.1, rust-v0.163.0, and rust-v0.164.0; its eleven entries aregpt-6-astra,gpt-6.1-sol,gpt-6-sol,gpt-6-luna,gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna,gpt-daybreak-blue-latest,gpt-daybreak-red-latest,gpt-5.5, andcodex-auto-review. npm dist-tags:latest= 0.164.0,alpha= 0.165.0-alpha.1 (npm October 23, 14:22:16 UTC; GitHub rust-v0.165.0-alpha.1 prerelease, 14:09:53 UTC); the alpha release body is the stub “Release 0.165.0-alpha.1”. Out-of-band releases in the window: rust-v0.163.0-alpha.11.1 (October 21, 22:18 UTC), rust-v0.163.0-alpha.11.2 (October 22, 06:41 UTC), and rust-v0.164.0-alpha.11.1 (October 23, 01:58 UTC), each with a stub body. ↩↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.165.0 release notes, stable, published October 27, 2026 (20:09:38 UTC), and v0.166.0, published October 29, 2026 (19:47:53 UTC); both match the Codex Changelog entries of those dates. v0.165.0, quoted: “Added a built-in Google Cloud Vertex AI provider, configured with
model_provider = "gcp". (#56265)”; “Enabled reasoning effort changes during a conversation by default for supported models. (#56163)”; “Enabled memory v2 by default for fresh profiles and added support for importing external-agent memories into it. (#56211, #56414)”. v0.166.0, quoted: “Added GPT-6.1 Terra to the bundled, Vertex AI, and Amazon Bedrock model catalogs. (#57293)”; “Addedcodex queue --resumeto resume unloaded threads after queueing a message. (#57232)”; “Addedcodex doctor --network-onlyfor focused configuration, connectivity, and WebSocket diagnostics. (#57606)”; also keyboard-driven transcript selection (#57221 to #57224). Changelog, 2026-10-26, “GPT-6.1 Terra in Work and Codex”: “GPT-6.1 Terra is now available in ChatGPT Work and Codex on Plus, Pro, Business, Enterprise, and Edu plans.”; “The model isn’t available in Chat and does not support UAE inference residency.” Models: “GPT-6.1 Terra requires Codex CLI 0.159.0 or later. To use it, runcodex -m gpt-6.1-terra”. Pricing: GPT-6.1 Terra 25 / 1.25 / 125 credits per 1M input, cached input, and output tokens. OpenAI API, GPT-6.1 Terra: $1.00 input, $0.05 cached input, $5.00 output per 1M tokens; 1,050,000 context window; June 1, 2026 knowledge cutoff; “Prompts with more than 272K input tokens are priced at 2x input and cache rates and 1.5x output for the full request.” All fetched November 2, 2026. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Checked November 2, 2026 against the source at each tag and the npm registry.
codex-rs/features/src/lib.rs, rust-v0.164.0 to rust-v0.166.0:reasoning_effort_overridegoes fromUnderDevelopmentand off toStableand on;code_mode_tool_description_firstisRemoved;external_agent_memory_importisUnderDevelopmentand off andmemoriesisStableand off at both tags; new, stable and on:prediction_preserve_parent_tools,plugin_discovery_prefetch. At rust-v0.167.0-alpha.4:suppress_model_change_announcementsandgcp_setup_wizardareStablebut off;deferred_tool_world_stateandretain_client_tool_outputsareStableand on;daemon_auto_startisRemovedwith the feature on.codex-rs/models-manager/models.json: rust-v0.165.0 addsgpt-6.1-terra(“GPT-6.1 Terra”,visibility: list,priority: 7,context_window: 500000,max_context_window: 872000,default_reasoning_level: low,input_modalities: text, image);gpt-6.1-solkeepspriority: 1; the file at rust-v0.166.0 is byte-identical.codex-rs/protocol/src/memory_version.rs(V1default,V2; directoriesmemoriesandmemories_v2) andcodex-rs/core/src/config/mod.rs(“Fresh profiles have no V1 context to preserve or warm up before using V2”: the version becomes V2 when the memory tool is on, no version is set,dual_writeis notfalse, and thememoriesdirectory does not exist).codex-rs/model-provider-info/src/lib.rs:GCP_PROVIDER_ID = "gcp", “Google Cloud Vertex AI”, fieldsproject_id(“Takes precedence overGOOGLE_CLOUD_PROJECT”),location(“defaults toglobalwhen neither is set”),credential_file;codex-rs/cli/src/queue_cmd.rs(--resume: “A failed resume produces a warning and the command still succeeds”);codex-rs/cli/src/doctor.rs(“runs the full diagnostic set unless--network-onlyis selected”);codex-rs/tui/src/slash_command.rshas 65 variants at rust-v0.166.0. Compares: rust-v0.164.0…rust-v0.165.0 71 commits; rust-v0.165.0…rust-v0.166.0 265. npmalphawas 0.167.0-alpha.4 (November 3, 02:33 UTC). ↩↩↩↩↩↩↩↩↩↩ -
Codex CLI v0.167.0 release notes, stable, published November 6, 2026 (01:40:00 UTC; npm 01:46:01 UTC), and v0.167.1, published November 10, 2026 (21:32:01 UTC; npm 21:39:51 UTC). The v0.167.0 notes match the Codex Changelog entry dated 2026-11-06; the v0.167.1 notes are only a “Full Changelog” compare link. v0.167.0, quoted: “Open the agent command center with
codex agents --no-daemon. The command center and session picker now mark unread results (#58238, #58239, #58263, #58264).”; “Switch between connected backends from the terminal session picker and keep your drafts when switching (#58280, #58457).”; “Preview local image attachments while composing on supported terminals, and open viewed local images from clickable transcript paths (#58261, #58446).”; “Enablegcp_setup_wizardto set up Google Cloud Vertex AI with Application Default Credentials or a credential file (#57857, #58427).”; “Opt into macOS or Windows system proxy settings from/experimental(#58157).”; “Expand patch details directly in the transcript while an approval prompt is open (#58281).”; “Ctrl+Lclears the terminal display while keeping earlier messages available throughCtrl+T(#58266).”; “Network approval prompts close when their requests end. Concurrent requests to the same endpoint prompt one at a time (#58350, #58351).” The release’s change list also names #58410 “Enable deferred tool world state by default,” #57859 “Extend the provider OAuth sign-in timeout to ten minutes,” #58368 “Apply PreToolUse hooks before direct Guardian review policy checks,” and #58091 “Update default models for memory extraction and consolidation.” Fetched November 10, 2026. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Checked November 10 and 11, 2026 against the source at each tag, the npm registry, and the GitHub API. Compares: rust-v0.166.0…rust-v0.167.0 is ahead_by 123; rust-v0.167.0-alpha.3.2…rust-v0.167.0 is the release commit only; rust-v0.167.0…rust-v0.167.1 is three commits:
3e9cb463“Add opt-in incremental tools for regular OpenAI Responses (#59832),”ba8b4035“Restrict legacy incremental tools to Amazon Bedrock providers (#60040),” and the release commit.codex-rs/features/src/lib.rs, rust-v0.166.0 to rust-v0.167.0:deferred_tool_world_stategoes fromUnderDevelopmentand off toStableand on (#58410: “Deferred tool namespaces now appear in the developer<tools>context instead of thetool_searchdescription.”);respect_system_proxybecomesExperimental, still off (“Use macOS or Windows system proxy settings for Codex requests.”); new,Stable, off:gcp_setup_wizard,suppress_model_change_announcements. At rust-v0.167.1,daemon_auto_startisStableand on,retain_client_tool_outputsisUnderDevelopmentand off, andcli_resume_account_check,tui_workspace, andagent_message_board_mcpdo not appear. Still removed:worktrees(“Removed compatibility flag. Managed worktrees and repository-aware sessions are always available.”) andrealtime_conversation(“Removed compatibility flag. TUI voice availability follows platform support.”), pluspersonality,plugin_hooks, andterminal_resize_reflow; the loader skips all five keys in[features].memoriesisStable, off, andcode_modeisUnderDevelopment, off.models.jsonandcodex-rs/tui/src/slash_command.rsare byte-identical at rust-v0.166.0, rust-v0.167.0, and rust-v0.167.1; theSlashCommandenum has 65 variants and noPersonality. npm on November 11, 2026:latest0.167.1;alpha0.170.0-alpha.1 (20:15:02 UTC; GitHub prerelease rust-v0.170.0-alpha.1, 20:06:13 UTC), after 0.169.0-alpha.11 (10:20:38 UTC); 0.167.0-alpha.4.1 (November 9, 23:53 UTC) and alpha.4.2 (November 11, 01:38 UTC) were published after the stable. The CLI reference on November 10 still read “codex agentsdoesn’t support--no-daemon,” and the config reference still describedfeatures.realtime_conversationas a switch for/voice. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Codex models documentation, fetched November 10, 2026. Verbatim: “Effective October 14, 2026, at noon PDT (19:00 UTC), GPT-5.5 retires from Codex for users signed in with ChatGPT. The OpenAI API and Codex sessions authenticated with an API key aren’t affected.”; “On Plus, Pro, Business, Enterprise, and Edu plans, choose GPT-6.1 Sol (
gpt-6.1-sol) when available.”; “On Free and Go plans, choose GPT-6 Luna (gpt-6-luna) in the desktop app when available.”; “GPT-6.1 Sol uses a default context window of 500,000 tokens in Codex and ChatGPT Work.”; “GPT-6.1 Terra requires Codex CLI 0.159.0 or later. To use it, runcodex -m gpt-6.1-terra.”; “GPT-5.3-Codex-Spark retired on September 14, 2026, and is no longer available in the ChatGPT desktop app, Codex CLI, or IDE extension.”; “Current Codex releases don’t supportwire_api = "chat"or a Chat Completions-only endpoint.”; “Thegpt-5.4andgpt-5.4-minimodels retired from Codex with ChatGPT sign-in on August 31, 2026.” ↩↩↩↩↩↩↩↩↩↩↩↩ -
ChatGPT pricing, fetched November 10, 2026. Plan cards: Free $0 and Go $8 (“GPT-6 Luna at Standard speed in the desktop app, subject to rollout”); Plus $20 (“GPT-6.1 Sol and GPT-6 Luna”); Pro from $100 (“Plans at $100, $200, or $500 USD per month”; Ultrafast mode “access on Pro $500”); Business $20 per user per month (“2+ users, billed annually. $25 per user per month when billed monthly.”). Limits: “The estimates below show local messages per five-hour period for Plus and Standard Business. Pro plans currently have no five-hour limit.”; GPT-6 Astra 5-45, GPT-6.1 Sol 15-160, GPT-6.1 Terra 35-285, GPT-6 Sol 15-150, GPT-6 Luna 350-3,000 for both; “Weekly limits may also apply.” Speed multipliers (included subscription usage / purchased credits): Fast 2.5x / 2x; GPT-6 Astra Ultrafast 8x / 6x; GPT-6.1 Sol Ultrafast 8x / 6x. Credits per 1M tokens (input / cached / output): GPT-6 Astra 250 / 25 / 1,250; GPT-6.1 Sol 50 / 2.5 / 250; GPT-6.1 Terra 25 / 1.25 / 125; GPT-6 Sol 50 / 5 / 250; GPT-6 Luna 2.5 / 0.25 / 12.5; GPT-5.6 Sol 100 / 10 / 500; GPT-5.6 Terra 50 / 5 / 300; GPT-5.6 Luna 5 / 0.5 / 30. “A typical GPT-5.6 Sol task may use 2-15 credits.”; “GPT-5.6 Sol’s promotional pricing is available at least through November 21, 2026.”; “GPT-6.1 Sol usage drawn from your subscription has no long-context surcharge in Codex or ChatGPT Work.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩
-
Codex speed documentation. On November 25, 2026 the page reads: “GPT-6 Astra and GPT-6.1 Sol also support Ultrafast on Pro $500 and eligible Enterprise and Edu plans. In Codex, GPT-6 Astra generates tokens at up to eight times its Standard speed with Ultrafast.”; “Fast mode supports GPT-6.2 Astra and GPT-6.2 Sol. You can also use it with GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna.”; the multipliers have moved to the pricing page (260). The rest of this note records the page and the API pages as fetched November 10, 2026; the speed-page sentences quoted next are no longer on it: “Ultrafast supports GPT-6 Astra and GPT-6.1 Sol. GPT-6 Astra Ultrafast generates tokens up to 8x faster than GPT-6 Astra in Standard mode in Codex. Ultrafast is available in Codex and ChatGPT Work on Pro $500 and eligible Enterprise and Edu plans.”; “Ultrafast mode bills purchased credits and Enterprise pay-as-you-go usage at 6x the Standard rate. Ultrafast uses included subscription limits at 8x the Standard rate.”; “Other self-serve plans don’t have access to Ultrafast at launch, even with purchased credits.”; Fast mode covers “GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna, where available.” The docs changelog announced “GPT-6.1 Sol Ultrafast in Codex and ChatGPT Work” on 2026-10-08, with Enterprise access off by default. API, same date: the GPT-6.1 Sol model page says “Ultrafast mode prices are 6x Standard.”; the API pricing page lists Ultrafast at $12 / $60 per 1M tokens for
gpt-6.1-soland $60 / $300 forgpt-6-astra; the Ultrafast guide setsservice_tiertoultrafast. The Codex config reference describesservice_tieras “fastor another tier advertised by the active model,” and the catalog bundled with v0.167.1 advertises only the Fast (priority) tier (205). ↩↩↩↩ -
codex-rs/models-manager/models.jsonat tag rust-v0.167.1, fetched November 10, 2026; the file is byte-identical at rust-v0.166.0 and rust-v0.167.0. Inpriorityorder:gpt-6.1-sol(1;context_window272000,max_context_window872000,default_reasoning_levellow, levelslowthroughultra),gpt-6-astra(2; 272000;low),gpt-6-sol(3; 272000;medium;default_service_tierpriority),gpt-6-luna(4; 272000;medium;default_service_tierpriority; levelslowthroughmax),gpt-5.6-sol(5; 272000;low),gpt-6.1-terra(7; 500000, maximum 872000;low),gpt-5.6-terra(8; 272000;medium),gpt-5.6-luna(9; 272000;medium), andgpt-5.5(13; 272000, maximum 272000;medium; levelslowthroughxhigh; “Legacy coding model.”). No entry offersminimal, and there is nogpt-5.3-codex-sparkorgpt-5.4entry. Every entry’struncation_policyis 10,000 tokens ("mode": "tokens", "limit": 10000), every listed entry’sservice_tiersholds onlypriority(Fast; described as “2x speed, increased usage” forgpt-6.1-solandgpt-6-astra), and every entry exceptgpt-5.5setstool_modetocode_mode_only.upgradetargets:gpt-5.6-sol,gpt-5.6-terra, andgpt-5.5togpt-6-sol;gpt-5.6-lunatogpt-6-luna. The GPT-5.6 descriptions begin “Older”; theultralevel reads “Maximum reasoning with automatic task delegation”. Same tag:codex-rs/tui/src/app/startup_prompts.rskeeps fallback migrations for saved selections that have no catalog entry (gpt-5.4togpt-6-sol,gpt-5.4-minitogpt-6-luna);codex-rs/tui/src/chatwidget/rate_limits.rssetsNUDGE_MODEL_SLUG, the model the rate-limit switch prompt offers, to GPT-6 Luna;codex-rs/tui/src/service_tier_resolution.rsapplies a model’sdefault_service_tieronly when noservice_tieris configured and the user has not opted out of Fast defaults. ↩↩↩↩↩↩↩↩↩↩ -
Codex configuration reference, fetched November 10, 2026. Verbatim:
personality, “Deprecated compatibility setting.friendlyandpragmaticno longer select a style.noneomits the built-in Personality section from model instructions; explicit instruction overrides are unchanged.”;approvals_reviewer(user | auto_review), “Defaults touser;auto_reviewuses the reviewer subagent. This setting doesn’t change sandboxing or review actions already allowed inside the sandbox.”;model_reasoning_effort, “Reasoning effort advertised by the selected model, such aslow,medium,high,xhigh,max, orultra. Available levels depend on the model and client.”;cli_auth_credentials_store(file | keyring | auto | ephemeral);agents.max_threads, “Legacy alias foragents.max_concurrent_threads_per_session.”;tool_output_token_limit, “Token budget for storing individual tool/function outputs in history.”;mcp_servers.<id>.tools.<tool>.output_token_limit, “Token budget for one MCP tool’s output, before the standard 20% serialization allowance. Overrides the model’s default output truncation budget for that tool.”;memories.extract_modelandmemories.consolidation_model, optional model overrides for memory extraction and consolidation. The authentication page, same date: “ephemeralkeeps credentials in memory only for the current process.” Source,codex-rs/protocol/src/config_types.rsat rust-v0.167.1:#[serde(rename = "auto_review", alias = "guardian_subagent")], with the schema note “The legacy valueguardian_subagentis accepted for compatibility.” ↩↩↩↩↩↩ -
Config basics and Advanced configuration, fetched November 10, 2026. Precedence, in the page’s order: “CLI flags and
--configoverrides”; “Project config files:.codex/config.toml, ordered from the project root down to your current working directory (closest wins; trusted projects only)”; profile “files selected with--profile profile-name(~/.codex/profile-name.config.toml)”; “User config:~/.codex/config.toml”; “Cloud-managedconfig.tomldefaults, when delivered for the signed-in workspace”; “System config (if present):/etc/codex/config.tomlon Unix”; “Built-in defaults”. Providers: “Choose a unique ID for custom providers. Codex reservesopenai,ollama,lmstudio,amazon-bedrock,amazon-bedrock-runtime, andgcpfor its built-in providers.”; the config reference onmodel_providers.<id>.wire_api: “responsesis the only supported value, and it is the default when omitted.” Local providers: “Choose one for a single run with--local-provider, or setoss_provideras the default. If neither is set, the interactive CLI prompts you to choose;codex execexits with an error.” Source,codex-rs/model-provider-info/src/lib.rsat rust-v0.167.1: theWireApienum has the single variantResponses, deserializing"chat"fails with a message that begins “wire_api = "chat"is no longer supported,” and the built-in provider IDs areopenai,amazon-bedrock,amazon-bedrock-runtime,gcp,ollama, andlmstudio(there is noossID). ↩↩↩↩↩ -
codex-rs/hooks/src/lib.rsat tag rust-v0.167.1, fetched November 10, 2026:pub const HOOK_EVENT_NAMES: [&str; 14]listsPreModelRequest,PostModelRequest,PreToolUse,PermissionRequest,PostToolUse,PreCompact,PostCompact,SessionStart,SessionEnd,UserPromptSubmit,SubagentStart,SubagentStop,Stop, andInterrupt. The array has the same 14 entries at rust-v0.164.0, rust-v0.165.0, and rust-v0.166.0, and 12 at rust-v0.163.0. The two additions come from #55144, “Add observation-only model request lifecycle hooks,” merged October 18, 2026. The hooks documentation, same date: “Use these hooks to log model requests, including retries within the same turn.PreModelRequestruns before each attempt.PostModelRequestreports the outcome. Both receive the model andturn_id, plusagent_idandagent_typewhen available. Hook output is diagnostic only. It can’t change the model’s context or block a request.” ↩↩↩↩↩↩↩↩ -
Memories documentation, fetched November 10, 2026: “Local Codex memories are off by default.”; “In Codex CLI, use
/memoriesin an interactive session to control whether the current chat can use existing local memories or become an input for future memories.”; “When you enable memories in a fresh Codex home, the CLI uses$CODEX_HOME/memories_v2/by default. If$CODEX_HOME/memories/already exists, the CLI continues to use that store by default.”; “Codex skips active or short-lived sessions, redacts secrets from generated memory fields, and updates memories in the background instead of immediately at the end of every chat.”; “Treat these files as generated state.”; “Treat memories as a helpful recall layer, not as the only source for rules that must always apply.” The page describes interactive sessions and does not mentioncodex exec. The slash-command reference lists/memories(“Turn memory injection or memory generation on or off without leaving the TUI.”) and no/m_updateor/m_drop. Source at rust-v0.167.1:codex-rs/tui/src/slash_command.rshasMemories(“configure memory use and generation”) and two debug entries,debug-m-updateanddebug-m-drop, whose descriptions readDO NOT USE;codex-rs/cli/src/main.rskeeps a hiddendebug clear-memoriessubcommand (“Internal: reset local memory state for a fresh start.”). ↩↩↩↩↩↩ -
Agent Skills documentation (developers.openai.com/codex/skills redirects there), fetched November 10, 2026. Locations: repository,
$CWD/.agents/skills,$CWD/../.agents/skills, and$REPO_ROOT/.agents/skills(“Codex scans.agents/skillsin every directory from your current working directory up to the repository root”); user,$HOME/.agents/skills; admin,/etc/codex/skills; system, “Bundled with Codex by OpenAI,” includingskill-creatorandskill-installer. The page does not list~/.codex/skills. Source,codex-rs/ext/skills/src/host_roots.rsat rust-v0.167.1: “Deprecated user skills location ($CODEX_HOME/skills), kept for backward compatibility,” still read as a user-scope root alongside$HOME/.agents/skills;codex-rs/skills/src/lib.rs: “Installs embedded system skills intoCODEX_HOME/skills/.system.” ↩↩ -
Code mode sources, fetched November 10, 2026.
codex-rs/code-mode-protocol/src/description.rsat rust-v0.167.1, the tool description the model receives: “Run JavaScript code to orchestrate/compose tool calls”; “Evaluates the provided JavaScript code in a fresh V8 isolate as an async module.”; “All nested tools are available on the globaltoolsobject, for exampleawait tools.exec_command(...).”; “Runs raw JavaScript – no Node, no file system, no network access, no console.”codex-rs/features/src/lib.rsat the same tag:code_modeisUnderDevelopment, off (“Enable JavaScript code mode backed by the standalone host process.”). Config reference:features.code_mode.enabled, “Enable code mode feature configuration. This feature is under development and off by default.”;features.code_mode.excluded_tool_namespaces, “Tool namespaces code mode excludes from nested code-mode tool guidance and executor exposure.”;features.code_mode.direct_only_tool_namespaces, “Tool namespaces code mode can use only through direct tool calls.” CLI reference:--code-mode-host, “Share an outbound HTTP/2 gRPC connection to a remote Code Mode host across threads.” Hooks documentation: “When a model uses code mode to call a tool from JavaScript, hook decisions apply to that nested call.” ↩↩ -
Linux sandbox sources, fetched November 10, 2026. Agent approvals and security: “Linux uses
bwrapplusseccompby default.”codex-rs/linux-sandbox/README.mdat rust-v0.172.0 opens the sentence differently, “With transparent TCP off, Codex prefers the firstbwrapfound onPATHoutside the current working directory whenever it is available.”, and keeps the fallback and warning sentences. The same file at rust-v0.167.1: “On Linux, Codex prefers the firstbwrapfound onPATHoutside the current working directory whenever it is available.”; “Ifbwrapis missing, the helper falls back to the bundledcodex-resources/bwrapbinary shipped with Codex. Codex also surfaces a startup warning whenbwrapis missing so users know it is falling back to the bundled helper. Codex surfaces the same startup warning path when bubblewrap cannot create user namespaces.” v0.100.0 release notes, published February 12, 2026: “#11498 build(linux-sandbox): always compile vendored bubblewrap on Linux; remove CODEX_BWRAP_ENABLE_FFI”. ↩↩ -
Sandbox and permission keys at v0.167.1, fetched November 11, 2026.
core/config.schema.json:SandboxWorkspaceWritedefines exactlyexclude_slash_tmp,exclude_tmpdir_env_var,network_access, andwritable_roots, with"additionalProperties": false. Inconfig/src/types.rsthe struct carries#[schemars(deny_unknown_fields)], which shapes the schema, and no serde attribute that would reject an unknown key at load; the--strict-configflag (tui/src/cli.rs) exists to “Error out when config.toml contains fields that are not recognized by this version of Codex.”readOnlyAccesssurvives only as a legacy app-server input (app-server-protocol/src/protocol/v2/permissions.rs), and its restricted form is rejected: “workspaceWrite.readOnlyAccess is no longer supported; use permissionProfile for restricted reads”.protocol/src/permissions.rs: “noneis a legacy input alias retained temporarily for compatibility.”core/src/config/permissions.rshandles":project_roots" | ":workspace_roots"in one match arm. The same file compiles each profile fromFileSystemSandboxPolicy::restricted(Vec::new())plus the entries the profile and any profile itextendsdefine, warns that a profile with no recognized entries leaves filesystem access restricted (“Filesystem access will remain restricted.”), and, off macOS, warns: “Non-macOS sandboxing does not support unbounded**natively; setglob_scan_max_depthin this filesystem profile to cap Linux glob expansion and silence this warning”. In the schema,PermissionProfileTomlallowsdescription,extends,filesystem,network, andworkspace_roots; filesystem access isread,write, ordeny; networkmodeislimitedorfull; domain rules areallowordeny. Permissions docs: the examples use":minimal" = "read",[permissions.<name>.filesystem.":workspace_roots"], and"**/*.env" = "deny". ↩↩↩↩↩ -
codex sandboxat v0.167.1, fetched November 11, 2026.cli/src/main.rs:SandboxCommandholds the host platform’s arguments and one optional subcommand,uninstall; there is nomacos,linux, orwindowsword.cli/src/lib.rsdeclares the profile flag aslong = "permission-profile", alias = "permissions-profile", short = 'P', and--include-managed-configas “Include managed requirements while resolving an explicit permissions profile.” Permissions docs: “:workspaceallows writes inside the active workspace roots and system temp directories.” Agent approvals & security still printscodex sandbox macos [--permissions-profile <name>] [--log-denials] [COMMAND].... The testsandbox_parses_permission_profileinmain.rsparsescodex sandbox --permission-profile :workspace -- echo.protocol/src/permissions.rsbuilds:read-onlyfrom one entry, read access to:root, and:workspacefrom that entry plus write access to the workspace roots,/tmp, and$TMPDIR. No step in this section was run on 0.167.1. On codex-cli 0.154.0 for macOS, an older build with the same flags, the platform word was run as the command and failed (sandbox-exec: execvp() of 'macos' failed, exit 71),:read-onlydenied a write in the working directory,:workspaceallowed one, a custom profile with adenyrule blocked a read of a.envfile, and a denied write printedOperation not permitted. ↩↩↩↩↩↩ -
Fast tier controls, fetched November 11, 2026. Developer commands: “Type
/fastto turn the current model’s Fast service tier on.”; “Type/fastagain to turn it off.”; “Fast tier commands are catalog-driven. If the current model doesn’t advertise a Fast tier, Codex won’t show/fast.” Speed, as fetched November 25, 2026: “Use/fastor/ultrafastto choose a speed. Repeat the active command to return to Standard. The CLI saves your selection. To show Fast mode in the footer, use/statusline.”; the 2.5x and 2x Fast multipliers for GPT-6 Sol and GPT-6 Luna are in the pricing table quoted in 260. On November 11, 2026 the same page read “Use/fastin the CLI to toggle Fast mode. Use/statuslineto show it in the footer.” Source at rust-v0.167.1,tui/src/bottom_pane/slash_commands.rs: service-tier commands take no inline arguments (Self::ServiceTier(_) => falseinsupports_inline_args). ↩↩ -
ChatGPT desktop app, fetched November 11, 2026. ChatGPT desktop app: “Download ChatGPT for macOS or Windows, or follow the Linux installation guide.”; “Choose ChatGPT or Codex. In ChatGPT, use the toggle above the composer to select Chat or Work.” ChatGPT desktop app for Linux: “The ChatGPT desktop app for Linux is available in preview.”; the preview supports Ubuntu 24.04 LTS and 26.04 LTS, Debian 13, Fedora 43 and 44, and Arch Linux; “Each supported distribution has packages for x64 and ARM64 processors.”; Computer Use “is available on macOS and Windows but not yet in the Linux preview.” ↩↩↩↩
-
Slash command descriptions at v0.167.1, from
tui/src/slash_command.rs, fetched November 11, 2026:/clearis “clear the terminal and start a new chat”;/warningsis “view retained warnings and diagnostic details”;/titleis “configure which items appear in the terminal title”;/petsis “choose or hide the terminal pet” and also parses as/pet;/permissionsis “choose what Codex is allowed to do”;/setup-default-sandboxis “set up elevated agent sandbox”, and its handler intui/src/chatwidget/slash_dispatch.rsis compiled only for Windows. The docs page Developer commands, read the same day, adds for/clear: “To name the new chat as you create it, run/clear release prep.” ↩↩↩↩↩ -
Command line options, fetched November 11, 2026. The command table marks
codex mcpstable (“Manage Model Context Protocol servers (list, add, remove, authenticate).”),codex cloudexperimental (“Browse or execute Codex cloud chats from the terminal without opening the TUI. Alias:codex cloud-tasks.”), andcodex remote-controlexperimental (“Run or manage remote control for the local app-server, or create a short-lived pairing code.”). On remote control: “Runcodex remote-controlto start remote control through the managed background server when eligible, with a foreground fallback. Usecodex remote-control --no-daemonto run in the foreground explicitly.”;codex remote-control startandcodex remote-control stopmanage the daemon; the commands “aren’t a replacement forcodex app-server --listenwhen you’re building a local protocol client.” The Codex Cloud page carries no maturity label. ↩↩↩↩↩ -
Managed requirements, fetched November 11, 2026. Managed configuration: “The string form of
identity.commandmatches only the configuredcommand. It doesn’t inspectargs,cwd,env, orenv_vars.”; “The executable, argument count, and argument order must match. Argument and URL rules supportexact,prefix, and full-valueregexmatching.”; “Ifmcp_serversis present but empty, the local client disables all MCP servers.”; “in_app_updates = falsedisables the ChatGPT desktop app’s own updater on restart, where supported. It doesn’t affect external package deployment or extend support for older app versions.”; the cloud layer is “Agent Security requirements delivered in the cloud config bundle”; onallowed_approval_policies, “Here,untrustedpreserves the stricter approval behavior derived fromtrust_level = "untrusted"; it does not makeapproval_policy = "untrusted"a supported explicit setting.” Configuration Reference: “The[models.new_thread]table supplies managed defaults, not enforcement.” Source at rust-v0.167.1:config/src/config_requirements.rsdefinesmodel_provider,model_catalog_json, andmodels.new_thread, and no key that lists allowed models or caps reasoning effort;cloud-config/src/service.rsreturns “Failed to load cloud config bundle (workspace-managed policies).” or “Timed out waiting for cloud config bundle after {}s” when no valid cached bundle exists, andcloud-config/src/cache.rslogs “Ignoring cloud config bundle cache for different auth identity.” ↩↩↩↩↩↩↩ -
OpenTelemetry settings, fetched November 11, 2026. Advanced Configuration: “Enable OpenTelemetry (OTel) log export to track Codex runs (API requests, SSE/events, prompts, tool approvals/results). Disabled by default; opt in via
[otel]:”. Source at rust-v0.167.1,config/src/types.rs: the defaults areexporter: OtelExporterKind::None,trace_exporter: OtelExporterKind::None, andmetrics_exporter: OtelExporterKind::Statsig;span_attributesis “Attributes to add to every exported trace span.”;environmentis “Mark traces with environment (dev, staging, prod, test). Defaults to dev.” Inotel/src/otlp.rsthe onlyOTEL_EXPORTER_OTLP_*variables Codex reads are timeouts (OTEL_EXPORTER_OTLP_TIMEOUTand its per-signal forms);otel/src/trace_context.rsreadsTRACEPARENTandTRACESTATE;config/src/config_requirements.rsdescribesOtelRequirementsTomlas “OTEL settings that may be managed throughrequirements.toml.” ↩↩ -
Codex Security, fetched November 25, 2026. Codex Security: “Run it in Daybreak Defense Factory, in Codex, from a terminal, or through the SDK.”; the page’s table sends you to Daybreak Defense Factory to “Scan a GitHub repository, review findings from other tools, and propose fixes with your team.”, to the plugin to “Scan a local repository in Codex and work through findings interactively.”, to the CLI to “Run repeatable terminal scans or add checks to CI.”, and to the SDK to “Run scans and handle results in an application or developer tool.”; it also says “Codex Security scans application code.” and points to the agent approvals and security page for the controls that govern Codex itself. Daybreak Defense Factory setup: “Open Plugins on the web or in the desktop app using a ChatGPT workspace with access to Daybreak. Search for Daybreak Defense Factory (Preview), then install and enable it.”; cloud scans run in Codex cloud. Codex Security plugin: “This page covers the Codex Security plugin in the desktop app or Codex CLI.” Codex Security CLI quickstart: “Use Node.js 24 or 26, or Node.js 22 starting with 22.13.0. You also need Python 3.10 or later.”; “The CLI runs with your operating-system permissions and doesn’t pause for approval.”; “Install the public package globally, then check its version:” with
npm install -g @openai/codex-security. Codex Security SDK: “Use the Codex Security TypeScript SDK to run security scans on repositories and code changes from your application or developer tool.”; installed withnpm install @openai/codex-security; “Some cybersecurity requests and protected findings require” Trusted Access for Cyber. Threat model: “Daybreak creates the first draft from the code and uses it to guide future commit scans and prioritize findings.”; it describes “Entry points and who can supply input to them”, “Trust boundaries and authentication or authorization assumptions”, and “Sensitive data and privileged actions”. Review findings and fixes: “Select a finding to see its summary, root cause, and supporting evidence. The detail page explains how someone could exploit the issue and shows its reported severity and current status.”; “Read its summary and diff under Proposed changes. Read the Patch checker result to see what Daybreak verified.”; “select Create PR to open a draft pull request on GitHub.”npm view @openai/codex-security versionreturned 0.11.0 on November 25, 2026. History: as fetched on November 11, 2026, the setup page named the product “Daybreak Defense Factory (formerly Codex Security Cloud)”; the phrase is no longer on the page. ↩↩↩↩↩ -
Use ChatGPT in Slack, fetched November 11, 2026: “Mention
@ChatGPTin a Slack channel to start a request. If your workspace has Cloud delegation enabled, ChatGPT can send repository work to a separate Codex Cloud task and return the result to the thread.”; “If you previously used@Codex, start new requests with@ChatGPTafter your admin enables the ChatGPT app.” ↩↩ -
Codex CLI, fetched November 11, 2026: “Install the Codex CLI with the standalone installer for macOS and Linux.”; the command is
curl -fsSL https://chatgpt.com/codex/install.sh | sh, and the same command is listed under “Update”; the Windows command ispowershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex". ↩↩↩ -
API key sign-in, fetched November 11, 2026. Non-interactive mode: “You can use
CODEX_API_KEYwithcodex exec,codex review, the TypeScript SDK, andcodex exec-server --remote.” Authentication gives the interactive form:printenv OPENAI_API_KEY | codex login --with-api-key. ↩↩↩ -
Codex SDK, fetched November 11, 2026: TypeScript installs with
npm install @openai/codex-sdk; “The Python SDK controls the local Codex app-server over JSON-RPC. It requires Python 3.10 or later.”;pip install openai-codex; “The Python SDK is available as a stable release.” On the same day the npm registry listed@openai/codex-sdk0.167.1 and PyPI listedopenai-codex0.167.1. ↩↩ -
model-provider/src/provider.rsat rust-v0.167.1, fetched November 11, 2026:DEFAULT_MEMORY_EXTRACTION_PREFERRED_MODEL: &str = "gpt-6-luna"andDEFAULT_MEMORY_CONSOLIDATION_PREFERRED_MODEL: &str = "gpt-6.1-terra". ↩↩ -
OpenAI API deprecations, fetched November 25, 2026. The table row for
gpt-5.3-codexreads Apr 1, 2027 (shutdown), Deprecated,gpt-6-sol(recommended replacement), Oct 1, 2026 (announced);gpt-5.4-nanoandgpt-5.1have rows with the same two dates. On November 11, 2026 the page carried a dated entry, “2026-10-01: GPT-5.3-Codex, GPT-5.1, GPT-5.4-Nano”, which it no longer has. ↩↩ -
OpenAI API pricing, fetched November 11, 2026, per 1M tokens (input / cached input / output):
gpt-6.1-sol$2.00 / $0.10 / $10.00;gpt-6-astra$10.00 / $1.00 / $50.00;gpt-6.1-terra$1.00 / $0.05 / $5.00;gpt-6-luna$0.10 / $0.01 / $0.50. The worked examples multiply input tokens by the input rate and output tokens by the output rate, with no cached input. ↩↩↩↩ -
Models, fetched November 11, 2026: “The
gpt-5.4andgpt-5.4-minimodels retired from Codex with ChatGPT sign-in on August 31, 2026. Replacegpt-5.4withgpt-6-solandgpt-5.4-miniwithgpt-6-lunawhen available to your plan and client. In Enterprise and Edu, an administrator must enable Luna first.”; “The OpenAI API and Codex authenticated with your own API key aren’t affected by the GPT-5.4 retirement.”; the GPT-6 Luna card: “Our most efficient model for focused, high-volume tasks, including summarization, extraction, and focused coding.”; “GPT-6 Luna supports reasoning efforts up to Max, but not Ultra.” ↩↩↩↩↩↩↩↩↩↩↩ -
Subagents, fetched November 11, 2026. Subagents: “Current Codex releases enable subagent workflows by default.”; “Ask Codex in an interactive CLI session to use subagents. Codex can also follow applicable
AGENTS.mdor skill instructions that request delegation. Use/subagentsto inspect and switch between agent threads while they run.”; “To define your own custom agents, add standalone TOML files under~/.codex/agents/for personal agents or.codex/agents/for project-scoped agents.” Source at rust-v0.167.1,tui/src/slash_command.rs:/agentsis “open the agent command center” and/subagentsis “switch between this session’s subagents”;core/src/config/mod.rssetsDEFAULT_AGENT_MAX_THREADS: Option<usize> = Some(6), and the config schema accepts named roles under[agents.<name>]. ↩↩↩ -
Codex docs on GPT-6 Sol and Luna as read on September 23, 2026. The models page has changed since, and its wording on November 11, 2026 is in 233; the changelog entry still reads as quoted. ChatGPT & Codex changelog, 2026-09-22 entry “GPT-6 Sol and Luna in Codex and ChatGPT Work”: “rolling out to Codex and ChatGPT Work at lower token prices than their GPT-5.6 predecessors. Use Sol for complex coding and agentic workflows, and Luna for focused, high-volume tasks. Both models are rolling out to Plus, Pro, Business, Enterprise, and Edu users. Free and Go users can access Luna in the desktop app. Availability depends on rollout and workspace settings; Enterprise administrators must enable the new models.” Models page, that day: Astra was “Our most capable model for complex work across code, apps, and research,” Sol was “Built for complex coding and agentic workflows, with stronger factual reliability and clearer communication than GPT-5.6 Sol,” and Luna was “Our most efficient model for focused, high-volume tasks”; Astra and Luna were marked unavailable for Codex cloud; “GPT-5.6 Sol, GPT-5.6 Terra, and GPT-5.6 Luna remain available during the rollout”; suggested starting efforts were Medium for Sol, High for Luna, and Light (
low) for Astra; “GPT-6 Luna supports reasoning efforts up to Max, but not Ultra”; the default-model example wasmodel = "gpt-6-sol"; GPT-6 Sol was named as the GPT-5.5 replacement for Plus, Pro, Business, Enterprise, and Edu, and GPT-6 Luna for Free and Go. ↩↩↩↩↩↩↩↩↩↩ -
Pricing for the GPT-6 models as read on September 23, 2026. The pricing page has changed since (the Pro bands and the per-message average are gone), and its wording on November 10 and 11, 2026 is in 203 and 234. The Codex pricing page listed Standard-speed credits per 1M input / cached / output tokens: GPT-6 Astra 250 / 25 / 1,250, GPT-6 Sol 50 / 5 / 250, GPT-6 Luna 2.5 / 0.25 / 12.5, with GPT-5.6 rates “unchanged”; “Fast mode uses 2.5x the Standard credit rate for GPT-6 Astra, Sol, and Luna where available”; “GPT-5.6 usage averages 5-30 credits per message”; five-hour local-message estimates for Plus of GPT-6 Astra 5-45, Sol 15-150, Luna 350-3,000 (Pro 5x: 25-225, 70-700, 1,750-14,000; Pro 20x: 100-900, 300-3,000, 7,000-56,000); cloud chats on ChatGPT plans used GPT-5.6 Sol; Free and Go got “GPT-6 Luna at Standard speed in the desktop app, subject to rollout.” API model pages (gpt-6-sol, gpt-6-luna): 1,050,000 context window, 922,000 max input, 128,000 max output; Sol $2 input / $0.20 cached / $10 output per 1M tokens, knowledge cutoff April 20, 2026; Luna $0.10 / $0.01 / $0.50, cutoff May 18, 2026; for both, “Prompts with more than 272K input tokens are priced at 2x input and cache rates and 1.5x output for the full request,” and “Fast mode is priced at 2x the applicable rates.” ↩↩↩↩
-
Models, as the page read when fetched on November 11, 2026. The GPT-6.2 launch rewrote it on November 17: the card text, the “where each model shines” list, the effort advice, and the Power presets quoted here are no longer on the page, and 259 holds the November 25 wording. Still on the page on November 25: Ultra’s “separate parts of a complex task in parallel”, “In Enterprise and Edu, an administrator must enable Luna first.”, and the
gpt-5.2andgpt-5.3-codexdeprecation sentence. The November 11 text follows. The GPT-6.1 Sol card: “Near-Astra performance for complex work at a lower cost than Astra. Consider it for repeated, long-running work across code, apps, and documents.” Where each model shines: “Astra, for the hardest end-to-end work.”; “Choose Astra for complete workflows across code, apps, and research that need sustained reasoning and judgment.”; “GPT-6.1 Sol, for repeated, long-running work.”; “GPT-6.1 Terra, for everyday writing and visual work.”; “Luna, for clear, repeatable tasks.” Effort: “For GPT-6.1 Sol, start with the reasoning effort available by default in your client and adjust based on the task. Start with High for Luna or Light for Astra.”; “In configuration, Astra’s Light setting islow.”; Ultra handles “separate parts of a complex task in parallel” with subagents. Presets: “The six Power presets shown are Luna High, GPT-6 Sol Light (selected in this example), GPT-6 Sol Medium, Astra Light, Astra Medium, and Astra Extra High. Some paid plans omit Astra Extra High.”; “available options and defaults vary by plan, client, workspace settings, and rollout.” Older models: “In Enterprise and Edu, an administrator must enable Luna first.”; “Thegpt-5.2andgpt-5.3-codexmodels are already deprecated in Codex when you sign in with ChatGPT.” The page has no GPT-6 Sol card, no Codex cloud availability line, and no experimental context management section; its configuration example ismodel = "gpt-6.1-sol". The config reference, same day, onfeatures.context_management.experimental_mode: “Experimental context-management setting. The feature is not currently available.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Fetched November 11, 2026. Three quotations below are no longer on their pages on November 25, 2026: the pricing page’s “These are Standard credit rates” sentence and the speed page’s Fast-mode sentence (the multipliers are now a table, quoted in 260), and the GPT-6 Astra API tagline (the page now reads “A reasoning model for complex coding and professional work”, 261). The other quotations were still found on November 25. ChatGPT pricing: “GPT-5.6 Sol, Terra, and Luna rates remain unchanged.”; “These are Standard credit rates. For purchased credits and Enterprise pay-as-you-go usage, Fast mode uses 2x the Standard rate where available, and Ultrafast mode uses 6x.”; “Image generations use included limits 3-5x faster on average than similar turns without image generation, depending on image quality and size.”; of GPT-6.1 Sol, “For Enterprise and Edu, the model is off by default until an administrator enables it.”; the page has no plan card for a Codex-only seat. Speed: “For supported models, Fast mode uses included subscription limits at 2.5x the Standard rate. Purchased credits and Enterprise pay-as-you-go usage are billed at 2x the Standard rate.” API model pages: gpt-6.1-sol, “Use GPT-6.1 Sol for complex coding, computer use, and professional work.”; gpt-6-sol, “GPT-6 Sol is built for complex coding and agentic workflows.”; gpt-6-astra, “GPT-6 Astra is our most capable model for the most demanding work.”; gpt-6-luna. All four list a 1,050,000 context window, 922,000 maximum input tokens, and 128,000 max output tokens; knowledge cutoffs are April 30 (GPT-6.1 Sol, Astra), April 20 (GPT-6 Sol), and May 18, 2026 (Luna); “Prompts with more than 272K input tokens are priced at 2x input and cache rates and 1.5x output for the full request.”; “Fast mode is priced at 2x the applicable rates.” API pricing, input / output per 1M tokens:
gpt-6-sol$2.00 / $10.00 ($0.20 cached); over 272K input tokens,gpt-6-astra$20.00 / $75.00. ↩↩↩↩↩↩↩↩↩↩↩ -
ChatGPT pricing, plan cards and limit notes, fetched November 11, 2026. Plus: “Codex on the web, in the CLI, in the IDE extension, and on iOS”; “Cloud-based integrations like automatic code review and Slack integration”. Business: “Access ChatGPT and Codex across desktop and mobile apps”; “A secure, dedicated workspace with essential admin controls, SAML SSO, and MFA”. Enterprise & Edu, “Everything in Business and:” “Priority request processing”; “Enterprise-level security and controls, including SCIM, EKM, user analytics, domain verification, and role-based access control”; “Audit logs and usage monitoring”; “Data retention and data residency controls”. API Key: “Codex in the CLI, SDK, or IDE extension”; “No cloud-based features (GitHub code review, Slack, etc.)”. Under the limits table: “Enterprise/Edu users with flexible pricing have no fixed rate limits.”; “Enterprise and Edu plans without flexible pricing have the same per-seat usage limits as Plus for most features.” The limits table has columns for Plus and Standard Business only, and the page has no plan card for a Codex-only seat. ↩↩↩↩↩↩↩
-
Approval prompt keys at v0.167.1, fetched November 11, 2026.
tui/src/keymap.rssets the default approval bindings:approveisy,approve_for_sessionisa,approve_for_prefixisp,denyisd,declineisEscorn, andcancelisc.tui/src/bottom_pane/approval_overlay.rsbuilds the file-change prompt from three options: “Yes, proceed” (approve), “Yes, and don’t ask again for these files” (approve_for_session), and “No, and tell Codex what to do differently” (decline). ↩↩ -
Spacebar voice transcription, fetched November 11, 2026. The v0.105.0 release notes introduced it: “You can now dictate prompts by holding the spacebar to record and transcribe voice input directly in the TUI. This feature is still under development; to enable it set features.voice_transcription = true in your config.” PR #16114 “Remove TUI voice transcription feature”, merged March 29, 2026 and shipped in v0.118.0: “Removes the partially-completed TUI composer voice transcription flow, including its feature flag, app events, and hold-to-talk state machine.” At rust-v0.167.1 the only dictation entry in
features/src/lib.rsisin_app_dictation(“Allow in-app dictation in desktop apps.”). ↩↩↩↩ -
The legacy profile selector at v0.167.1, fetched November 11, 2026.
core/src/config/mod.rsfails the config load withlegacy `profile = "{profile}"` config is no longer supported; use `--profile {profile}` with `{profile}.config.toml` instead. Advanced configuration: “In Codex 0.134.0 and later,--profileno longer reads[profiles.profile-name]fromconfig.toml, and the top-levelprofile = "profile-name"selector is no longer supported.” ↩↩↩↩↩↩ -
Approvals in
codex execat v0.167.1, fetched November 11, 2026.exec/src/lib.rsbuilds its configuration withapproval_policy: Some(AskForApproval::Never)under the comment “Default to never ask for approvals in headless mode. Rebuild below if the fully resolved reviewer is AutoReview.”, answers approval requests with errors such as “command execution approval is not supported in exec mode”, and passesservice_tier: None; the catalog’sdefault_service_tieris applied only in the TUI (tui/src/service_tier_resolution.rs).utils/cli/src/shared_options.rsdocuments--approve-for-meas “Route approval requests through automatic review using the workspace-write sandbox.”, declares itconflicts_with_all = ["sandbox_mode", "dangerously_bypass_approvals_and_sandbox"], and has it setapprovals_reviewer="auto_review",approval_policy="on-request", andsandbox_mode="workspace-write"; it describes the bypass flag as “Intended solely for running in environments that are externally sandboxed.” Non-interactive mode: “By default,codex execruns in a read-only sandbox.” and “--full-autois no longer supported. Update scripts to use--sandbox workspace-write, or use--approve-for-meto route approval requests through automatic review with the workspace-write sandbox.” ↩↩↩↩↩↩↩ -
Custom prompts, fetched November 11, 2026. PR #16115 “Remove remaining custom prompt support”, merged March 28, 2026 and shipped in v0.118.0: “remove protocol and core support for discovering and listing custom prompts” and “simplify the TUI slash-command flow and command popup to built-in commands only”. The docs page Custom prompts opens with “Custom prompts are deprecated. Use skills for reusable instructions that Codex can invoke explicitly or implicitly.” ↩↩↩
-
CSV-backed agent jobs, fetched November 11, 2026. PR #34413 “Remove CSV-backed agent jobs”, merged July 20, 2026 and listed under 0.145.0 in the Codex changelog: “Remove the
spawn_agents_on_csvandreport_agent_job_resulttools and their agent-job runtime and state models.” and “Keepfeatures.enable_fanoutandagents.job_max_runtime_secondsaccepted as no-op compatibility settings while omitting them from the generated configuration schema.” At rust-v0.167.1,features/src/lib.rslistsenable_fanoutatStage::Removed: “Removed compatibility flag for the deleted agent-job tools.” ↩↩↩↩↩ -
GPT-6 Astra model page, OpenAI API docs, fetched November 11, 2026: “1,050,000 context window” and “128,000 max output tokens”. ↩
-
Retired approval policy names at v0.167.1, fetched November 11, 2026.
core/src/config/mod.rsrejects the old value withapproval_policy = "untrusted" is no longer supported; remove this setting.protocol/src/protocol.rsgives theOnRequestvariant the attribute#[serde(alias = "on-failure")], so the old name loads ason-request. Configuration Reference,approval_policy: “untrustedis unsupported, andon-failureis deprecated; useon-requestfor interactive runs orneverfor non-interactive runs.” ↩↩↩↩↩ -
Agent approvals & security, fetched November 11, 2026: “In the default
workspace-writesandbox policy, writable roots still include protected paths”; “<writable_root>/.gitis protected as read-only whether it appears as a directory or file.”; “<writable_root>/.agentsis protected as read-only when it exists as a directory.”; the same sentence for.codexand.aws; and “Protection is recursive, so everything under those paths is read-only.” The Configuration Reference listssandbox_workspace_write.exclude_tmpdir_env_var(“Exclude$TMPDIRfrom writable roots in workspace-write mode.”) andexclude_slash_tmp(“Exclude/tmpfrom writable roots in workspace-write mode.”). ↩↩ -
codex pluginsubcommands at v0.167.1, fetched November 11, 2026.cli/src/plugin_cmd.rsdefines four:Add(“Install a plugin from a configured or remote marketplace.”),List(“List plugins available from configured and remote marketplaces.”),Marketplace(“Add, list, upgrade, or remove configured plugin marketplaces.”), andRemove(“Uninstall a plugin and remove its local cache.”). There is no publish subcommand. ↩↩ -
codex execoutput and flags at v0.167.1, fetched November 11, 2026.exec/src/exec_events.rsnames the eventsthread.started,turn.started,turn.completed,turn.failed,item.started,item.updated,item.completed, anderror, and givesUsagethe fieldsinput_tokens,cached_input_tokens,cache_write_input_tokens,output_tokens, andreasoning_output_tokens.exec/src/cli.rs:--ephemeralis “Run without persisting session files to disk.” and--output-schemais “Path to a JSON Schema file describing the model’s final response shape.”; the interactive CLI intui/src/cli.rsdefines no--ephemeralflag. The sample in the Non-interactive mode docs shows four of the usage fields and omitscache_write_input_tokens. ↩↩↩↩↩↩ -
Feature stages at v0.167.1, fetched November 11, 2026.
features/src/lib.rslistsrequest_permissions_tool(“Expose the built-in request_permissions tool.”),exec_permission_approvals(“Allow exec tools to request additional permissions while staying sandboxed.”),mcp_2026_07_28(“Enable MCP protocol version 2026-07-28 support.”),code_mode,standalone_web_search(“Expose the extension-backed standalone web search tool.”), andcontext_managementatStage::UnderDevelopmentwithdefault_enabled: false;multi_agent_v2(“Enable task-path-based multi-agent routing.”) atStage::Stablewithdefault_enabled: false; andprevent_idle_sleepatStage::Experimentalon macOS, Linux, and Windows withdefault_enabled: false.core/src/config/mod.rsresolves the multi-agent version asself.multi_agent_version_override().or(model_multi_agent_version), andmodels-manager/models.jsonsets"multi_agent_version": "v2"forgpt-6-astra,gpt-6.1-sol,gpt-6.1-terra,gpt-6-sol,gpt-6-luna,gpt-5.6-sol, andgpt-5.6-terra, and"v1"forgpt-5.6-luna. Configuration Reference:features.code_mode.enabled, “Enable code mode feature configuration. This feature is under development and off by default.”; “Experimental context-management setting. The feature is not currently available.” ↩↩↩↩↩↩↩↩ -
PR #43915 “Remove the repository devcontainer configurations”, merged September 8, 2026 and listed under 0.155.0 in the Codex changelog, fetched November 11, 2026: “Remove the contributor and secure devcontainer profiles, Dockerfiles, setup and firewall scripts, installation lockfiles, and documentation under
.devcontainer/.” The repository tree at rust-v0.167.1 has no.devcontainerdirectory. ↩↩↩ -
Prompting, “Use voice dictation”, fetched November 11, 2026: “In the ChatGPT desktop app, select Dictate in the composer, then start talking. ChatGPT transcribes your speech into the composer so you can review and edit it before sending the prompt.” The page gives no keyboard shortcut for dictation. ↩↩↩
-
Build skills, fetched November 11, 2026: “To add curated skills beyond the built-ins for your own local Codex setup, use
$skill-installer. For example, to install the$linearskill:” followed by$skill-installer linear, and “You can also prompt the installer to download skills from other repositories.” Itsagents/openai.yamlexample declares an MCP dependency withtype: "mcp",value: "openaiDeveloperDocs",description: "OpenAI Docs MCP server",transport: "streamable_http", andurl: "https://developers.openai.com/mcp". ↩↩↩ -
openai/codex-action
action.yml, fetched November 11, 2026,safety-strategy, the defaultdrop-sudooption: “Drop sudo privileges (if any) from the default user before running Codex, and run Codex as that user. This is only supported on Linux and macOS runners. This option is irreversible: account and host changes can outlive a job on reused self-hosted runners.” ↩↩↩ -
Site tools, fetched November 11, 2026: “Site tools require a supported model and a page that provides tools. Your account or your managed workspace’s browser policy can grant access. Your browser settings and site permissions still apply.”; “Site tools currently run only in the ChatGPT desktop app’s built-in browser.” Configuration Reference,
browser_use.allow_webmcp: “Allow site tools (WebMCP) through workspace policy on eligible managed plans. Bothtrueand an unset value allow access through this policy. Settingfalseturns off this path. Users can still have access through their account rollout.” ↩↩ -
Source at rust-v0.167.1, fetched November 11, 2026.
model-provider-info/src/lib.rs, on the built-inamazon-bedrockprovider: “only supports changingbase_url,auth,http_headers,aws.profile,aws.region,aws.credential_export, andaws.auth_refresh; other non-default provider fields are not supported”;config/src/config_toml.rsruns that check while it parsesconfig.toml. Advanced Configuration, “Amazon Bedrock provider”: “To select the AWS credentials and region for Mantle, configure itsawstable.”tui/src/app_event.rs: “Fork the current session into a new thread, optionally assigning it a name.”;tui/src/chatwidget/slash_dispatch.rspasses the text after/forkas that name.cli/src/main.rsdeclaresUSER_MESSAGEas a required argument ofcodex debug app-server send-message-v2.models-manager/models.jsonsets"default_reasoning_summary": "none"on all twelve models,core/src/session/step_settings.rsuses that default whenmodel_reasoning_summaryis unset, and the fallback for an unknown model inmodels-manager/src/model_info.rsisReasoningSummary::Auto. ↩↩↩↩↩↩ -
Token use, fetched November 11, 2026. Models: “Higher effort can improve results for complex tasks, but it takes longer and uses more tokens.” Pricing: “Every MCP server adds more context to your messages and uses more of your limit.” Custom instructions with AGENTS.md: “Codex skips empty files and stops adding files once the combined size reaches the limit defined by
project_doc_max_bytes(32 KiB by default).” ↩↩↩↩ -
Desktop app and IDE extension docs, fetched November 11, 2026. Integrated terminal: “Each chat in the ChatGPT desktop app includes a terminal scoped to its current project or worktree.”; the shortcut it gives is Ctrl plus backtick. Scheduled tasks: “Find all scheduled tasks and their runs on Scheduled in the ChatGPT desktop app sidebar.”; “You can create and update scheduled tasks from a ChatGPT or Codex chat.”; “In Git repositories, you can choose whether a scheduled task runs in your local project or on a new worktree.”; “Event-triggered tasks are available in ChatGPT on the web and mobile. They aren’t available in the ChatGPT desktop app, Codex CLI, or the IDE extension.”; “The Scheduled view acts as your inbox.” Appshots: “Appshots are available in the ChatGPT desktop app on macOS and Windows.” Computer Use: “Computer Use in the ChatGPT desktop app is available on macOS and Windows with ChatGPT Work and Codex.”; “Locked use is for macOS. On Windows, Computer Use works in the foreground.” Browser: “The built-in browser uses a browser profile that is separate from your regular browser.”; “You can sign in directly when a task requires an account.” Sandbox: “In the IDE extension, use the permissions control beneath the composer. Depending on your configuration, the menu can include Ask for approval, Approve for me for eligible approval requests, Full access, and named or custom permissions profiles.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩
-
Codex CLI release notes, fetched November 25, 2026, each matching the Codex Changelog entry of the same date: v0.167.2 (published November 11, 2026, 22:44:46 UTC), v0.168.0 (November 13, 03:54:29 UTC), v0.169.0 (November 13, 08:37:05 UTC), v0.169.1 (November 17, 22:21:10 UTC; the whole body is “No verified release highlights available.”), v0.170.0 (November 18, 03:40:48 UTC), v0.171.0 (November 20, 00:44:47 UTC), and v0.172.0 (November 24, 00:03:55 UTC; npm 00:09:39 UTC). Quoted. v0.167.2: “Codex now sends tool updates incrementally by default on Google Cloud Vertex AI. To opt out, set
incremental_tools_legacy_gcp = falseunder[features]inconfig.toml.” v0.168.0: “Enablefeatures.tui_workspaceto view a side conversation beside the main chat. Drag the divider to resize the panes or pressleader zto zoom the focused pane.”; “Settui.notification_method = "osc777"for terminal notifications.”; “Codex warns whenfeatures.multi_agentis explicitly configured and points toagents.enabledfor disabling subagent tools. (#59479)” v0.169.0: “The opt-in terminal workspace supports multiple side-chat tabs. Switch between them with the keyboard or mouse, and reopen saved local side chats after restarting Codex.”; “codex execkeeps project configuration and MCP servers disabled in untrusted directories, even with--sandbox workspace-write. Use--trustwithcodex execorcodex reviewto explicitly save project trust. (#60041)”; “PressCtrl+Sin the terminal report editor to save a diagnostic ZIP locally, even when uploads are disabled. (#60542)” v0.171.0: “Added GPT-6.2 Sol and Astra to model catalogs, with Sol as the default catalog selection. (#62106)”; “Enabled the TUI workspace by default, with searchable document previews, image previews, and subagent transcripts alongside the main conversation.”; “Addedcodex exec --remote <ADDR>to start or resume noninteractive sessions on an existing app server. (#61707)”; “Added/rcand/remoteto manage local remote control and display device pairing codes from the TUI. (#62121)”; “Added custom MCP status line selection and authoring through/statuslinewhentui_extensions_statuslineis enabled.” v0.172.0: “Optional stdio MCP servers with cached tool lists now start on their first tool call by default. (#62366)”; “Set an approval reviewer for individual connected app tools inconfig.toml. (#62360)”; “PressTabto complete arguments for supported slash commands. For example,/mcp locompletes to/mcp login. (#62343)”; “codex exec resumerestores saved sandbox permissions, the working directory, and workspace roots unless explicitly overridden. (#62194)”; “Code Mode now uses gRPC for all host connections. Thecode_mode_host_grpcsetting is deprecated. (#62476)” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Checked November 25, 2026 against the source at each tag, the GitHub API, and the npm registry. Compares (ahead_by): rust-v0.167.1…rust-v0.167.2 3; rust-v0.167.2…rust-v0.168.0 227 (the v0.168.0 notes link the compare from rust-v0.167.0, also 227); rust-v0.168.0…rust-v0.169.0 245; rust-v0.169.0…rust-v0.169.1 4:
f70638db“Enable incremental tools by default for Amazon Bedrock (#61426),”f97b518e“Normalize Bedrock Mantle commentary before replay (#62095),”6ae30bd1“Add GPT-6.2 Sol and Astra to model catalogs (#62106),” and the release commit; rust-v0.169.0…rust-v0.170.0 52; rust-v0.170.0…rust-v0.171.0 341; rust-v0.171.0…rust-v0.172.0 88. Each of rust-v0.168.0-alpha.7…rust-v0.168.0, rust-v0.169.0-alpha.11.1…rust-v0.169.0, rust-v0.170.0-alpha.4.2…rust-v0.170.0, rust-v0.171.0-alpha.13.1…rust-v0.171.0, and rust-v0.172.0-alpha.2.1…rust-v0.172.0 is ahead by one commit, the release commit.codex-rs/features/src/lib.rshas 202FeatureSpecentries at rust-v0.167.1 and 226 at rust-v0.172.0 (24 keys added, none dropped). By tag: rust-v0.167.2 addsincremental_tools_legacy_gcp(Stable, on; “Publish incremental tool declarations on regular GCP Responses.”); rust-v0.168.0 has neitherincremental_tools_legacynorincremental_tools_legacy_gcp, marksmulti_agentDeprecated(default_enabled: true), makesretain_client_tool_outputsandunified_image_budgetStableand on, and addstui_workspace(UnderDevelopment, off) andguardian_include_additional_context(Stable, on); rust-v0.169.0 makesuntrusted_as_tool_output,code_mode_host_grpc, andcode_mode_host_output_truncationStableand on, marksplugin_discovery_prefetchRemoved, and addsgateway_setup_wizard(Stable, off); rust-v0.169.1 turnsincremental_tools_legacyon (“Publish incremental tool declarations on regular Amazon Bedrock Responses.”); rust-v0.170.0 addsmulti_environment_mcp(UnderDevelopment, off); rust-v0.171.0 makestui_workspaceStableand on andtui_extensions_statuslineExperimental(“Custom status line”; “Restart the TUI, then use /statusline.”); rust-v0.172.0 makesmcp_lazy_stdio_startupStableand on and markscode_mode_host_grpcRemoved(the release notes say “deprecated”). StillUnderDevelopmentand off at rust-v0.172.0:code_mode,standalone_web_search,context_management,request_permissions_tool,exec_permission_approvals,mcp_2026_07_28, andprefer_mxc;multi_agent_v2andmemoriesareStableand off; there is novoice_transcriptionkey.codex-rs/config/src/loader/mod.rspushes this startup warning when a user or project layer sets the key: “[features].multi_agentis deprecated. It still controls the V1 fallback.[agents].enabled = falsedisables subagent tools even when the model selects a subagent version, unless[features].multi_agent_v2is enabled.”codex-rs/config/src/config_toml.rsdocumentsAgentsToml.enabled: “Whether multi-agent tools are enabled. Defaults to true.”codex-rs/tui/src/slash_command.rshas 66 variants at rust-v0.171.0 and rust-v0.172.0 (65 through rust-v0.170.0): the new one isRc, serialized asrcandremote, “manage remote control for the local background server”;/mcpreads “list MCP tools; /mcp verbose or /mcp login[–environment ]”; since rust-v0.169.0 /feedbackreads “send logs to maintainers or save a ZIP” and/side“start a side conversation”; there is noPersonalityvariant.codex-rs/exec/src/cli.rs:--remote <ADDR>(“Connect to an existing app server.”),--remote-auth-token-env <ENV_VAR>, and--trust(“Save trust for this project and future chats, including MCP commands outside the sandbox. Persists even with –ephemeral. Does not override an explicitly untrusted project.”).codex-rs/config/src/types.rs:NotificationMethodisAuto,Osc9,Osc777, orBel. Unchanged between rust-v0.167.1 and rust-v0.172.0:HOOK_EVENT_NAMESholds fourteen events;approvals_revieweracceptsguardian_subagentandapproval_policyacceptson-failureas aliases;codex pluginhasadd,list,marketplace, andremove;debug clear-memoriesis hidden;$CODEX_HOME/skillsis labeled the deprecated user skills location;span_attributesis the trace-attribute key; the tree has no.devcontainerdirectory; the memory defaults aregpt-6-luna(extraction) andgpt-6.1-terra(consolidation);features/src/lib.rsskips the removed keyspersonality,plugin_hooks,terminal_resize_reflow,worktrees, andrealtime_conversationwhen it reads[features];protocol/src/permissions.rsbuilds:read-onlyfrom read access to:rootand:workspacefrom that plus write access to the workspace roots,/tmp, and$TMPDIR;DEFAULT_AGENT_MAX_THREADSisSome(6), the multi-agent v1 cap, andDEFAULT_MULTI_AGENT_V2_MAX_CONCURRENT_THREADS_PER_SESSIONis4, a v2 count that includes the primary thread;codex sandboxtakes--permission-profile(alias--permissions-profile) and has no platform subcommand, onlyuninstall;:project_rootsandnoneremain aliases of:workspace_rootsanddeny(“:project_rootsshipped before the canonical rename; keep it as an alias.”); and the app-server answers a restrictedreadOnly.accesswith “readOnly.access is no longer supported; use permissionProfile for restricted reads”. npm on November 25, 2026:latest0.172.0 (published November 24, 00:09:39 UTC);alpha0.174.0-alpha.6 (published 19:45:15 UTC; read at 20:28 UTC). GitHub prereleases: 0.173.0-alpha.1 (November 20) to alpha.5 (November 24); 0.174.0-alpha.1 (November 24) to alpha.6 (November 25, 19:35:37 UTC); and the out-of-band 0.171.0-alpha.13.2 (November 23, 19:38:30 UTC). PyPIopenai-codex: 0.172.0, uploaded November 24, 2026. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
codex-rs/models-manager/models.jsonat tag rust-v0.172.0, fetched November 25, 2026. The file is byte-identical at rust-v0.169.1, rust-v0.170.0, and rust-v0.171.0; at rust-v0.167.2, rust-v0.168.0, and rust-v0.169.0 it is still the rust-v0.167.1 file (205). Inpriorityorder:gpt-6.2-sol(1; “Fast, go-to model for coding and everyday work.”;context_window500000,max_context_window872000;default_reasoning_levellow; levelslowthroughultra;default_service_tiernull),gpt-6.2-astra(2; “Our most capable model for complex coding and professional work.”; 272000, maximum 872000;low; levelslowthroughultra;default_service_tiernull),gpt-6.1-terra(3; 500000; “Efficient model that excels at visual understanding and computer use.”),gpt-6.1-sol(4; 500000, up from 272000; “Previous generation model for coding and everyday work.”),gpt-6-astra(5; 272000; “Previous generation model for complex coding and professional work.”),gpt-6-sol(6; 272000;medium;default_service_tierpriority; “Legacy model for coding and everyday work.”),gpt-6-luna(7; 272000;medium;default_service_tierpriority; levelslowthroughmax),gpt-5.6-sol(8),gpt-5.6-terra(9), andgpt-5.6-luna(10), whose descriptions now begin “Legacy”, andgpt-5.5(13; “Legacy coding model.”). No entry offersminimal. Every entry’struncation_policyis 10,000 tokens; every listed entry’sservice_tiersholds onlypriority(Fast; “2x speed, increased usage” forgpt-6.2-sol,gpt-6.2-astra,gpt-6.1-sol, andgpt-6-astra); every entry exceptgpt-5.5setstool_modetocode_mode_only;multi_agent_versionisv2for every listed model exceptgpt-5.6-luna(v1) andgpt-5.5(unset);supports_experimental_contextis false for both GPT-6.2 entries.upgradetargets are unchanged:gpt-5.6-sol,gpt-5.6-terra, andgpt-5.5togpt-6-sol;gpt-5.6-lunatogpt-6-luna. The commit behind the change,6ae30bd1“Add GPT-6.2 Sol and Astra to model catalogs (#62106),” first tagged in rust-v0.169.1: “Addgpt-6.2-solandgpt-6.2-astrato the bundled, Amazon Bedrock, and Vertex catalogs, including Bedrock Runtime global and US cross-region variants.”; “Make GPT-6.2 Sol the default catalog selection and refresh model ordering, descriptions, and bundled instructions.”; “Increase the GPT-6.1 Sol context window to 500,000 tokens.”codex-rs/model-provider/src/amazon_bedrock/catalog.rsat rust-v0.172.0 lists “GPT-6.2 Sol” first, at priority 0. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
The GPT-6.2 launch, fetched November 25, 2026. Codex Changelog, 2026-11-17, “GPT-6.2 Astra and GPT-6.2 Sol in Work and Codex”: “GPT-6.2 Astra and GPT-6.2 Sol are now available in ChatGPT Work and Codex.”; “With GPT-6.2 Sol, you can complete more tasks on the same paid plan than with GPT-6.1 Sol.”; “Pro $200 subscribers can use GPT-6.2 Sol in Ultrafast mode. Pro $500 subscribers can use Ultrafast with both GPT-6.2 Sol and GPT-6.2 Astra.” Models: “For demanding work across code, apps, or research, choose GPT-6.2 Astra. In Codex, try Astra to trace a bug across services, fix it, and test the change.”; “Choose GPT-6.2 Sol for everyday coding, writing, and work across several sources. It costs fewer credits per token than GPT-6.2 Astra at Standard speed. GPT-6.1 Terra is a fast, efficient choice for writing, visual understanding, and computer use. Luna suits focused, repeatable tasks.”; the model cards give “Default context in Codex” as “272,000 tokens” for GPT-6.2 Astra and “500,000 tokens” for GPT-6.2 Sol and list both under Codex as “App and CLI”; “GPT-6.2 Astra and GPT-6.2 Sol each support a context window of up to 1 million tokens.”; “GPT-6.2 Astra or GPT-6 Astra, for the hardest end-to-end work.”; “GPT-6.2 Sol, for everyday work.”; “For GPT-6.2 Astra or GPT-6.2 Sol, start with the effort your client selects and adjust it based on the task. For Luna, start with High. For GPT-6 Astra, start with Light (
lowin configuration).”; “In the CLI, use/model, choose a model, then select More reasoning… to see its supported Max or Ultra options.”; the GPT-6.1 Sol card, “Performance close to GPT-6 Astra for complex work at a lower cost. Consider it for repeated, long-running work across code, apps, and documents.”; the GPT-6 Astra card, “Combine reasoning and computer use to tackle complex work across code, apps, and research.”; above the examplemodel = "gpt-6.2-sol", “This example selects Sol in the app or CLI. When sharing a configuration with the IDE extension, pick a model available in every client you use, such asgpt-6.1-sol.”; “New Work chats start with GPT-6.2 Sol at Light on supported consumer plans or Medium in Enterprise workspaces with the model enabled. Move the Power slider toward Smarter for deeper reasoning or Faster for faster, lower-cost work.” The page has no GPT-6 Sol card and no list of Power presets. OpenAI’s GPT-6.2 announcement, November 17, 2026: “Starting today, GPT-6.2 Astra and Sol are available to all Plus, Pro, Enterprise, and Edu users in ChatGPT Work and Codex.”; “For the first time, we’re also bringing Ultrafast to Pro 200 subscribers, starting with GPT-6.2 Sol.”; “GPT‑6.2 Astra costs significantly less per task than GPT‑6 Astra, driven by better token efficiency, a 20% discount on input and output tokens, and a deeper 60% discount on cached input tokens.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
ChatGPT pricing and Speed, fetched November 25, 2026. Pricing, local messages per five-hour period for Plus and Standard Business: GPT-6.2 Astra 6-50, GPT-6.2 Sol 17-180, GPT-6 Astra 5-45, GPT-6.1 Sol 15-160, GPT-6.1 Terra 35-285, GPT-6 Sol 15-150, GPT-6 Luna 350-3,000; “Pro plans currently have no five-hour limit.”; “Weekly limits may also apply.” Speed multipliers (included usage / purchased credits and Enterprise pay-as-you-go): Fast, GPT-6.2 Astra and GPT-6.2 Sol 2x / 2x, and GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna 2.5x / 2x; Ultrafast, GPT-6.2 Astra and GPT-6.2 Sol 6x / 3x until the change below, GPT-6 Astra 8x / 6x, GPT-6.1 Sol 8x / 6x. “For GPT-6.2 Astra and GPT-6.2 Sol, eligible overages paid with purchased credits and eligible Enterprise pay-as-you-go usage cost 3x the Standard rate through February 28, 2027. Both cost 6x starting March 1, 2027 (Pacific time). Included usage stays at 6x throughout.” Credits per 1M tokens (input / cached input / output): GPT-6.2 Astra 200 / 10 / 1,000; GPT-6 Astra 250 / 25 / 1,250; GPT-6.2 Sol 50 / 2.5 / 250; GPT-6.1 Sol 50 / 2.5 / 250; GPT-6.1 Terra 25 / 1.25 / 125; GPT-6 Sol 50 / 5 / 250; GPT-6 Luna 2.5 / 0.25 / 12.5; GPT-5.6 Sol 100 / 10 / 500; GPT-5.6 Terra 50 / 5 / 300; GPT-5.6 Luna 5 / 0.5 / 30. “GPT-6.2 Astra and GPT-6.2 Sol are available on Plus, Pro, Business, Enterprise, and Edu in ChatGPT Work on web, mobile, and desktop, and in the Codex app and CLI. Both models are off by default in Enterprise and Edu workspaces.” The Plus plan card still reads “GPT-6.1 Sol and GPT-6 Luna” and the Pro card still limits Ultrafast mode to “access on Pro $500”; the feature table marks Ultrafast unavailable on Plus and Business; “GPT-5.6 Sol’s promotional pricing is available at least through November 21, 2026.” is still on the page beside the 100 / 10 / 500 rate. Speed: “Fast mode supports GPT-6.2 Astra and GPT-6.2 Sol. You can also use it with GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna. On GPT-6.2 Astra and GPT-5.6, Fast generates tokens at about 1.5 times the speed of Standard.”; “On GPT-6.2 Astra and GPT-6.2 Sol, Ultrafast generates tokens at up to 4.5 times the speed of Standard on the same model.”; “On Pro $500, both models are available.”; “GPT-6 Astra and GPT-6.1 Sol also support Ultrafast on Pro $500 and eligible Enterprise and Edu plans. In Codex, GPT-6 Astra generates tokens at up to eight times its Standard speed with Ultrafast.”; “Enterprise workspaces need a credit-based or USD usage-based agreement. Edu workspaces need a credit-based plan.”; “Ultrafast is a separate permission and is off by default.”; “Use
/fastor/ultrafastto choose a speed. Repeat the active command to return to Standard.” The linked GPT-6.2 page: “Pro $200 subscribers can use Ultrafast with Sol. Pro $500 subscribers can use it with either model, as can eligible Enterprise and Edu workspaces once an owner enables Ultrafast.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
OpenAI API docs, fetched November 25, 2026. GPT-6.2 Sol: “Our go-to model for everyday work, from coding to powering agents at scale.”; 1,050,000 context window, 922,000 maximum input tokens, 128,000 max output tokens, June 1, 2026 knowledge cutoff; $2 input, $0.10 cached input, and $10 output per 1M tokens. GPT-6.2 Astra: “Our most capable model for your hardest projects, from start to finish.”; the same context, input, and output limits, May 18, 2026 knowledge cutoff; $8 input, $0.40 cached input, and $40 output per 1M tokens. Both pages: “For requests with more than 272K input tokens, input and cache rates double and output costs 1.5 times the short-context rate for the full request.”; “Fast mode costs twice the Standard rate for the same context length.”; “Ultrafast costs 3 times the Standard rate through February 28, 2027, and 6 times the Standard rate starting March 1, 2027 (Pacific time).” The GPT-6 Astra page now opens “A reasoning model for complex coding and professional work.” API pricing, input / output per 1M tokens: long context,
gpt-6.2-astra$16.00 / $60.00 andgpt-6.2-sol$4.00 / $15.00; Ultrafast promotion,gpt-6.2-astra$24.00 / $120.00 andgpt-6.2-sol$6.00 / $30.00; Ultrafast,gpt-6-astra$60.00 / $300.00 andgpt-6.1-sol$12.00 / $60.00. ↩↩↩↩↩↩↩↩↩ -
OpenAI reference pages, fetched November 25, 2026. CLI reference:
codex exec --trust, “Save project trust for this run and future chats, even with--ephemeral. Conflicts with--ignore-user-config.”;codex review --trust, “Trust this project for this review and future chats, including its configured MCP servers. Codex refuses an explicitly untrusted project.” Configuration reference:agents.enabled, “Enable or disable multi-agent tools (default: true).”;features.mcp_lazy_stdio_startup, “Start eligible stdio MCP servers on the first tool call when their tool list is cached. Defaults totrue. Set tofalseto start them when the thread starts.”;apps.<id>.tools.<tool>.approvals_reviewer(user | auto_review), “Choose who reviews approval prompts for this tool. Overrides the app’s reviewer, subject to managed requirements.”;apps.<id>.approvals_reviewer, “Reviewer for this app’s tool approval prompts. Overridesapps._default.approvals_reviewer.”;apps._default.approvals_reviewer, “Default reviewer for app tool approval prompts unless overridden per app. When omitted, apps inherit the top-levelapprovals_reviewervalue.” Two entries on that page lag the source at rust-v0.172.0:features.multi_agentis still described as “stable; on by default,” andtui.notification_methodis still typedauto | osc9 | bel. Subagents: “agents.enableddefaults totrue. Set it tofalseto disable multi-agent tools.” ↩↩↩↩↩↩↩↩↩↩ -
Sources for the FAQ, fetched November 25, 2026. Codex CLI:
curl -fsSL https://chatgpt.com/codex/install.sh | sh,npm install -g @openai/codex,brew install --cask codexandbrew upgrade --cask codex; “Open a project directory and runcodex. The first time you run Codex, choose Sign in with ChatGPT or another available sign-in method.” Authentication: “Pipe the key tocodex loginthrough stdin”, withprintenv OPENAI_API_KEY | codex login --with-api-key. AGENTS.md: “Codex concatenates files from the root down, joining them with blank lines. Files closer to your current directory override earlier guidance because they appear later in the combined prompt.”; Codex “stops adding files once the combined size reaches the limit defined byproject_doc_max_bytes(32 KiB by default).” Sandbox: “On macOS, sandboxing works out of the box using the built-in Seatbelt” framework; “On Linux and WSL2, installbubblewrapwith your package manager first”; “read-only: The agent can inspect files, but it can’t edit files or run” commands without approval; “danger-full-access: The agent runs without sandbox restrictions.”; “on-request: The agent works inside the sandbox by default and asks when it” needs to go beyond it; “never: The agent doesn’t stop for approval prompts.” Codex Cloud: “Each task has its own workspace and can keep working while your computer is asleep.”; “Inspect changed files and check results, request follow-up changes, and commit or open a pull request when you’re ready.” MCP: “STDIO servers: Servers that run as a local process (started by a command).”; “Streamable HTTP servers: Servers that you access at an address.”;codex mcp add context7 -- npx -y @upstash/context7-mcp; “In thecodexTUI, use/mcpto see your active MCP servers.” Source at rust-v0.172.0:codex-rs/cli/src/main.rshasUpdate(“Update Codex to the latest version.”),Apply(“Apply the latest diff produced by Codex agent as agit applyto your local working tree.”), andCloud(“[EXPERIMENTAL] Browse tasks from Codex Cloud and apply changes locally.”);codex-rs/linux-sandbox/README.md: “The helper uses bubblewrap for filesystem and namespace isolation, and seccomp for syscall filtering.”;codex-rs/core/src/config/mod.rskeeps the errorapproval_policy = "untrusted" is no longer supported; remove this setting;/importreads “import setup, this project, and recent chats from Claude Code”. ↩↩↩↩↩↩↩↩↩↩↩↩ -
Subagent thread limits, read November 25, 2026. Source at rust-v0.172.0,
codex-rs/core/src/config/mod.rs:DEFAULT_AGENT_MAX_THREADS: Option<usize> = Some(6)andDEFAULT_MULTI_AGENT_V2_MAX_CONCURRENT_THREADS_PER_SESSION: usize = 4, both the same at rust-v0.167.1.effective_agent_max_threadsreturnsmax_concurrent_threads_per_session.saturating_sub(1)forMultiAgentVersion::V2andself.agent_max_threads.or(DEFAULT_AGENT_MAX_THREADS)forV1;resolve_multi_agent_v2_configadds one to a configuredagents.max_concurrent_threads_per_session(saturating_add(1)) and otherwise uses the v2 default.codex-rs/models-manager/models.jsonsetsmulti_agent_versiontov2forgpt-6.2-sol,gpt-6.2-astra,gpt-6-astra,gpt-6.1-sol,gpt-6.1-terra,gpt-6-sol,gpt-6-luna,gpt-5.6-sol, andgpt-5.6-terra, and tov1forgpt-5.6-luna;gpt-5.5has no value and resolves to v1 while themulti_agentflag is on. Subagents:agents.max_concurrent_threads_per_session, “Cap concurrently open spawned-agent threads, excluding the primary.”; “When you leaveagents.max_concurrent_threads_per_sessionunset, Codex chooses the default. Existing configurations can keep usingagents.max_threadsas a legacy alias.” v0.91.0 release notes: “Reduced the maximum allowed number of sub-agents to 6 to tighten resource usage and guardrails in agent fan-out behavior (#9861)”. ↩↩↩↩ -
Claude Code documentation, fetched November 25, 2026. The Hooks reference has a section for each of 34 hook events:
SessionStart,Setup,InstructionsLoaded,UserPromptSubmit,UserPromptExpansion,PreSkillShellCommand,MessageDisplay,PreToolUse,PermissionRequest,PostToolUse,PostToolUseFailure,PostToolBatch,PermissionDenied,Notification,SubagentStart,SubagentStop,TaskCreated,TaskCompleted,Stop,StopFailure,TeammateIdle,ConfigChange,CwdChanged,DirectoryAdded,FileChanged,WorktreeCreate,WorktreeRemove,PreCompact,PostCompact,PreModelSwitch,PostModelSwitch,SessionEnd,Elicitation, andElicitationResult. It has noInterrupt,PreModelRequest, orPostModelRequest. Sandboxing: “The Bash sandbox is a boundary that the operating system enforces around the shell commands Claude runs on your machine.”; “The sandbox is off by default.”; “macOS: sandboxing uses the built-in Seatbelt framework”; “Linux and WSL2: the sandbox relies onbubblewrapandsocat”; “On native Windows, Claude Code runs commands unsandboxed.” Memory: “By default, Claude readsAGENTS.mdonly when you have noCLAUDE.mdin your working directory or above it.”; “ReadingAGENTS.mddirectly requires Claude Code v2.1.277 or later.” Subagents: “In version 2.1.63, the Task tool was renamed to Agent. ExistingTask(...)references in settings and agent definitions still work as aliases.” MCP keeps project-scoped servers in.mcp.jsonand local- or user-scoped servers in~/.claude.json. Model configuration lists the aliasesfable,opus,sonnet, andhaiku, and says Claude Fable models “are the most capable models in Claude Code, suited to tasks larger than a single sitting.” Codex’s side of the sandbox comparison, from OpenAI’s Sandbox page: “The default permissions mode applies sandboxing automatically.”; “The sandbox applies to spawned commands, not just to built-in file operations.” ↩↩↩↩↩↩↩↩↩↩↩↩ -
Codex Cloud (Legacy) documentation, fetched November 25, 2026. Cloud environments: “Codex Cloud (Legacy) continues to support Code Review and the Linear and GitHub integrations. We plan to deprecate this experience.” Codex Cloud (Legacy): “Codex creates a container and checks out your repo at the selected branch or commit SHA.”; “Codex runs your setup script, plus an optional maintenance script when a cached container is resumed.”; “Setup scripts run with internet access. Agent internet access is off by default, but you can enable limited or unrestricted access if needed.”; “When the agent finishes, it shows its answer and a diff of any files it changed. You can open a PR or ask follow-up questions.” Codex Cloud (Legacy): internet access: “By default, Codex blocks internet access during the agent phase. Setup scripts still run with internet access so you can install dependencies.”; “On: Allows internet access, which you can restrict with a domain allowlist and allowed HTTP methods.”; the allowlist presets are None, Common dependencies, and All (unrestricted); “For extra protection, restrict network requests to
GET,HEAD, andOPTIONS.” Review GitLab merge requests with Codex: “The GitLab code review integration is in beta and is available on all ChatGPT plans. It runs in Codex cloud.”; “In a merge request comment, mention@codex review.”; “Fixing review findings requires a configured project environment”; “Other coding tasks also require a configured project environment”; in both cases the page says Codex starts a legacy cloud chat; “Signed project and group webhooks require GitLab 19.0 or newer.” ↩↩↩↩ -
OpenAI trust pages and the Codex troubleshooting page, fetched November 25, 2026. Enterprise privacy at OpenAI: “Enterprise-level authentication through SAML SSO”; “Our API Platform has been audited and certified for SOC 2 Type 2 compliance.”; “We are able to sign Business Associate Agreements (BAA) in support of customers’ compliance with the Health Insurance Portability and Accountability Act (HIPAA).”; “By default, we do not use your business data for training our models.” Business data privacy, security, and compliance: “We don’t train our models on your organization’s data by default.”; “OpenAI’s data protection practices support your compliance with GDPR, CCPA, and other privacy laws”; “Eligible ChatGPT Enterprise, ChatGPT Edu, ChatGPT for Healthcare, and API platform customers can store sensitive customer content at rest in the U.S., Europe, UK, Japan, Canada, South Korea, Singapore, Australia, India, and the UAE to help support compliance with local data sovereignty requirements.” Troubleshooting: “Session transcripts:
$CODEX_HOME/sessions(default:~/.codex/sessions)”. ↩↩↩↩↩↩↩ -
Sources for the Common Problems rows, fetched November 25, 2026. Authentication: “For stored authentication, run
codex logoutto clear the current credentials.” Developer commands,/debug-config: “Print config layer and requirements diagnostics.”; “Review the output for config layer order (lowest precedence first), on/off state, and policy sources.” Agent approvals & security: “By default, the agent runs with network access turned off.”; “the defaultworkspace-writesandbox mode keeps network access turned off unless you enable it in your configuration”. ↩↩↩↩ -
ChatGPT desktop app, IDE extension, and CLI docs, fetched November 25, 2026. Worktrees: “Worktrees let Codex run multiple independent chats in the same project without interfering with each other.”; “Codex creates worktrees in
$CODEX_HOME/worktrees. The starting commit is theHEADcommit of the branch selected when you start your chat. If you chose a branch with local changes, Codex applies the uncommitted changes to the worktree as well. The worktree isn’t checked out as a branch.”; “If you want to stay exclusively on the worktree with your changes, turn your worktree into a branch using the Create branch here button in the chat header.”; “From here you can commit your changes, push your branch to your remote repository, and open a pull request on GitHub.”; “If you want to bring a chat into the foreground, select Hand off in the chat header and move it to Local.”; “To choose another location, open Settings > Worktrees and change Worktree root.” Codex environments: “Both Local and Worktree chats run on your computer.”; “Cloud: run a remote task in its own workspace.” Code review: “Open the review pane to understand what changed, give line-specific feedback, and decide what to stage, revert, commit, or push.”; “Per hunk: Stage, unstage, or revert a single hunk.” ChatGPT desktop app: “Run projects in parallel, work with files, use your computer, and keep long-running work moving from one desktop workspace.” Projects: “Pin a project to keep it near the top of the sidebar.” Settings: “On macOS and Linux, turn on Prevent sleep while running so local chats can continue while you step away.”; “In the ChatGPT desktop app, pop out an active chat into a separate window and place it next to your browser, editor, or design preview. Turn on Always on top when you want the chat to remain visible while you work in another app.” Notifications: “choose whether turn-completion alerts appear never, only while ChatGPT is in the background, or always. Separate controls let you turn permission and question notifications on or off.” Scheduled tasks: “For example, schedule a task to evaluate telemetry errors and submit fixes, or to create reports about recent codebase changes.”; “In non-version-controlled projects, scheduled tasks run directly in the project directory.”; “You can also leave the model and reasoning effort on their default settings, or choose them explicitly if you want more control over how the scheduled task runs.”; “Scheduled tasks run unattended with your default sandbox settings.”; “Standalone scheduled tasks start a new chat for each scheduled run and report results in Scheduled.”; “Schedule a task inside an existing chat when you want ChatGPT to return to that chat on a schedule.”; “checking a long-running operation until it finishes”; “running a skill-driven workflow that uses plugins, such as checking PR status and addressing new feedback”; “Codex CLI doesn’t provide the Scheduled management interface.” Developer settings: “Codex agents in the app inherit the same configuration as the IDE extension and CLI.” Config basics: “The CLI and IDE extension share the same configuration layers.” Codex IDE extension: “Reference open files, selected code, and recent chats directly from the composer.”; “Read the summary, inspect a focused diff, and follow up in the same chat.” Developer commands: “On macOS and Windows, type/appto open the current session in the ChatGPT desktop app.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Browser extension, fetched November 25, 2026: “ChatGPT can read or act on sites where you’re already signed in, such as LinkedIn, Salesforce, Gmail, or internal tools.”; “All five browsers support tab mentions and browser control from the desktop app. Chrome, Edge, Brave, and Vivaldi also support side chat.”; “By default, ChatGPT asks before it interacts with each new website.”; the choices are Allow once, Allow for this site, Allow for all sites, and Decline; “go to Settings > Computer Use, then select Manage next to your browser to manage an allowlist and blocklist for domains.”; “Mention an open browser tab in the desktop app when you want ChatGPT to use that page as context.”; “ChatGPT can also switch between tools as a task requires, using plugins when a dedicated integration is available, your browser when it needs signed-in browser context, and the built-in browser for localhost.” ↩↩↩↩↩
-
GitHub and Cursor documentation, fetched November 25, 2026. GitHub Docs, About Copilot CLI: “In addition to the default ask/execute mode there is also a plan mode in which Copilot will build a structured implementation plan for a task you want to complete.” The Copilot CLI command reference lists the built-in agents
code-review,explore,general-purpose,research,rubber-duck,security-review, andtask. Adding repository custom instructions: “You can create one or more AGENTS.md files, stored anywhere within the repository.”; repository-wide instructions “are specified in a copilot-instructions.md file in the .github directory of the repository.” Copilot CLI ACP server: “ACP support in GitHub Copilot CLI is in public preview and subject to change.”; “Use the –acp option of the copilot command to start the CLI’s ACP server.” Copilot on GitHub: “This article explains both the newer Copilot in the cloud experience and the older Copilot cloud agent plus Copilot Chat experience.” Copilot SDK: “Multi-platform SDK for integrating GitHub Copilot Agent into apps and services”, with SDKs for Node.js / TypeScript, Python, Go, .NET, Rust, and Java. Cursor Docs, Rules: “Project rules live in .cursor/rules as .mdc files and are version-controlled.”; “If you prefer plain markdown, use AGENTS.md instead.” Prompting agents: “Type @ in the chat input to attach specific context to your prompt.” Agent overview: “Suggest edits to files and apply them automatically.”; “click any checkpoint in the chat timeline to preview your files at that point, then restore to revert all files to that state.” ↩↩↩↩↩↩↩↩↩ -
App-server and TUI details, read November 25, 2026. Codex app server: “
itemsViewcontrols how much turn-item data the response includes:”; “notLoadedomits items.”; “summaryreturns summarized item data and is the default when omitted.”; “fullreturns full item data.” Source at rust-v0.172.0,codex-rs/tui/src/chatwidget.rs:const DEFAULT_STATUS_LINE_ITEMS: [&str; 3] = ["model-with-reasoning", "current-dir", "thread-name"];. ↩↩↩ -
Plugin pull requests and docs, read November 25, 2026. #12864: “Plugins can now be enabled via [plugins.
] in config.toml.”; #13333: “Update config.toml plugin entries to use @ as the key.”; #13540: “Introduce a plugin/list which reads from local marketplace.json.” #13510: an @pluginmention “injects the plugin’s mcp servers, app names, and skill name format into turn context as a dev message.” v0.113.0, #13712: “Add a synced curated plugin marketplace and include it in marketplace discovery.”; “Expose optional plugin.json interface metadata in plugin/list”; #13685: “check if installed apps are already authed on chatgpt, and return list of all apps that are not.”; #14111: “addplugin/uninstallapp-server endpoint to fully rm plugin from plugins cache dir and rm entry from user config file.” v0.129.0, #20278: “Adds v2 plugin/share/save, plugin/share/list, and plugin/share/delete RPCs.”; #21124: “addsplugin/share/updateTargetsfor share-only target updates without re-uploading.”; #21419: “Adds marketplaceKinds to plugin/list for local, workspace-directory, and shared-with-me” and “including remotePluginId and nullable creator metadata”; #19843: “It adds aCtrl+Rshortcut to remove selected marketplace tabs”; #20478: “It adds aCtrl+Ushortcut on eligible marketplace tabs”. v0.130.0, #21447: “render aHooksrow in the/pluginsdetail popup” and “plugin detail needs to show hooks for disabled plugins too”; #21495: “Extends PluginSummary.shareContext with shareUrl and reader shareTargets”; #21637: “Requires discoverability on plugin/share/updateTargets so the server can manage workspace link access consistently, including auto-adding the workspace principal for UNLISTED.” and “Also rejects LISTED on share creation”. v0.133.0, #23727: “rendercodex plugin listas one table per marketplace with the marketplace manifest path shown above each table”; #23730: “print an aligned marketplace/root table”. v0.143.0, #30297: “preserve the existingfeatures.remote_pluginoverride for explicitly disabling it”; #30981: “addPluginSummary.versionfor versions advertised by remote plugin marketplaces” and “keeplocalVersionas the version of the locally materialized package”;codex-rs/features/src/lib.rsat rust-v0.172.0 hasremote_pluginasStablewithdefault_enabled: true. v0.146.0, #35254: “Add nullablecanPublishToWorkspacemetadata to plugin share contexts andplugin/share/saveresponses.” Plugins: “Hooks: commands that run at configured lifecycle points in the Codex runtime.”; “Review and trust plugin hooks before they run.” ↩↩↩↩↩↩↩↩↩↩↩↩ -
Desktop commands and Claude Code commands, fetched November 25, 2026. Commands lists “New chat” with ⌘+N on macOS and Ctrl+N on Windows, and “Archive chat” with ⌘+⇧+A on macOS and Ctrl+Shift+A on Windows. Projects: “Archive a chat when you finish the work.”; “Restore archived chats from Settings > Archived chats.” Developer commands: “
codex appopens an installed ChatGPT desktop app, or starts the installer when the app is missing.”;/status, “Display session configuration and token usage.”;/usage, “View account token usage or use a rate-limit reset.” Claude Code Commands:/costis “Alias for/usage”, and/usageis “Show session cost, plan usage limits, and activity stats.” ↩↩↩↩↩ -
Plugin authoring, the plugin CLI, and MCP sandbox state, read November 25, 2026. Build plugins: “For a portable Agent Plugins package, add
plugin.jsonat the plugin root and declare the Agent Plugins schema.”; “Put OpenAI-specific presentation, registered MCP server mappings, and hook settings underextensions.com.openaiin rootplugin.json. Existing.codex-plugin/plugin.jsonfiles remain supported as a compatibility fallback.”; “Add a marketplace file at$REPO_ROOT/.agents/plugins/marketplace.jsonand store your plugins under$REPO_ROOT/plugins/.”; “You must be a workspace admin to publish a plugin to your workspace.”; the publishing steps include “Select Personal.”, “Find the plugin you want to publish and open its three-dot menu.”, “Select Publish.”, and “Specify the workspace roles that should have access to the plugin.”; “Workspace admins can disable workspace plugin publishing through cloud-managed requirements by addingfeatures.plugin_sharing = falsetorequirements.toml”. Source at rust-v0.172.0,codex-rs/cli/src/plugin_cmd.rs: the--availableflag, which requires--json, is documented as “Include uninstalled marketplace plugins in the JSON output.”codex-rs/codex-mcp/src/sandbox_metadata.rs:MCP_SANDBOX_STATE_CAPABILITY: &str = "codex/sandbox-state", and aboveMCP_SANDBOX_STATE_META_CAPABILITY: &str = "codex/sandbox-state-meta"the comment “Deprecated capability and metadata spelling, retained as an identical alias.” ↩↩↩↩↩ -
instant_interruptandcode_mode_interruptby tag, read November 25, 2026 incodex-rs/features/src/lib.rs.instant_interrupt: no such key at rust-v0.158.0;UnderDevelopmentwithdefault_enabled: falseat rust-v0.159.0 and rust-v0.161.0;UnderDevelopmentwithdefault_enabled: trueat rust-v0.162.0 and rust-v0.163.0.code_mode_interrupt:UnderDevelopmentand off at rust-v0.162.0,Stableand on at rust-v0.163.0. v0.159.0 release notes: “Opt-ininstant_interruptlets new input steer Codex during model responses or long-running code-mode calls. (#48135, #48141)”. #51812, “Enable instant interrupts by default”, merged October 7, 2026: “Keep the feature marked as under development”. #51835: “Markcode_mode_interruptas stable and enable it by default”. The v0.163.0 release notes list both: “Send a follow-up while Codex is responding to steer it immediately. Interrupting a turn also stops active Code Mode cells and their nested tool calls. (#51812, #51835)”; the v0.162.0 notes do not mention #51812. ↩↩↩ -
Reviewer precedence for one app tool, read November 25, 2026. #62360 “Allow per-tool approval reviewers for Codex apps”, merged November 18, 2026: “The tool’s reviewer takes precedence over the connected account, app, app defaults, and session settings, subject to managed requirements.” At rust-v0.172.0,
mcp_approvals_reviewer_from_layersincodex-rs/core/src/connectors.rstakes the tool’sapprovals_reviewer, then the one on the app’s link for the connected account, then the app’s, then the apps default;codex-rs/config/src/types.rsdocuments the tool field as “Reviewer for this tool’s approval prompts, overriding link-level and app-level settings.” The configuration reference quoted in 262 names only the app level. ↩↩