Claude CodeClaude CodevsCodexCodex
Head-to-head comparison

Claude Code vs Codex

Both cost $20/mo. The difference is what they do.

· yesterday

Claude Code vs Codex pricing

Claude Code
Claude Code
Coding agents
$20/mo
Bundled with Claude Pro $20/mo · Max $100-200/mo · API metered

Anthropic's terminal coding agent

Codex
Codex
Coding agents
$20/mo
Free · $20/mo ChatGPT Plus · $100/mo Pro 5x · $200/mo Pro 20x · $25/user/mo Business · API metered

OpenAI's coding agent: CLI + autonomous cloud PRs

Codex
Weighing Codex against an IDE instead of another terminal agent?
Codex vs Cursor

Quick answer

They are closer than ever: both run in the terminal, an IDE extension, a desktop app and the cloud, and both ship subagents, MCP, hooks and skills. Pick by the plan you already pay for and the models you trust. Codex comes with every ChatGPT plan, including Free, and defaults to GPT-5.6 Sol. Claude Code needs Claude Pro or higher and defaults to Sonnet 5 on Pro and Opus 5 on Max.

When to pick which

Claude Code

Pick Claude Code when

  • You already pay for Claude Pro, Max or a Team seat, where Claude Code is included and shares your Claude usage limits.
  • You want Anthropic's models on the work: Sonnet 5 by default on Pro, Opus 5 on Max, with Fable 5.1 selectable for the biggest tasks.
  • Your setup leans on CLAUDE.md, hooks, skills, plugins and MCP servers shared across a team.
  • You want review and triage in CI through GitHub Actions or GitLab CI/CD, or managed pull request review on Team and Enterprise.
Codex

Pick Codex when

  • You already pay for ChatGPT: Codex is included on every plan, from Free through Plus, Pro, Business, Edu and Enterprise.
  • You want OpenAI's models: GPT-5.6 Sol by default, GPT-6 Astra for the most complex work, and Luna when you want far more messages per window.
  • You want to hand tasks to isolated cloud environments started from the web, GitHub, GitLab, Linear or Slack.
  • You want to point the agent at another model or provider through the Chat Completions or Responses APIs.

Hard differences

AttributeClaude CodeCodex
VendorAnthropicOpenAI
Cheapest plan that includes itClaude Pro, $20/mo or $17/mo billed annually; not on FreeChatGPT Free, then $20/mo ChatGPT Plus
Top individual planMax 20x, $200/moPro 20x, $200/mo
Team seatsTeam Standard $25/mo, Premium $125/mo ($20 and $100 billed annually)Business $25/user/mo, $20 billed annually
Default modelSonnet 5 on Pro and Team Standard; Opus 5 on Max, Team Premium, Enterprise and the APIGPT-5.6 Sol at medium reasoning (the default Power setting)
Other modelsFable 5.1 and Haiku, plus Opus and Sonnet by aliasGPT-6 Astra, GPT-5.6 Terra and Luna; GPT-5.3-Codex-Spark on Pro
SubagentsYes: custom subagents in their own context, run in the background by defaultYes: on by default, custom agents in TOML files, and an Ultra mode that splits work across them
Extend it withMCP, hooks, skills, plugins, CLAUDE.mdMCP, hooks, skills, plugins, AGENTS.md
Where it runsTerminal, VS Code and JetBrains, desktop app, web, the Claude mobile app, Slack, GitHub Actions and GitLab CI/CDCLI, IDE extension, ChatGPT desktop app, web and cloud, iOS, Slack, Linear and a GitHub Action
Usage limitsShared with Claude chat; a session limit that resets every 5 hours plus a weekly limitMessages per 5-hour window that vary by model; local and cloud work share the allowance, and weekly limits may apply

Where each ships

Claude Code vs Codex FAQ

Should you pick Claude Code or Codex?

They are closer than ever: both run in the terminal, an IDE extension, a desktop app and the cloud, and both ship subagents, MCP, hooks and skills. Pick by the plan you already pay for and the models you trust. Codex comes with every ChatGPT plan, including Free, and defaults to GPT-5.6 Sol. Claude Code needs Claude Pro or higher and defaults to Sonnet 5 on Pro and Opus 5 on Max.

Which is cheaper, Claude Code or Codex?

Codex has the lower floor. It is included in ChatGPT Free, paid ChatGPT plans start at $20/mo Plus, and OpenAI currently includes it in the $8/mo ChatGPT Go plan for a limited time. Claude Code is not on Claude's Free plan and starts with Claude Pro at $20/mo, or $17/mo billed annually. At the top both individual plans reach $200/mo, Max 20x for Claude and Pro 20x for ChatGPT. For teams, Claude Team Standard and ChatGPT Business both cost $25 per seat billed monthly, or $20 billed annually.

Which models do Claude Code and Codex use?

Claude Code defaults to Sonnet 5 on Pro and Team Standard seats and to Opus 5 on Max, Team Premium, Enterprise and the Anthropic API, with Fable 5.1 available but never the default. Codex's default Power setting runs GPT-5.6 Sol at medium reasoning, and you can pick GPT-6 Astra, GPT-5.6 Terra or GPT-5.6 Luna, plus GPT-5.3-Codex-Spark as a research preview on Pro.

Does Codex support subagents like Claude Code?

Yes. Current Codex releases enable subagent workflows by default, you can define custom agents as TOML files, and Ultra mode splits a complex task across subagents in parallel. OpenAI notes that subagent workflows use more tokens than single-agent runs. Claude Code runs custom subagents in their own context windows with their own tools and permissions, in the background by default.

How do Claude Code and Codex usage limits work?

Claude Code shares its limits with Claude chat: Pro and Max have a session limit that resets every five hours plus a weekly limit, and usage credits let you keep going past it. Codex counts messages per five-hour window, and the number depends on the model: OpenAI estimates 10 to 100 GPT-5.6 Sol local messages per window on Plus and 200 to 2,000 on Pro 20x. Local and cloud work share the same allowance, weekly limits may also apply, and Plus and Pro users can buy extra credits.

What is Claude Code best for?

Anthropic's terminal coding agent. It sits in the coding agents category, and ships in 4 tested stacks here.

What is Codex best for?

OpenAI's coding agent: CLI + autonomous cloud PRs. It sits in the coding agents category, and ships in 1 tested stack here.

Can I use Claude Code and Codex together?

They are alternatives at the same step, so most stacks pick one or the other. No aistack.sh stack uses both today, though nothing prevents a custom workflow.

What are the alternatives to Claude Code and Codex?

Beyond each other, Claude Code's closest alternatives are Cursor. Codex's closest alternatives are Cursor, GitHub Copilot, Windsurf.

Also compared

Spotted something off?
Wrong price, dead link, stale tool — anything. We review every fix.
Suggest a fix to this tool