Claude Code vs OpenAI Codex
Claude Code vs OpenAI Codex (Coding Agents (CLI & Cloud)). Agent test scores: Claude Code 9.3/10 (indicative), OpenAI Codex 9.7/10. OpenAI Codex scored 0.4 higher overall in our separate rubric v0.1 tests (editions and tasks can differ — see Edition tested and the notes below). Pricing: Claude Code — Included in Claude Pro $20/mo ($17/mo annual, $200 upfront); Max from $100/mo (5x or 20x); or API pay-as-you-go; OpenAI Codex — Included in every ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise, Edu); usage limits vary by plan. Codex Cloud needs Plus, Pro, Business, Enterprise or Edu. Plus/Pro buyers can add credits. Plan prices on chatgpt.com/pricing.
Every fact on this page comes from our tool records and test logs. Last updated:
- VibeToolRank score
- 9.3/10
- Cost per run
- $0.012 / run
- Last tested
- 2026-11-01
- Runs
- 3 runs
- Outcome score
- 10/10
- Edition tested
- Claude Code CLI 2.1.314 with Anthropic Claude Sonnet 5.5 (claude-sonnet-5-5) via API key; OpenRouter free edition also tested the same day (also 9.3 — see FAQ)
- Free plan, as measured
- Not applicable for the Sonnet API edition (~$0.01/run). OpenRouter free edition used free-model quota at $0 the same day.
- Free plan
- No (not included in Claude Free)
- Price
- Included in Claude Pro $20/mo ($17/mo annual, $200 upfront); Max from $100/mo (5x or 20x); or API pay-as-you-go
- Pricing checked
- 2026-10-16
- VibeToolRank score
- 9.7/10
- Cost per run
- $0.0036 / run
- Last tested
- 2026-11-16
- Runs
- 3 runs
- Outcome score
- 10/10
- Edition tested
- Codex CLI 0.166.0, ChatGPT login, model gpt-6-luna, codex exec --json. Headline is T3+T4+T5 (rubric v0.3). IDE and Cloud were not tested.
- Free plan, as measured
- Token-priced mean $0.003552 per run across nine official T3+T4+T5 runs on an existing ChatGPT login (official gpt-6-luna Standard rates); no separate API bill was recorded
- Free plan
- Yes: Codex CLI, IDE extension and app on ChatGPT Free and Go with plan usage limits (no Codex Cloud)
- Price
- Included in every ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise, Edu); usage limits vary by plan. Codex Cloud needs Plus, Pro, Business, Enterprise or Edu. Plus/Pro buyers can add credits. Plan prices on chatgpt.com/pricing
- Pricing checked
- 2026-11-02
Side by side
| Field | Claude Code | OpenAI Codex |
|---|---|---|
| What it is | Claude CodeAnthropic's agentic coding tool for the terminal, IDE, desktop, and browser. | OpenAI CodexOpenAI's coding agent for CLI, IDE and cloud. |
| Pricing | Claude CodeIncluded in Claude Pro $20/mo ($17/mo annual, $200 upfront); Max from $100/mo (5x or 20x); or API pay-as-you-go | OpenAI CodexIncluded in every ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise, Edu); usage limits vary by plan. Codex Cloud needs Plus, Pro, Business, Enterprise or Edu. Plus/Pro buyers can add credits. Plan prices on chatgpt.com/pricing |
| Free tier | Claude CodeNo (not included in Claude Free) | OpenAI CodexYes: Codex CLI, IDE extension and app on ChatGPT Free and Go with plan usage limits (no Codex Cloud) |
| Pricing verified | Claude Code2026-10-16 | OpenAI Codex2026-11-02 |
| Edition tested | Claude CodeClaude Code CLI 2.1.314 with Anthropic Claude Sonnet 5.5 (claude-sonnet-5-5) via API key; OpenRouter free edition also tested the same day (also 9.3 — see FAQ) | OpenAI CodexCodex CLI 0.166.0, ChatGPT login, model gpt-6-luna, codex exec --json. Headline is T3+T4+T5 (rubric v0.3). IDE and Cloud were not tested. |
| Tested on | Claude Code2026-11-01 | OpenAI Codex2026-11-16 |
| Outcome score | Claude Code10 | OpenAI Codex10 |
| Speed score | Claude Code10 | OpenAI Codex9.9 |
| Cost score | Claude Code7 | OpenAI Codex10 |
| Developer experience score | Claude Code8 | OpenAI Codex8 |
| Reliability score | Claude Code10 | OpenAI Codex10 |
| Overall score | Claude Code9.3 | OpenAI Codex9.7 |
| Cost per run | Claude Code$0.012 / run | OpenAI Codex$0.0036 / run |
What our tests found
Claude Code
Anthropic Sonnet 5.5 edition (headline): Claude Code CLI fixed our seeded cart bug in 3 of 3 runs (5.7–7.1s, 5 turns each). Test file untouched. Real API spend ~$0.035 for smoke + 3 runs at Sonnet 5.5 list prices ($2/$10 per MTok). Overall 9.3 (outcome 10, speed 10, cost 7, DX 8, reliability 10). Alongside: OpenRouter free-model edition the same day also scored 9.3 at $0 (cohere/north-mini-code:free; slower, free-tier cost 10) — docs/tests/claude-code/RESULTS.md. Opus not run.Indicative scoreAnthropic Sonnet 5.5 API
- Fixed the seeded bug in 3/3 runs with Anthropic Sonnet 5.5 in about 6 seconds
- Real API cost about $0.01 per T3 run at Sonnet 5.5 list prices
- Did not modify the test file in any run
- OpenRouter free edition also available at $0 for CLI-loop testing (also 9.3)
- No Claude Free plan access — Anthropic models need Pro, Max, or API credits
- Cost score 7 reflects pay-as-you-go API, not a free tier
- Needs --dangerously-skip-permissions for unattended sandbox runs
- Opus edition not tested (Sonnet already maxed Outcome on this T3)
Who it’s for: Developers who want Anthropic's terminal agent on Sonnet/Opus (Pro, Max, or API). Headline score is Anthropic Sonnet 5.5 via API. A separate OpenRouter free edition (also 9.3) tests the CLI with a small free model only.
OpenAI Codex
Headline 9.7 is the mean of T3 9.7, T4 9.7, and T5 9.6 (rubric v0.3). T3, T4, and T5 were 4/4, 12/12, and 20/20 on all three runs. Headline cost per run is $0.003552, the mean of all nine official runs, token-priced at official gpt-6-luna Standard short-context rates. The previous v0.3 headline of 9.4 (T5 20/20/19, cost Not measured) and the v0.2 headline of 9.7 stay in labelled history.Codex CLI, ChatGPT gpt-6-luna
- Fixed the seeded T3 bug in 3 of 3 runs (11–15s) and scored 12/12 held-out T4 and 20/20 held-out T5 tests on every run with OpenAI gpt-6-luna via a ChatGPT login
- Official unattended `codex exec --json` in workspace-write mode, with split input, cached, and output token counts on every official run
- Token-priced mean $0.003552 per run across the nine official T3+T4+T5 runs at official gpt-6-luna Standard rates
- A ChatGPT login is required for OpenAI’s models; plan usage limits still apply (we did not measure remaining quota)
- Codex IDE and Codex Cloud were not tested in this sitting
- CODEX_HOME under /tmp is refused by the official CLI (helper binaries); an outer pid namespace also hangs Codex’s own workspace-write sandbox — the official isolation used an amp-matching bwrap and a home under /home/box
Who it’s for: Developers in the OpenAI ecosystem who want a terminal agent and already have a ChatGPT plan that includes Codex CLI.
Verdict
Scores use rubric v0.1 from separate runs. Editions and tasks can differ (see Edition tested and What our tests found); some tests were a single run, which caps reliability scores. Overall: Claude Code 9.3, OpenAI Codex 9.7. Check the free-tier limits above against your project before choosing.
FAQ
Which is better, Claude Code or OpenAI Codex?
In our tests OpenAI Codex scored higher overall (9.7/10 vs 9.3/10). Scores use the same rubric (v0.1) but came from separate runs; editions and tasks may differ (see Edition tested and test summaries), so check the per-dimension scores for what matters to you.
Is Claude Code free?
No (not included in Claude Free) (pricing checked 2026-10-16).
Is OpenAI Codex free?
Yes: Codex CLI, IDE extension and app on ChatGPT Free and Go with plan usage limits (no Codex Cloud) (pricing checked 2026-11-02).
How much does Claude Code cost compared with OpenAI Codex?
Claude Code: Included in Claude Pro $20/mo ($17/mo annual, $200 upfront); Max from $100/mo (5x or 20x); or API pay-as-you-go. OpenAI Codex: Included in every ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise, Edu); usage limits vary by plan. Codex Cloud needs Plus, Pro, Business, Enterprise or Edu. Plus/Pro buyers can add credits. Plan prices on chatgpt.com/pricing.
Best Coding Agents (CLI & Cloud) · Best free Coding Agents (CLI & Cloud) · All comparisons · Methodology
Related
Related comparisons and pricing
- Claude Code alternatives
- OpenAI Codex alternatives
- Claude Code free-tier test
- OpenAI Codex free-tier test
- Cline vs OpenAI Codex
- Aider vs OpenAI Codex
- OpenCode vs OpenAI Codex
- GitHub Copilot CLI vs OpenAI Codex
- OpenAI Codex vs Gemini CLI
- Jules vs OpenAI Codex
- OpenHands vs Claude Code
- Amp vs Claude Code
Other Coding Agents (CLI & Cloud) tools
- psi — 9.7/10
- Aider — 9.5/10
- Mirror (Reflection) — 9.4/10
- Gemini CLI — 9.3/10
- GitHub Copilot CLI — 9.2/10
- OpenCode — 9.2/10
- Memdoor — 9.1/10
- Zerg Client — 9.1/10
- Amp — 9/10
- OpenHands — 8.9/10
- Qwen Code — 8.8/10
- Goose — 8.7/10
- turri — 8.7/10
- Agent Manager — 8.6/10
- Reason — 8.6/10
- Alysis Code — 8.4/10
- Crush — 8.4/10
- Harness (Autonomous) — 8.4/10
- Parallax (Conifer) — 8.4/10
- Pi — 8.2/10
- Jules — 8/10
- Cline — 7.9/10
- Kilo Code — 7.7/10
- Wonder — 6.4/10
Best Coding Agents (CLI & Cloud) · Best free Coding Agents (CLI & Cloud)
Scores come from our own tests and are never for sale; sponsored placements are always labelled. Some links are affiliate links (currently Railway). Disclosure
