OpenAI's cloud-sandboxed coding agent — a terminal-native, open-source Rust binary that runs tasks in isolated sandboxes by default and can execute several in parallel. Backed by codex-1 (an o3 variant RL-trained on real-world PRs) and codex-mini. Bundled with ChatGPT Plus / Pro / Business / Enterprise.
Codex CLI inverts the local-first assumption other coding agents make. The agent works in isolated cloud sandboxes by default, so you can kick off three tasks in parallel and review the PRs when they're done — not block on each one.
Codex CLI launched as a research preview on May 16, 2025 and reached general availability inside ChatGPT Plus on June 3, 2025. Through 2025-2026 it matured into a full surface: terminal TUI with composer, file explorer, and integrated shell; a web app at codex.app; IDE integrations; and a Chrome extension (May 2026) that lets the agent work across tabs without taking over the browser.
The CLI binary itself is open source — Rust, MIT-licensed, installable via npm install -g @openai/codex or brew install --cask codex. The proprietary parts are the models it calls (codex-1 and codex-mini) and the cloud-sandbox runtime. This OSS-CLI / proprietary-model split is unique among the major coding agents.
The codex-1 model is a specialised variant of o3, trained via reinforcement learning on real-world coding tasks and PR conventions — the kind of training set that produces code matching human style rather than generic LLM-flavoured output. codex-mini (o4-mini-based) is optimised for low-latency code Q&A and fast editing workflows; it's the default model in the CLI.
Six load-bearing capabilities. Verified against current docs as of May 2026.
The agent works on a copy of your repo in an isolated cloud sandbox, not your local working directory. You keep coding; it works in parallel. PRs come back when tasks finish.
Fire off multiple tasks at once. Each runs in its own sandbox. Useful for "do these three migrations" patterns where local serial execution would block you.
codex-1 + codex-minicodex-1 for big tasks (o3-based, RL-trained on PRs); codex-mini for fast iteration (o4-mini, default in CLI). Switch via flag or task.
Separate review agent inspects changes before opening a PR. Self-iterates on its own work — you don't open a PR until it has reviewed itself.
Fetches current information for tasks. Connects to MCP servers for third-party tools (databases, GitHub, Slack, etc.).
Composer supports /vim and Vim keymaps for muscle memory. Chrome extension (May 2026) lets the agent work across browser tabs in background — reading docs while you stay in your tab.
Four surfaces, one agent. Pick the entry point that matches the work.
The Rust binary. codex command launches a TUI with composer, file explorer, and shell. macOS, Linux, Windows (native PowerShell or WSL2).
Browser-based interface to the same sandboxed agent. Useful when you're not at your terminal.
VS Code and IDE-specific plugins. Feature parity is close but the terminal gets new features first.
Added May 2026. Works across tabs in the background. Lets the agent read documentation, navigate web UIs, and stay out of your way while you keep using the browser.
No standalone Codex subscription — you pay for ChatGPT and get Codex CLI included. Usage is tracked in rolling 5-hour windows with soft and hard caps; higher tiers get multipliers.
ChatGPT Plus — $20/month. Codex CLI included with standard usage caps in rolling 5-hour windows.
ChatGPT Pro — $200/month. 20× usage multiplier (launched June 3 2025).
ChatGPT Pro Promotional — $100/month, 10× usage (promotional through May 31 2026; standard 5× ongoing).
Business and Enterprise — per-seat or custom pricing. Admin controls, SSO, longer retention.
There is no free tier for Codex CLI.
Even though usage is gated by ChatGPT subscription, the CLI binary itself is open source. Install via:
npm install -g @openai/codex · or brew install --cask codex
Read the source, audit it, fork it, swap binaries. The proprietary parts stay server-side. Unique posture among the major coding CLIs.
Honest tradeoffs. Cloud-sandbox-first is its strength and its limit.
codex-1's RL-on-PRs training fits your use case (matching human PR style)Pricing. ChatGPT Plus at $20/month is roughly R380/month per developer at mid-2026 rates. ChatGPT Pro at $200/month is R3,800/month per seat — only worth it for developers running Codex CLI most of the day, given the 20× multiplier.
Cloud sandbox + data residency. Because Codex CLI runs in OpenAI-managed sandboxes by default, your code temporarily lives in OpenAI's infrastructure during task execution. This is a friction point for POPIA-sensitive work — check OpenAI's current enterprise residency commitments before deploying on customer data. For "code never leaves the building" environments, Codex CLI is the wrong fit; use a local-only tool like Aider with Ollama instead.
Talent. SA engineers in 2026 are familiar with ChatGPT but less familiar with Codex CLI as a separate product. Plan onboarding time. The CLI's TUI is closer to vim/tmux culture than IDE-native tools like Cursor; teams that prefer terminal workflows take to it faster.
OSS posture. The open-source CLI binary is a real advantage for security-conscious clients — banks, government, healthcare — who want to audit the agent-side code. They can't audit the model behind the API, but the CLI is fully inspectable.