Codex is OpenAI’s coding agent: a Rust CLI, an IDE extension, a desktop app, and a cloud service, all included in ChatGPT plans.
Codex is the only big-lab harness whose Apache-2.0 CLI an individual can still just run, and that matters more day to day than any single feature difference with Claude Code.
What it is #
The codex CLI runs locally against your repository, with /init writing an AGENTS.md, sandboxed permissions, /review for local code review, skills and a plugin marketplace, subagents, and codex exec for scripts and CI.
Codex cloud runs the same agent in cloud environments reachable from web, CLI, and GitHub (@codex on issues and PRs), and the SDK, app server, and MCP server expose the harness as a platform.
Default models are the GPT-6 family (Astra, Sol, and Luna) rolling out across plans alongside the GPT-5.6 family (Sol, Terra, Luna), with GPT-6.1 Sol now listed on Plus and Pro for Work and Codex and GPT-5.5 retiring from ChatGPT on October 14, 2026.
Status #
Active.
openai/codex shows about 129.3k stars, about 20.3k forks, and about 12.3k commits under Apache-2.0 as of 2026-10-15.
The CLI launched April 2025 and has been rewritten and rebuilt since; the current docs position it as an open agent harness platform.
The release train stays hot: rust-v0.172.0 (November 24, 2026) is the latest stable, adding Tab completion of arguments for supported slash commands, thread links followed from search results and transcripts to saved conversations and nested agents, task-group navigation with Shift+Up and Shift+Down in the agent command center, optional stdio MCP servers starting lazily on their first tool call by default, per-tool approval reviewers for connected app tools, Amazon Bedrock Runtime selection during app-server setup, and Code Mode on gRPC for all host connections, with fixes restoring saved sandbox permissions, the working directory, and workspace roots on codex exec resume, reporting provider errors and the reached spend limit as soon as they stream in, and preserving queued child-agent replies when a parent turn is interrupted, after rust-v0.171.0 (November 20, 2026), which added GPT-6.2 Sol and Astra to the model catalogs with Sol as the default catalog selection, the TUI workspace enabled by default with searchable document previews, image previews, and subagent transcripts beside the main conversation, configurable undo and redo shortcuts in the non-Vim prompt composer that restore attachments and large pastes, codex exec --remote <ADDR> starting or resuming noninteractive sessions on an existing app server, /rc and /remote managing local remote control and displaying device pairing codes from the TUI, and custom MCP status line selection and authoring through /statusline under tui_extensions_statusline, with fixes keeping drafts, queued follow-ups, and interrupted input with their original threads across session switches and resumes, preserving permission profiles across working-directory changes, and stopping late completion events from cancelling a newer turn’s approvals, after rust-v0.170.0 (November 18, 2026), which added WebRTC negotiation for realtime voice calls in the TUI, automatically refreshed authentication headers for OpenTelemetry HTTP exporters, and experimental support for identically named MCP servers across environments, with fixes from oversized WebSocket requests falling back to HTTP and MCP OAuth credential races during cancellation, login, and logout to improved Cloud conversation reconnection, after rust-v0.169.1 (November 17, 2026, a patch cut with no release highlights), after rust-v0.169.0 (November 13, 2026), which added multiple side-chat tabs in the opt-in terminal workspace with saved local side chats reopening after restart, task search in the agent command center by name, prompt preview, or working directory, a Collapse turn details control folding completed activity under each prompt while keeping answers and tool output searchable, custom model provider creation from the terminal during sign-in with device-code onboarding for supported gateways over SSH, a Ctrl+S diagnostic-ZIP save that works when uploads are disabled, and, on the opt-in macOS and Linux Cloud connection, sending images, choosing a model and reasoning effort, and archiving or restoring Cloud conversations from the terminal, after rust-v0.168.0 (November 13, 2026), which added a Sessions view for browsing model providers and choosing the default for new chats, an opt-in features.tui_workspace side conversation beside the main chat with a resizable divider and leader z zoom, audio-recording attachments for audio-capable models (confirmed-rejected recordings skipped on later turns, clip duration used to keep short recordings in context), an opt-in features.image_generation_animation for generating and editing animated GIFs with frame count and timing controls, fullscreen image previews and pets in tmux on Ghostty and Kitty with allow-passthrough all, and tui.notification_method = "osc777" terminal notifications with longer command previews, after rust-v0.167.1 (November 10, 2026), a patch cut with no hand-written notes, after rust-v0.167.0 (November 6, 2026), adding codex agents --no-daemon to open the agent command center without the daemon, unread-result markers in the command center and session picker, backend switching from the terminal session picker that keeps drafts, local image attachment previews while composing with clickable transcript paths opening viewed images, API key and cloud provider options under “Sign in another way” with a gcp_setup_wizard for Vertex AI onboarding, opt-in macOS and Windows system proxy settings, and patch details expanding in the transcript beside an open approval prompt, after rust-v0.166.0 (October 29, 2026) added keyboard-driven transcript selection with word, line, and page motions and integrated search, consistently rendered Markdown in async questions, choices, and replies, GPT-6.1 Terra in the bundled, Vertex AI, and Amazon Bedrock catalogs, codex queue --resume for resuming unloaded queued threads, clearer safety-block explanations, and a codex doctor --network-only diagnostic mode, after rust-v0.165.0 (October 27) added a built-in Google Cloud Vertex AI provider configured with model_provider = "gcp", GPT-6.1 Terra in the model catalogs, a repository filter in the session picker with directory grouping in the agent command center, experimental attached thread forks in the app-server API, and mid-conversation reasoning-effort changes enabled by default, and rust-v0.164.0 (October 23) added ten numbered /presets slots for reusable prompts and slash commands with a keyboard menu, inline /model and /permissions arguments, and image previews in the fullscreen transcript on Kitty and Sixel terminals.
Main since rust-v0.172.0 carried no newer stable as of 2026-11-29, with the alpha feed at rust-v0.174.0-alpha.9 (published November 27) and no v0.173.0 stable on the feed, and its merge titles since November 27 read as a sandbox-hardening run: a resolved filesystem policy required before probing Bubblewrap (#64422), declared filesystem permissions honored in Windows sandboxes (#64416), Linux restrictions preserved across writable symlink aliases (#64415), synthetic mounts sealed in read-restricted Linux sandboxes (#64398), sandbox paths bound before shell snapshot replay (#64388), confirmed thread permissions shown in the TUI status (#64393 and #64396), and per-stream buffering limited in the Noise relay (#64540), after the November 26 TUI batch (/diff in a sidebar tab, #64258, inline local Markdown images, #64254, and side chats in scrollback mode, #64207).
Strengths #
- Open-source CLI you can audit, fork, and drive with an API key, no subscription required.
- Included from the ChatGPT Free tier upward, so the entry price is zero.
- AGENTS.md is the first-class configuration convention, not a vendor variant.
- Model tiering (Sol/Terra/Luna) makes high-volume work cheaper without changing tools.
- Sandboxing and permission profiles are documented and prominent.
Cautions #
- API-key mode drops the cloud features (GitHub code review, Slack integration); those need a ChatGPT plan.
- Usage is metered in shared five-hour windows across ChatGPT and Codex features, and the published per-window message ranges are wide (for example 10-100 local Sol messages on Plus).
- The April 2025 launch drew sharp comparisons: early builds hallucinated docs Claude Code wrote correctly, and the original TypeScript CLI was rough; judge current releases, not that launch thread.
- Skills and plugins are converging on formats every vendor now claims, so expect churn.
Pricing #
Included in ChatGPT Free, Go ($8/month), Plus ($20/month), Pro (three tiers at $100, $200, and $500/month, the $500 tier carrying Ultrafast Astra access), Business ($20-25 per user), Enterprise and Edu. Overage is sold as credits; API-key usage is plain token pricing.
Price history #
| Date | Plan | Change | Source |
|---|---|---|---|
| 2026-09 | ChatGPT plans | Baseline: included from Free up, Go $8/mo, Plus $20/mo, Pro 5x $100/mo, Pro 20x $200/mo, Business $20-25 per user, Enterprise and Edu custom; overage sold as credits. | |
| 2026-10-03 | Pro | The pricing page now lists Pro as three tiers at $100, $200, and $500 per month, where the note previously carried Pro 5x $100 and Pro 20x $200; the $500 tier is listed with Ultrafast Astra access. |
Compared to #
- Claude Code: deeper orchestration layer, heavier token baseline, closed client; pick Anthropic’s stack only if you are all-in on Claude models.
- Gemini CLI: also Apache-2.0, but Google ended free consumer access in June 2026.
- OpenCode: provider-neutral and MIT, but no bundled subscription usage.
Bottom line #
Recommended for anyone already paying for ChatGPT: it is the subscription-backed harness with the least lock-in. My own split: work that suits a subscription goes here, metered work goes to aider or OpenCode on my keys. Not the cheapest path if your usage is light and token-based (aider or OpenCode with your own keys costs less).
Changes #
- 2026-08-22 - Created in the Harnesses category seed.
- 2026-08-23 - Bolded each section’s key insight, named the launch-thread referent in the April 2025 caution, and set the updated field.
- 2026-08-26 - Qualified the overbroad only-open-source-CLI thesis to what distinguishes it from Gemini CLI.
- 2026-08-27 - Moved the three doc references to learn.chatgpt.com after the domain migration and reworded a banned-term phrase.
- 2026-09-16 - Refreshed repository scale to about 125k stars, about 19.3k forks, and about 10.8k commits.
- 2026-09-20 - Added the Price history section tracking price changes in a table, per the new owner rule.
- 2026-09-22 - Recorded the GPT-6 family (Astra, Sol, Luna) arriving across ChatGPT plans alongside GPT-5.6 and the October 14, 2026 GPT-5.5 retirement, and refreshed repository scale.
- 2026-09-26 - Linked the ChatGPT plans note in the new Model access category, where the subscription that carries this harness is tracked with its price history.
- 2026-10-03 - Recorded the pricing page listing Pro as three tiers at $100, $200, and $500 per month (previously Pro 5x $100 and Pro 20x $200), with the $500 tier carrying Ultrafast Astra access, and appended the matching Price history row.
- 2026-10-07 - Added the openai/codex star history chart to the Status section.
- 2026-10-08 - Recorded the pricing page listing GPT-6.1 Sol on Plus and Pro for Work and Codex (its credit rate card added alongside), with the GPT-5.5 October 14 retirement reconfirmed.
- 2026-10-17 - Recorded the stable train reaching rust-v0.163.0 (October 15), which added the searchable
/config, follow-up steering of a responding turn with Code Mode cell interruption, and a configurable leader key, with the v0.164.0 alphas following, and re-verified the ChatGPT pricing page unchanged (Pro still $100/$200/$500 with Ultrafast on the $500 tier). - 2026-10-25 - Rotation re-verification, every cited reference live, and recorded rust-v0.164.0 as the latest stable (October 23): ten numbered
/presetsslots, inline/modeland/permissionsarguments, and Kitty/Sixel image previews in the fullscreen transcript. - 2026-10-27 - Recorded the v0.165.0 alpha train running (three alphas published October 26 through 27) behind the unchanged rust-v0.164.0 stable.
- 2026-10-28 - Recorded the stable channel promoting rust-v0.165.0 (October 27): the built-in Google Cloud Vertex AI provider, GPT-6.1 Terra in the catalogs, session-picker repository filtering with agent-command-center directory grouping, experimental attached thread forks, and reasoning-effort switching mid-conversation, with the v0.166.0 alpha train already running.
- 2026-11-01 - Recorded the stable channel promoting rust-v0.166.0 (October 29): keyboard-driven transcript selection with integrated search, rendered Markdown in Q&A surfaces, GPT-6.1 Terra across the bundled, Vertex AI, and Bedrock catalogs,
codex queue --resume, clearer safety-block explanations, andcodex doctor --network-only. - 2026-11-06 - Recorded rust-v0.167.0 as the latest stable (November 6):
codex agents --no-daemon, unread-result markers, draft-keeping backend switching, image attachment previews while composing, Vertex AI setup in TUI onboarding, and opt-in system proxy settings. - 2026-11-13 - Recorded rust-v0.168.0 as the latest stable (November 13): a Sessions view for browsing model providers and choosing defaults, an opt-in TUI workspace side conversation, audio-recording attachments, opt-in animated GIF generation, tmux passthrough image previews on Ghostty and Kitty, and OSC 777 notifications.
- 2026-11-14 - Recorded rust-v0.169.0 as the latest stable (published later on November 13): multi-tab side chats in the opt-in terminal workspace with saved local side chats reopening after restart, agent-command-center task search by name, prompt preview, or working directory, collapsible turn details in the full-screen transcript, custom model provider creation from the terminal with device-code gateway onboarding, an offline diagnostic-ZIP save, and Cloud connection image sends, model choice, and conversation archive and restore from the terminal.
- 2026-11-19 - Rotation re-verification, re-fetching every cited reference (all live): recorded rust-v0.170.0 as the latest stable (published November 18): WebRTC negotiation for realtime voice calls in the TUI, auto-refreshed OTel exporter auth headers, experimental same-named MCP servers across environments, oversized WebSocket fallback to HTTP, MCP OAuth credential-race fixes, and Cloud reconnection improvements, after the rust-v0.169.1 patch (November 17) that carried no release highlights.
- 2026-11-20 - Recorded rust-v0.171.0 as the latest stable (published November 20): GPT-6.2 Sol and Astra in the catalogs with Sol default, the TUI workspace on by default with document, image, and subagent-transcript previews, composer undo and redo with attachment restoration,
codex exec --remoteagainst an existing app server,/rcand/remotedevice pairing, and custom MCP status lines through/statusline, with draft-preservation and approval-race fixes, against the GitHub releases API. - 2026-11-22 - Recorded the v0.173.0 alpha train running (four alphas published November 20 through 21) behind the unchanged rust-v0.171.0 stable, against the repository’s releases feed.
- 2026-11-24 - Recorded rust-v0.172.0 as the latest stable (published November 24): Tab completion of slash-command arguments, thread links followed to saved conversations and nested agents, task-group navigation in the agent command center, lazy startup for optional stdio MCP servers by default, per-tool approval reviewers for connected app tools, Bedrock Runtime selection in app-server setup, and Code Mode on gRPC, with resume-state and streamed provider-error fixes; the alpha feed now carries rust-v0.174.0-alpha.1 and a rust-v0.173.0-alpha.5 cut (both November 24) after the v0.173.0 alphas ran alpha.1 through alpha.4 on November 20 through 21, with no v0.173.0 stable on the feed, against the GitHub releases API.
- 2026-11-27 - Recorded main’s unreleased TUI batch since rust-v0.172.0 (as of November 27:
/diffin a sidebar tab, inline local Markdown images, side chats in scrollback mode, highlighted file line ranges, and MCP startup off the working indicator), per the default branch’s merge titles. - 2026-11-29 - Rotation re-verification, re-fetching every cited reference (all live): the alpha feed at rust-v0.174.0-alpha.9 (published November 27) with rust-v0.172.0 still the latest stable, and main’s unreleased sandbox-hardening batch since (a resolved filesystem policy before probing Bubblewrap, declared permissions in Windows sandboxes, Linux restrictions across writable symlink aliases, sealed synthetic mounts, and thread permissions in the TUI status), per the default branch’s merge titles and the GitHub releases feed.
See also #
- Agentic Coding Tools Landscape - Codex’s place in the four-layer map
- Managing Many Concurrent LLM Agent Sessions - what running Codex plus siblings in parallel looks like
- my-ai-workflow - a practitioner’s harness rotation that includes Codex
- Claude Code - the direct subscription-first rival
- ChatGPT plans - the subscriptions that carry Codex, with their published limits and credit rates
References #
https://learn.chatgpt.com/docs - product overview and surfaces
https://learn.chatgpt.com/docs/codex/cli - CLI features, plugins, review, exec
https://learn.chatgpt.com/docs/pricing - plans, usage windows, credit rate card, GPT-6 rollout, the GPT-5.5 retirement date, and the Pro tier ladder at $100, $200, and $500, as of 2026-10-17 (re-verified unchanged 2026-11-19)
https://github.com/openai/codex - repository scale and Apache-2.0 license, as of 2026-11-19
https://news.ycombinator.com/item?id=43708025 - launch discussion with early critical comparisons