OpenAI Codex CLI

OpenAI's open-source (Apache-2.0) terminal coding agent, bundled into ChatGPT plans from Free through Pro — Business seats are now grandfathered-only.

Best forDevelopers who already pay for a ChatGPT plan and want a terminal-native agent with granular, inspectable sandbox/permission controls across CLI, desktop and IDE surfaces.

Visit OpenAI Codex CLI Compare

Our verdict

Codex CLI’s biggest advantage isn’t a feature — it’s bundling: because it draws on the same plan and credit pool as ChatGPT, a developer who already pays for Plus, Pro or Business gets a capable, actively-maintained terminal coding agent with no separate subscription decision to make, and even the Free plan gets limited access to try it.

A genuinely capable, actively-shipped terminal agent whose real edge is distribution, it rides on a ChatGPT subscription you may already have, but watch the credit-based billing and the still-open June 2026 rate-limit regression before committing to heavy daily use.

The Agents Index digest

New agents, fresh verdicts, and who's earning the top spots. One short email.

Screenshot of OpenAI Codex CLI
OpenAI Codex CLI, captured at verification, . Click to enlarge.

What's great

  • The only major CLI coding agent bundled into a plan with a genuine free tier — Free gives "Limited Codex access," so you can try it before paying anything.
  • Apache-2.0 licensed and very actively developed: 100,960 GitHub stars, 15,132 forks and a release (rust-v0.145.0, shipped 2026-07-21) landed days before this listing was re-verified.
  • Ships built-in support for local/self-hosted models (Ollama, LM Studio) and Amazon Bedrock alongside OpenAI’s own models, not just a single vendor.
  • Real, current demand: "openai codex cli" gets an estimated 1,900 US searches/month with a low keyword-difficulty score (12/100) and rising interest, and zero AI-agent directories currently rank for it.

Watch-outs

  • An open, still-unresolved GitHub issue (208 comments, filed 2026-06-18, last activity 2026-07-20) documents Plus-plan users seeing rate-limit credit consumption jump roughly 10-20x since June 16, 2026, draining a 5-hour usage budget in as few as 2-3 prompts.
  • Out of the box it only natively switches between OpenAI, Ollama, LM Studio and Amazon Bedrock — pointing it at OpenRouter, Azure or another third-party provider needs manual config.toml setup, and that endpoint must speak OpenAI’s "responses" wire protocol specifically, a real integration hurdle multi-model rivals like Windsurf don’t have.
  • OpenAI’s own rate-card page puts typical real-world cost at roughly $100-$200 per developer per month for regular use — well above Claude Code’s $17/month entry point, once you move past the Free tier’s limited access.
  • A large, high-traffic open-source repo with a correspondingly large backlog — 10,626 open issues against 100,960 stars — so an individual bug report can sit a while before triage.

Also note: Free-tier access is explicitly "limited", regular use effectively requires at least a $20/month Plus plan or a separate API key. · Rate limits are credit/token-based and have shifted materially (both the April 2026 pricing model change and the June 2026 consumption-rate regression), so the effective cost of a workflow can change under you without any action on your part.

What is OpenAI Codex CLI?

OpenAI Codex CLI is OpenAI's terminal-native coding agent: an open-source (Apache-2.0), locally-run command-line tool that inspects code, edits files, runs commands and automates repeatable engineering work without leaving the shell. It installs as a standalone binary (curl script, npm, Homebrew) with IDE extensions for VS Code, Cursor and Windsurf, plus a desktop app and a cloud-hosted agent at chatgpt.com/codex. It draws on the same GPT-5.6 model family and credit pool as ChatGPT, so it is bundled into Free, Go, Plus and Pro ChatGPT plans rather than sold as its own subscription — though since June 24, 2026, new Business workspaces (or ones that never previously added a Codex seat) can no longer get one, and Enterprise remains a custom, sales-led add-on.

What does OpenAI Codex CLI do?

