reviews13 min read5d ago

OpenAI Codex CLI Review 2026: Features, Pricing & Verdict

Hands-on Codex CLI review after a month of daily use. codex-1 model, ChatGPT Plus pricing, cloud sandbox, MCP support, and how it stacks up against Claude Code, Cursor, Copilot and Windsurf.

OpenAI Codex CLI Review 2026: Features, Pricing & Verdict
codex cliopenai codexcodex cli reviewcodex-1ai coding agentcodex vs claude codeopenai coding toolterminal ai2026

TL;DR ā˜…ā˜…ā˜…ā˜…ā˜† 4.3 / 5

Codex CLI is the terminal coding agent I have actually been opening every morning since OpenAI shipped the codex-1 update in February 2026. It runs in a cloud microVM, costs nothing extra on top of my ChatGPT Plus subscription, and burns roughly a quarter of the tokens Claude Code does on the same prompts. It is not a Claude Code killer, but it is the first agent that made me move my "make me a PR" workflow off Claude entirely. Front-end work still goes to Claude. Everything else now goes to Codex.

Try Codex CLI →

OpenAI Codex CLI Review 2026: Features, Pricing & Verdict

I have been using OpenAI's Codex CLI as my daily driver for almost four weeks now. Long enough to ship two production features with it, blow up one staging branch, and form an opinion that does not consist of the phrase "it depends."

This is the review I wish I had when I first heard about Codex CLI. No paid placements, no breathless launch hype, no recycled press release bullet points. Just what it does, what it costs, where it beats Claude Code, where it loses, and whether I think you should install it tonight.

Short answer: yes. Slightly longer answer below.

OpenAI Codex CLI Review 2026 hero
Codex CLI is OpenAI's open-source terminal coding agent powered by the codex-1 model.

What is Codex CLI?

Codex CLI is OpenAI's lightweight terminal coding agent. You install it with one npm command, sign in with your ChatGPT account, and run codex inside any folder. From there you describe what you want in plain English and the agent reads your code, edits files, runs shell commands, runs your tests, iterates if they fail, and finally hands you a diff to approve.

It is open source, lives at github.com/openai/codex under the Apache 2.0 license, and as of April 2026 it has crossed 41,000 GitHub stars. The repo is the actual production code, not a thin wrapper, and you can read every prompt the agent sends if you want to.

The brain inside is a model called codex-1. OpenAI describes it as a version of o3 trained with reinforcement learning on real-world software engineering tasks. In practice that means it generates code that mirrors human style and pull-request preferences, follows instructions carefully, and is willing to keep iterating until tests pass instead of stopping at the first plausible answer.

There is a cloud-hosted "Codex Web" version too, but this review is about the terminal CLI specifically — that is the part that competes head-to-head with Claude Code, Cursor's agent mode, and Aider.

OpenAI Codex CLI GitHub homepage screenshot
The official Codex CLI repo on GitHub. Apache 2.0, 41k+ stars, written mostly in Rust.

Six features that actually matter

Every coding agent ships a feature checklist a mile long. Here are the six things I noticed Codex CLI does differently after using it daily.

Codex CLI six key features infographic
The six Codex CLI features that actually changed my workflow.

1. Cloud microVM sandbox

Long-running tasks execute inside an isolated containerized microVM with no network egress by default. I can hand it a 45-minute migration job and walk away without worrying it will rm -rf my home folder.

2. Auto-PR creation

Give it a GitHub repo URL plus a prompt and it clones, branches, applies the change, runs the tests, and opens a pull request with a written summary. I have not opened the GitHub web UI manually in two weeks.

3. The codex-1 model

A reinforcement-learning fine-tune of o3 trained specifically to follow PR conventions, run tests, read failures, and try again. It is noticeably less chatty than GPT-5 and noticeably more stubborn about finishing the job.

4. ChatGPT subscription bundle

Codex CLI is included free with ChatGPT Plus, Business, Pro, Edu, and Enterprise. If you already pay $20/month for ChatGPT, Codex literally costs you zero extra dollars.

5. Parallel multi-tasks

Spin up multiple Codex sessions on different branches at the same time. While one session refactors the API layer I can have a second one writing migration tests for it.

6. Read-only and approval modes

Three approval modes — suggest, auto-edit, and full-auto. I leave it on auto-edit for daily work and only flip to full-auto for scripted overnight runs in the sandbox. Sensible defaults that actually respect your filesystem.

The combination of the sandbox plus codex-1 plus the auto-PR loop is what differentiates Codex CLI from Claude Code in practice. Claude Code is happier as a pair-programmer that you watch type. Codex CLI is happier as a contractor you give a ticket to and check on later.