From the terminal, the desktop app, or an IDE panel, you hand Codex a task and it explores the repo, plans, edits files and runs real commands; /permissions controls exactly when it may act without asking and which directories stay writable. It defaults to GPT-5.6 Sol at medium reasoning effort, switchable per session via /model. Built-in extras include codex resume to reopen a past session, codex --image for visual context, delegated subagents for focused sub-tasks, codex --search for live web lookups, MCP server connections to external tools, a skills/plugin system for packaging team instructions, and a code-review mode (running GPT-5.3-Codex) that flags issues in uncommitted changes before you commit. codex cloud hands a task to OpenAI’s hosted infrastructure to run asynchronously instead of on your own machine. Since April 2, 2026, usage is metered as credits mapped directly to input, cached-input and output tokens rather than flat per-message estimates, drawn from the same pool as ChatGPT Work and Workspace Agents where those are enabled on your plan.

Key features

  • Configurable sandbox + permissions: /permissions sets exactly when Codex may edit files or run commands without asking, and which directories stay writable, inspectable before every run.
  • Subagents, skills and MCP: Delegate focused sub-tasks to subagents, package team instructions as reusable skills/plugins, and connect external tools over MCP.
  • Built-in code review: A dedicated review mode (running GPT-5.3-Codex) scores uncommitted changes and surfaces prioritized findings before you commit.
  • Local, desktop and cloud surfaces: The same agent runs in the terminal, as a native desktop app, inside VS Code/Cursor/Windsurf, or asynchronously in the cloud via codex cloud.
  • Token-metered credits: Since April 2026, usage bills as credits mapped to input/cached-input/output tokens per task, replacing the older flat per-message estimate.

What are OpenAI Codex CLI's use cases?

  • Terminal-driven feature work: A developer already paying for ChatGPT Plus hands Codex a scoped feature ticket from the shell and reviews the diff before committing.
  • Pre-commit code review: Before opening a PR, a developer runs Codex’s review mode against their uncommitted changes to catch issues a human reviewer would flag.
  • Async cloud delegation: A developer kicks off a longer task via codex cloud and comes back to a finished diff instead of babysitting a local terminal session.

What does OpenAI Codex CLI integrate with?

  • VS Code, Cursor and Windsurf IDE extensions
  • MCP servers (external tool connections)
  • Ollama, LM Studio and Amazon Bedrock (built-in local/alternate providers)
  • OpenAI API key auth (bypasses ChatGPT billing entirely)
  • GitHub (via `codex cloud` PR workflows)

Why use OpenAI Codex CLI?

  • No separate subscription, Codex access is bundled into the ChatGPT plan you may already pay for, from a limited Free tier up through Enterprise.
  • The CLI itself is genuinely open-source (Apache-2.0, 99.6k GitHub stars) even though the models it calls are OpenAI’s proprietary GPT-5.x family.
  • Granular, inspectable sandbox and permission controls, not just an all-or-nothing autonomy toggle.
  • One agent across four surfaces, terminal, desktop app, IDE extension, and an async cloud runner, without switching tools.

Pros & cons

Pros

  • The only major CLI coding agent bundled into a plan with a genuine free tier — Free gives "Limited Codex access," so you can try it before paying anything.
  • Apache-2.0 licensed and very actively developed: 100,960 GitHub stars, 15,132 forks and a release (rust-v0.145.0, shipped 2026-07-21) landed days before this listing was re-verified.
  • Ships built-in support for local/self-hosted models (Ollama, LM Studio) and Amazon Bedrock alongside OpenAI’s own models, not just a single vendor.
  • Real, current demand: "openai codex cli" gets an estimated 1,900 US searches/month with a low keyword-difficulty score (12/100) and rising interest, and zero AI-agent directories currently rank for it.

Cons

  • An open, still-unresolved GitHub issue (208 comments, filed 2026-06-18, last activity 2026-07-20) documents Plus-plan users seeing rate-limit credit consumption jump roughly 10-20x since June 16, 2026, draining a 5-hour usage budget in as few as 2-3 prompts.
  • Out of the box it only natively switches between OpenAI, Ollama, LM Studio and Amazon Bedrock — pointing it at OpenRouter, Azure or another third-party provider needs manual config.toml setup, and that endpoint must speak OpenAI’s "responses" wire protocol specifically, a real integration hurdle multi-model rivals like Windsurf don’t have.
  • OpenAI’s own rate-card page puts typical real-world cost at roughly $100-$200 per developer per month for regular use — well above Claude Code’s $17/month entry point, once you move past the Free tier’s limited access.
  • A large, high-traffic open-source repo with a correspondingly large backlog — 10,626 open issues against 100,960 stars — so an individual bug report can sit a while before triage.

Limitations

  • Free-tier access is explicitly "limited", regular use effectively requires at least a $20/month Plus plan or a separate API key.
  • Rate limits are credit/token-based and have shifted materially (both the April 2026 pricing model change and the June 2026 consumption-rate regression), so the effective cost of a workflow can change under you without any action on your part.

OpenAI Codex CLI pricing

  • FreeFree
  • Go$8 / /month
  • Plus$20 / /month
  • Pro$100 / /month (5x Plus usage) or $200/month (20x Plus usage)
  • Business$20-$25 / /month per seat ($20 billed annually, $25 billed monthly; 2-seat minimum)
  • API keyUsage-based

See current pricing on developers.openai.com ↗Compare OpenAI Codex CLI alternatives →

OpenAI Codex CLI specs

Pricing

Pricing model
freemium
Free tier
✓ Yes

Capabilities

Model / LLM
OpenAI GPT-5.6 family (plus built-in Ollama, LM Studio, Amazon Bedrock)
Interface
CLI
Public API
✓ Yes
Open source
✓ Yes

Deployment

Deployment
Local + Cloud

OpenAI Codex CLI review

Codex CLI’s biggest advantage isn’t a feature — it’s bundling: because it draws on the same plan and credit pool as ChatGPT, a developer who already pays for Plus, Pro or Business gets a capable, actively-maintained terminal coding agent with no separate subscription decision to make, and even the Free plan gets limited access to try it. The tool itself is well-built and open-source, with granular permission controls, subagents, MCP support and a genuinely useful built-in code-review mode running across terminal, desktop and IDE surfaces. The honest catches are real: switching to a non-OpenAI model takes manual config beyond the built-in Ollama/LM Studio/Bedrock options, OpenAI’s own numbers put typical cost at $100-$200/developer per month for regular use, and a large, currently-open GitHub issue documents a real rate-limit consumption regression from June 2026 that was still unresolved as of this listing’s last check. Pick Codex CLI if you already live in the ChatGPT ecosystem and want a terminal agent without a new bill; pick Claude Code instead if you want a lower, more predictable entry price, or Windsurf/Juggler if free multi-model switching matters more to you than OpenAI’s specific model lineup.

A genuinely capable, actively-shipped terminal agent whose real edge is distribution, it rides on a ChatGPT subscription you may already have, but watch the credit-based billing and the still-open June 2026 rate-limit regression before committing to heavy daily use.

Frequently asked questions

Is OpenAI Codex CLI free?
The CLI itself is free and open-source (Apache-2.0). Using it against OpenAI’s models draws on your ChatGPT plan's Codex allowance — the Free plan gives "Limited Codex access," Plus ($20/month) gives expanded usage, and Pro ($100 or $200/month) gives the most. You can also skip ChatGPT entirely and pay per token with your own OpenAI API key.
How much does Codex CLI really cost to use regularly?
OpenAI’s own rate-card documentation states typical real-world usage runs about $100-$200 per developer per month, on top of whichever ChatGPT plan you're on — usage is metered as credits mapped to input/cached-input/output tokens, so cost varies with task size and how much you use "fast mode."
Can Codex CLI use models other than OpenAI’s?
Yes, but only three alternates ship built in — Ollama, LM Studio (both local) and Amazon Bedrock. Any other provider (OpenRouter, Azure, DeepSeek, etc.) requires manually adding a [model_providers.<id>] block to config.toml, and that endpoint must support OpenAI’s "responses" wire protocol.
Is there a known issue with Codex CLI rate limits?
Yes — a GitHub issue opened June 18, 2026 (208 comments, still open as of late July 2026) documents ChatGPT Plus users seeing the rate-limit cost per token jump roughly 10-20x since June 16, 2026, exhausting a normal 5-hour usage budget in as few as 2-3 prompts.
What is the difference between Codex CLI and Codex the cloud app?
They share the same underlying agent and credit pool. Codex CLI is the local/terminal/IDE surface; codex cloud (also reachable at chatgpt.com/codex) hands a task to OpenAI’s hosted infrastructure to run asynchronously instead of on your own machine.

Get a quote from OpenAI Codex CLI

Tell us what you need. We make the introduction to OpenAI Codex CLI.

OpenAI Codex CLI

from Free

Visit ↗