Codex CLI by the numbers 2026
Codex CLI by the numbers, April 2026.

How to install and use Codex CLI

This is the part where most reviews get unnecessarily long. The actual install is two commands.

# 1. Install (Node 22 or newer required)
npm install -g @openai/codex

# 2. Sign in with your ChatGPT account
codex login

# 3. cd into a project and start a session
cd ~/code/my-app
codex

Mac users can swap step one for brew install --cask codex if you prefer Homebrew. Windows works through WSL or, as of the March 2026 update, natively through PowerShell with the same npm command.

Once you are inside an interactive session, the prompts that get the best results in my experience look like this:

> Read src/api/checkout.ts and add Stripe idempotency keys to every
  POST. Run the existing tests in tests/checkout.test.ts and
  fix anything that breaks. Open a PR titled "feat: idempotent checkout".

Three things that command does well: it tells the agent which file to read first, it gives it a verification step (the existing tests), and it ends with the PR title so the agent does not have to guess. Codex follows that structure cleanly. I have wasted hours trying to get other agents to do the same thing in three iterations.

In-session slash commands worth knowing on day one:

  • /model — switch between codex-1, GPT-5, GPT-5-Codex, and codex-mini.
  • /status — see how much of your daily quota you have left.
  • /sandbox — toggle the cloud microVM on or off.
  • /approval suggest|auto-edit|full-auto — change how aggressive the agent is.
  • /mcp — list and configure attached MCP servers.

Codex CLI workflow diagram
Task → Sandbox → Execute → Review → Merge. The Codex CLI loop in five steps.

Pricing: what you really pay

Codex CLI's pricing story is simple in a way most AI coding tools refuse to be. There is no separate Codex bill. You pay for ChatGPT, you get Codex.

Codex CLI pricing 2026
All three Codex CLI access tiers in one chart.

ChatGPT Plus

$20/mo

Best for solo devs

  • Codex CLI included
  • codex-1 + GPT-5 access
  • ~10 long tasks/day in sandbox
  • 2 parallel sessions
MOST POPULAR

ChatGPT Business

$25/user/mo

Best for small teams

  • Everything in Plus
  • Shared workspace + admin
  • ~50 long tasks/day per user
  • 5 parallel sessions

ChatGPT Pro

$200/mo

Best for power users

  • Everything in Business
  • Effectively unlimited tasks
  • 10 parallel sessions
  • Priority compute

There is also an API path through codex-mini-latest at $1.50 per million input tokens and $6 per million output tokens, with a 75% prompt-caching discount on cached reads. That is the route to take if you want to embed Codex in your own scripts or CI pipeline rather than driving it from the terminal.

The honest pricing comparison: on Plus I can run Codex hard for an entire workday and rarely hit a limit. On Claude's $20/month Pro tier I burn through my limit on a handful of complex prompts before lunch. That four-times-fewer-tokens efficiency claim from OpenAI lines up with my own usage logs.

ChatGPT pricing page screenshot
The ChatGPT plan grid where Codex CLI access is bundled in.

Pros and cons after a month

āœ“ Pros

  • Bundled free with ChatGPT Plus
  • Roughly 4x more token-efficient than Claude Code
  • Cloud microVM sandbox makes long jobs safe
  • Fully open source (Apache 2.0) — auditable
  • codex-1 actually finishes tasks instead of stopping early
  • Native MCP support out of the box
  • Auto-PR workflow is genuinely production-grade
  • Leads Terminal-Bench 2.0 at 77.3%

āœ— Cons

  • Front-end and UI work still trails Claude Code
  • Daily quota on Plus is tight if you abuse parallel sessions
  • Sandbox network access is opt-in and a little fiddly
  • Smaller community/skills ecosystem than Claude Code
  • Native Windows support is newer and less battle-tested
  • SWE-bench Verified score (74.5%) trails Claude (80.9%)
  • GPT-5 fallback can be chatty when codex-1 hits quota

The cons list is honest, not theatrical. None of them stopped me from making Codex CLI my default. They did stop me from uninstalling Claude Code.

Alternatives: Codex CLI vs Claude Code, Cursor, Copilot, Windsurf

If you are reading this you are almost certainly comparing Codex CLI against one of these four. Here is the honest grid.

Codex CLI vs Claude Code 8-feature comparison
Codex CLI vs Claude Code, eight features compared.

Tool Entry price Best at Weakness
Codex CLI $20/mo (bundled) Long autonomous PRs, sandboxing Front-end polish
Claude Code $20/mo (Pro) Code quality, UI work, MCP ecosystem Token cost, no cloud sandbox
Cursor $20/mo (Pro) IDE experience, multi-file Composer Not terminal-native
GitHub Copilot $10/mo Inline autocomplete, IDE integration Weakest agent mode of the bunch
Windsurf $15/mo Cascade agent context persistence Smaller ecosystem, no cloud sandbox

If you want a deeper teardown of just the Codex vs Claude question, I also wrote a longer head-to-head over at Codex CLI vs Claude Code 2026, including benchmark numbers and side-by-side prompt outputs.

A separate datapoint worth knowing: a 500+ developer Reddit survey published in early 2026 found that 65.3% of respondents said they had switched their primary daily-driver agent to Codex CLI, with weighted upvotes favoring it at 79.9%. That is the kind of community shift that does not happen unless something is meaningfully different.

Frequently asked questions

What is Codex CLI?

Codex CLI is OpenAI's open-source terminal coding agent. It runs in your terminal, can read and edit files, run shell commands, and execute long-running tasks inside a cloud microVM sandbox. It is powered by codex-1, a version of o3 fine-tuned for software engineering.

Is Codex CLI free?

Yes, in the sense that there is no separate Codex bill. Codex CLI is included with any ChatGPT Plus ($20/mo), Business ($25/user/mo), Pro ($200/mo), Edu, or Enterprise subscription. The CLI itself is open source under Apache 2.0. Pure pay-as-you-go API access via codex-mini-latest is also available at $1.50 per million input tokens.

How do I install Codex CLI?

Run npm install -g @openai/codex on macOS, Linux, or Windows (Node 22+ required). Mac users can also use brew install --cask codex. After install, run codex login to sign in with your ChatGPT account, then codex inside any project folder to start a session.

Codex CLI vs Claude Code: which is better?

It depends on what you optimize for. Codex CLI wins on pricing efficiency (4x fewer tokens), open-source flexibility, terminal-native tasks (77.3% Terminal-Bench 2.0), and the cloud sandbox. Claude Code wins on raw code quality (80.9% SWE-bench Verified), front-end UI generation, and the larger MCP ecosystem. A 500+ Reddit developer survey in early 2026 showed 65% preferred Codex CLI overall.

What model does Codex CLI use?

Codex CLI defaults to codex-1, a version of OpenAI o3 trained with reinforcement learning on real-world coding tasks. Inside the CLI you can also switch to GPT-5, GPT-5-Codex, codex-mini, and other available models with the /model command, and adjust reasoning depth on the fly.

Does Codex CLI support MCP servers?

Yes. Codex CLI supports the Model Context Protocol natively, so any MCP server you have configured for Claude Code or Cursor will generally drop in. You can browse over 29,000 MCP servers in the Skiln MCP directory and connect them via the codex.toml config file.

Is Codex CLI safe to run autonomously?

Yes, with caveats. Codex CLI ships three approval modes — suggest (asks before every action), auto-edit (writes files but asks before shell commands), and full-auto (runs everything inside the sandbox). The cloud sandbox is a containerized microVM with no network access by default, which is significantly safer than running an agent loop on your bare-metal machine.

Final verdict: 4.3 / 5

Codex CLI is the first OpenAI coding tool in years that I have not had to apologize for recommending. The codex-1 model is genuinely tuned for finishing tasks instead of producing plausible-looking starter code. The cloud sandbox is the right default for autonomous runs. The pricing structure — bundled free with the ChatGPT Plus I was already paying for — eliminates the awkward second subscription decision.

It is not perfect. Claude Code still wins for front-end work and complex architectural reasoning, and the Claude MCP and skills ecosystems are bigger today. But for the 70% of my week that consists of "read this code, change this thing, run the tests, open a PR," Codex CLI is now the tool I open first.

If you are paying for ChatGPT Plus and you have not run npm install -g @openai/codex yet, you are leaving free productivity on the table. That is the whole review.

Skiln Premium v2 — The 29K+ AI tool directory

Codex CLI is one of more than 29,000 AI coding tools, MCP servers, skills, and agents indexed in the Skiln directory. Filter by stack, install command, license, and benchmark score. Premium v2 unlocks the full database, weekly tool radar emails, and the live MCP install assistant.

Browse MCP Servers →

Codex CLI README on GitHub
The Codex CLI README on GitHub — the canonical source for new releases.

codex-1 model documentation
The codex-1 model documentation page on platform.openai.com.

OpenAI Codex product page
The official Codex product page at openai.com/codex.

Stay in the Loop

Join 1,000+ developers. Get the best new Skills & MCPs weekly.

No spam. Unsubscribe anytime.

OpenAI Codex CLI Review 2026: Features, Pricing & Verdict | Skiln