Blog

Insights

Codex vs Claude Code 2026: Pricing, Usage Limits

Codex vs Claude Code after GPT-6.2: Plus vs Pro usage limits, $100 and $200 plans, free options, cost per task and benchmarks. See which agent to pick.

Writer

Nafis Amiri

Co-Founder of CatDoes

Codex vs Claude Code 2026 comparison featuring both AI logos, pricing and usage limit icons, and a minimalist white perspective grid background.

Codex vs Claude Code, at the end of November 2026: Claude Code still scores higher on independent agent tests, and Codex finishes the same work for about a third of the cost per task in under half the time. OpenAI’s November 17 update made GPT-6.2 Sol the Codex default and priced GPT-6.2 Astra at $8/$40 per million tokens, the same as Anthropic’s Claude Fable 5.2. That moved the price argument further toward Codex without changing who leads on quality.

This comparison is for developers choosing a plan or an agent for real work. It covers plan prices and usage limits first, then features, independent benchmarks, speed and API costs. Every figure comes from vendor documentation or a named third party.

TL;DR

  • Claude Code scores higher: 58 vs 53 for the best entries on Artificial Analysis’s Coding Agent Index, and 65.8% vs 62.1% on the Terminal-Bench 4.1 leaderboard.

  • Codex is cheaper and faster: $5.12 and 25 minutes per task for its best entry, against $15.47 and 53 minutes.

  • GPT-6.2 Sol became the Codex default on November 17. At medium effort it outscores Claude Code’s default, Opus 5.5, at a sixth of the cost per task.

  • Both start at $20. Codex adds a free tier and an $8 plan, and drops the five-hour limit from $100. Claude does that only on Ultra, at $200.

  • OpenAI estimates 17 to 180 GPT-6.2 Sol messages per five hours on Plus. Anthropic publishes no counts. From December, ChatGPT and Codex share one allowance.

  • Both have plan mode, hooks, skills, subagents, MCP and AGENTS.md. Claude Code is the agent you supervise, Codex the one you delegate to.

  • Neither ships an app to the App Store. CatDoes covers that last step.

Table of Contents

  • Claude Code vs Codex: The Quick Verdict

  • Claude Code vs Codex Pricing and Usage Limits

  • Side-by-Side Comparison Table

  • Claude Code: Strengths and Limits

  • OpenAI Codex: Strengths and Limits

  • Benchmarks: What the Numbers Say

  • Claude Code vs Codex Speed: Which Finishes First?

  • Pricing and Token Efficiency

  • When to Use Claude Code vs Codex

  • From Code to a Shipped App

  • Common Questions About Claude Code vs Codex

  • Pick Your Agent, or Let One Pick for You

Claude Code vs Codex: The Quick Verdict

Claude Code is Anthropic’s coding agent. It runs in the terminal, a desktop app (macOS and Windows, Linux in beta), the web and mobile apps, VS Code and JetBrains, all sharing one engine and one CLAUDE.md. Since August 2026 it defaults to “auto” mode, where a classifier reviews proposed actions instead of asking about each one.

Codex is OpenAI’s coding agent, and it made the opposite bet. Its CLI is open source, written in Rust, and pairs with Codex cloud, where you hand off a task and get a branch or pull request back. Since July 2026 the Codex desktop app has lived inside the ChatGPT desktop app.

The short answer: Claude Code gets further on hard tasks, and Codex gets more done per dollar and per minute. Artificial Analysis puts Claude Code’s best entry 5 points ahead of Codex’s best, at three times the cost per task. GPT-6.2 didn’t change who leads. It changed the price: Codex’s top entry now costs $5.12 a task, down from $7.63 with GPT-6 Astra, at the same score.

The feature gap is smaller than most comparisons say. Both connect to MCP servers, both have a plan mode, hooks, skills and subagents, and Claude Code reads AGENTS.md. The design split remains: Claude Code is built to be supervised and deeply customized, Codex to be delegated to and left running.

Which should you pick?

If you care most about

Pick

Why

Highest score on hard, multi-step tasks

Claude Code

Best entry 58 vs 53 on Artificial Analysis’s Coding Agent Index, and 65.8% vs 62.1% on the Terminal-Bench 4.1 leaderboard

The strongest single model

Claude Code

Fable 5.2 tops Artificial Analysis’s Intelligence Index (64.8 vs GPT-6.2 Astra’s 62.2) at the same $8/$40 per token

Lowest cost per task

Codex

$0.57 per agent task with GPT-6.2 Sol at medium effort, against $2.89 for Claude Code with Fable 5.2 at medium

Finishing fast

Codex

8.4 minutes per agent task at medium effort, against 15.1

A free or $8 starting point

Codex

Free and Go include Codex with GPT-6 Luna. Claude Code starts at Pro, $20

No five-hour limit at $100

Codex

Every Pro tier drops it. Claude only drops it on Ultra, at $200

Hooks, permissions and deep customization

Claude Code

Six permission modes, model-switch hooks, project-scoped MCP servers, nested subagents

Cloud delegation and PR review

Codex

Codex cloud plus @codex review on GitHub. Anthropic’s Claude Ship covers PR review only on Team and Enterprise

API sessions over 272K tokens

Claude Code

Flat pricing across 1M tokens. OpenAI charges 2x input above 272K

Flat illustration of two AI coding agent characters working side by side on a laptop with orange and green terminal windows, representing Claude Code and Codex

Claude Code vs Codex Pricing and Usage Limits

Both tools start at $20 a month and meter usage in a rolling five-hour window with a weekly cap on top. Codex adds a free tier and an $8 plan, removes the five-hour limit from $100, and publishes rough message estimates. Anthropic publishes multipliers, not numbers.

Monthly price

Claude Code (Anthropic)

Codex (OpenAI)

$0

Not included

Free, with GPT-6 Luna

$8

No plan

Go, with GPT-6 Luna

$20

Pro ($17 a month billed annually): five-hour window plus weekly cap

Plus: five-hour window plus weekly cap

$100

Max: 5x Pro usage

Pro $100: no five-hour limit

$200

Ultra: 10x Pro per week, no five-hour limit (verified accounts)

Pro $200: no five-hour limit, Ultrafast on GPT-6.2 Sol

$500

No individual tier

Pro $500: the most usage, Ultrafast on both GPT-6.2 models

Teams

Team Standard $20/seat, Premium $100/seat (annual)

Business $20 per user billed annually, $25 monthly

Anthropic pools usage across claude.ai, Claude Code and the desktop app, so there’s no separate coding allowance. Its pricing page says there’s “no fixed message count,” so treat any “hours per week” figure for Claude Code as an estimate.

OpenAI publishes estimates instead. On Plus, one five-hour window covers roughly 17 to 180 GPT-6.2 Sol messages, 6 to 50 on GPT-6.2 Astra and 350 to 3,000 on GPT-6 Luna, according to its Codex pricing page. OpenAI stresses these are estimates, because tool use, context size and cloud tasks change what a message costs. Pro plans currently have no five-hour limit, only a weekly one.

Two recent changes affect those numbers. On November 26, OpenAI fixed a launch bug that had undercounted GPT-6.2 usage. Afterwards, users hit limits about 40% sooner on Astra and 25% sooner on Sol than in launch week, and Go, Plus, Pro and Business accounts got an extra reset, Notebookcheck reported. And starting in December, ChatGPT and Codex share one allowance on Plus, Pro and Business, measured in tokens. Instant chat won’t count against it, and OpenAI hasn’t said how large the pool will be.

Past the limit, Plus and Pro users can buy Codex credits or a paid reset instead of upgrading, or switch to an API key, which gives up cloud features such as GitHub code review. On Claude, Pro pays for Fable 5.2 with usage credits, while Max and Ultra include it for up to half the weekly limit. The API credits bundled with Max and Ultra can’t be spent in Claude Code.

Edge: Codex. It’s cheaper to start, drops the five-hour limit at $100 instead of $200, and its lower cost per task stretches an allowance further.

Codex Plus vs Claude Pro: the $20 plans

At $20 a month, Codex Plus and Claude Pro cost the same, so the question is what each buys. Codex Plus gets GPT-6.2 Sol, the CLI’s default since November 17, with GPT-6.2 Astra, GPT-6.1 Terra and older models one switch away. Claude Pro runs Opus 5.5 by default, with Sonnet 5.5 and Haiku 5.5 one /model switch away, and bills Fable 5.2 to usage credits.

Cost per task is the best available proxy for how far an allowance stretches. On Artificial Analysis’s runs, GPT-6.2 Sol at medium effort costs a sixth as much per task as Opus 5.5 at medium ($0.41 vs $2.45) and scores higher (52.4 vs 48.3). Claude Pro is the better $20 plan when the work is hard enough that Claude Code’s higher ceiling saves you rework, or when you want its hooks and permission controls.

Codex Pro vs Claude Max and Ultra: $100 to $500

At $100, Codex Pro and Claude Max line up on price. Claude Max gives 5x Pro usage per five-hour window and per week, and includes Fable 5.2 for up to half the weekly limit. Codex Pro $100 has no five-hour limit at all. OpenAI has since canceled a planned cut to Pro $200 and doubled the Work and Codex allowance on Pro $100 and Pro $500, according to its Pro tiers help page.

At $200, Claude Ultra is the closest match to Codex Pro $200. Both drop the five-hour window (on Ultra, for verified accounts), and Ultra gives 10x Pro usage per week with the same Fable allowance as Max. Codex Pro $200 now also gets Ultrafast on GPT-6.2 Sol, which used to need Pro $500. In Codex, Ultrafast draws included usage at 6x the standard rate on the GPT-6.2 models. Above that, only OpenAI sells a $500 individual tier, with Ultrafast on both GPT-6.2 models.

Is Claude Code or Codex free?

Codex has free routes, and Claude Code mostly doesn’t. Codex is included on ChatGPT Free and Go, which run GPT-6 Luna in the desktop app while OpenAI finishes the rollout. University students in the US and Canada can claim $100 in Codex credits that expire after 12 months, and maintainers of widely used open-source projects can apply to Codex for Open Source for API credits and ChatGPT Pro.

Claude Code isn’t on Claude’s Free plan. The cheapest route is Pro at $20 a month ($17 billed annually), or pay-as-you-go API billing. A Pro or Max subscriber of at least 31 days can send a 7-day Pro guest pass to someone who has never paid for Claude, and it turns into a paid plan unless cancelled. Eligible open-source maintainers can get six months of Claude Ultra free.

So the floor for trying both is $20 a month: Claude Pro plus ChatGPT Free. Codex’s default model, GPT-6.2 Sol, needs Plus or higher, which brings a fuller test of both to $40.

Side-by-Side Comparison Table

Here is the comparison at a glance. The sections below go deeper on each row.

Feature

Claude Code

Codex

Default model

Claude Opus 5.5, medium effort

GPT-6.2 Sol (Nov 17, 2026), low effort in the CLI

Default model price

$4 / $20 per MTok

$2 / $10 per MTok

Frontier model

Claude Fable 5.2: $8 / $40

GPT-6.2 Astra: $8 / $40

Cheapest model

Haiku 5.5: $0.10 / $0.50

GPT-6 Luna: $0.10 / $0.50

Context window (API)

1M tokens

1.05M tokens (Sol defaults to 500K in Codex)

Long-context pricing

Flat across 1M (Haiku 5.5 rises above 100K)

2x input, 1.5x output above 272K

Coding Agent Index v2.1, best entry

58 (Fable 5.2, xhigh)

53 (GPT-6.2 Astra, max)

Terminal-Bench 4.1 leaderboard, best entry

65.8%

62.1%

Cost per task, best index entry

$15.47

$5.12

Time per task, best index entry

53.3 min

25.1 min

MCP servers

Yes, stdio and HTTP, shareable in .mcp.json

Yes, stdio and HTTP, set in config.toml

Plan mode

Yes

Yes (/plan)

Workflow

Supervised, local-first

Delegated, cloud plus local

AGENTS.md

Read when no CLAUDE.md exists

Native, with per-directory hierarchy

Open source

No

CLI is Apache-2.0

Entry plan

Pro, $20/mo

Free $0, Go $8/mo

No five-hour limit

Ultra, $200 (verified accounts)

Every Pro tier, from $100

Top individual plan

Ultra, $200/mo

Pro, $500/mo

Latest CLI

v2.1.332 (Nov 24, 2026)

v0.172.0 (Nov 24, 2026)

Two rows changed this month. GPT-6.2 Astra matched Fable 5.2’s price, so neither side has the cheaper frontier model anymore, and Artificial Analysis re-scored every agent on a new task set. What’s left is a split on ceiling and cost: Claude Code scores higher, and Codex does the job faster and for less.

Claude Code: Strengths and Limits

Screenshot of the Claude Code product page at claude.com showing the Built for code hero section and install command

The Claude Code CLI works on your local filesystem, so your repository never leaves your machine, which matters under an NDA. Claude Opus 5.5 has been the default on every paid plan since September 22, 2026, and it runs at medium effort unless you change it. Sonnet 5.5, Haiku 5.5 and Fable 5.2 (v2.1.321 or later) are one /model switch away. The latest release is v2.1.332, from November 24.

What Claude Code does better than Codex:

  • Higher scores on independent tests. Claude Code holds four of the top six spots among 66 entries on Artificial Analysis’s Coding Agent Index, behind only Google’s Antigravity CLI.

  • The top model at the same price. Fable 5.2 leads Artificial Analysis’s Intelligence Index and costs the same per token as GPT-6.2 Astra ($8/$40), with half the cache-read price ($0.20 vs $0.40).

  • Customization depth. Hooks fire on lifecycle events, including model switches. Skills are folder-based instruction packs loaded on demand, and Anthropic donated the format to the Agentic AI Foundation in October, with more than 70 agent platforms on board.

  • MCP set up per project. Claude Code connects to MCP servers over stdio or HTTP, and a project’s .mcp.json file can be checked into the repo so the whole team gets the same tools. Tool search is on by default.

  • Checkpoints. Claude Code saves a checkpoint at each prompt, and Esc-Esc or /rewind restores both the code and the conversation. Files changed only through Bash commands aren’t tracked.

  • Subagents. Each gets its own context window, tool permissions and model, nesting up to three levels deep by default.

  • Permission control. Six modes, from fully manual through plan mode to bypass, with OS-level sandboxing via macOS Seatbelt and Linux bubblewrap. Since v2.1.325, sandboxed Bash commands ask for permission by default.

  • Flat long-context pricing. Opus 5.5, Sonnet 5.5 and Fable 5.2 bill the full 1M-token window at one rate. Haiku 5.5 is the exception, at five times its base rate past 100,000 tokens.

Where Claude Code falls short:

  • The default costs more per task. Opus 5.5 costs twice what GPT-6.2 Sol does per token, and at medium effort it costs six times as much per task on Artificial Analysis’s runs while scoring lower.

  • No free tier and opaque limits. Claude Code starts at $20, and Anthropic publishes multipliers but no absolute numbers. Pro pays for Fable 5.2 with usage credits, while Max and Ultra include it for up to half the weekly limit.

  • Fable comes with strings. Its safeguards block most cybersecurity work, such as penetration testing and exploit generation, and hand it to Opus 4.8 instead. It also requires 30-day data retention. Zero-retention customers need Anthropic’s new Enterprise Frontier Safeguards beta to use it.

  • PR review is newer and narrower. Claude Ship, announced November 23, brings pull request review, fixes and policy-based approvals to Team and Enterprise plans on GitHub, with the fix and approval parts still in beta.

  • AGENTS.md support is partial. Claude Code reads AGENTS.md only when a project has no CLAUDE.md, and ignores the override and local variants.

If you want to see how an app-building agent compares with Claude Code, see our CatDoes vs Claude Code comparison.

OpenAI Codex: Strengths and Limits

Screenshot of the OpenAI Codex landing page showing the Codex coding agent branding and a sample diff in the Codex app

Codex runs in the open-source Rust CLI, IDE extensions (VS Code, Cursor, Windsurf, JetBrains, Xcode), Codex cloud, the ChatGPT desktop and web apps, and a mobile remote mode, with integrations for GitHub, GitLab, Slack and Linear. The latest stable CLI is v0.172.0, from November 24.

GPT-6.2 Sol and GPT-6.2 Astra arrived on November 17, and GPT-6.2 Sol became the CLI’s default the same day. Sol keeps GPT-6.1 Sol’s price of $2 per million input tokens and $10 output. Astra costs $8 and $40, down from $10 and $50 for GPT-6 Astra. Both have a 1.05M-token API context window. In Codex, Sol defaults to 500K and Astra to 272K. Free and Go stay on GPT-6 Luna, and the GPT-6.2 models need Plus or higher.

What Codex does better than Claude Code:

  • Lower cost and less time per task. Codex with GPT-6.2 Sol at medium effort costs $0.57 per agent task on Artificial Analysis’s runs and takes 8.4 minutes, against $2.89 and 15.1 minutes for Claude Code with Fable 5.2 at medium.

  • An open-source harness. The Codex CLI is Apache-2.0 on GitHub, so you can read, fork or audit it. Claude Code’s harness isn’t open source.

  • AGENTS.md with real scoping. Codex merges a global file with per-directory files from the repo root down, closer files winning, under a 32 KiB combined budget.

  • Cloud execution. Parallel tasks run in cloud environments while your computer sleeps, and you apply the diff locally.

  • Code review as a product. Comment @codex review on a pull request and Codex posts a standard GitHub review, deliberately flagging only P0 and P1 issues.

  • Migration path. Codex can import an existing Claude Code or Cursor setup directly, and it reads MCP servers from config.toml.

Where Codex falls short:

  • A lower ceiling. Codex’s best entry on Artificial Analysis’s Coding Agent Index scores 53 against Claude Code’s 58, and its best Terminal-Bench 4.1 leaderboard entry scores 62.1% against 65.8%.

  • A low default effort. The bundled CLI catalog ships GPT-6.2 Sol at low reasoning effort. On Artificial Analysis’s runs, Codex with Sol scores 37 at low against 45 at medium, so check /model before a long task.

  • Long-context surcharge on the API. Past 272K input tokens, OpenAI applies 2x input and 1.5x output rates to the entire request on every GPT-6-family model.

  • Uneven availability. The GPT-6.2 models aren’t on Free or Go, Enterprise and Edu admins have to switch them on, and the default reasoning effort depends on your client.

  • Sandbox escapes have been demonstrated. Researchers at Accomplish AI showed that opening a malicious repository in Codex could give its author command execution outside the sandbox. OpenAI fixed both flaws within eight days of the August 12 report.

Benchmarks: What the Numbers Say

One caveat governs this entire section. Agentic coding benchmarks measure a model plus a harness, and harnesses differ: different versions, run by different people, with different tool budgets and retry rules. Anthropic reports a standard error of 2.6 points on Terminal-Bench 4.0, so treat gaps under three points as noise.

That’s why the most useful numbers for this comparison test each tool as it ships, with its own harness and model.

Flat illustration of two simplified bar charts in orange and green comparing the performance of two AI coding agents on abstract benchmarks

Tool vs tool: Claude Code and Codex as shipped

Artificial Analysis’s Coding Agent Index runs each agent on three task sets (FrontierCode-AA 2.0, Terminal-Bench 4.1 and SWE-Atlas-QnA-AA) and reports the score, the API cost and the agent’s working time per task. It moved to version 2.1 in November with new task sets and a new cost method, so its scores aren’t comparable with v2.0 figures quoted elsewhere, including earlier versions of this post.

Agent, model and effort

Index

Terminal-Bench 4.1

Cost per task

Time per task

Claude Code + Fable 5.2, xhigh

58

64%

$15.47

53.3 min

Claude Code + Fable 5.2, high

58

64%

$7.51

31.3 min

Claude Code + Opus 5.5, max

58

65%

$12.61

65.3 min

Claude Code + Sonnet 5.5, max

56

66%

$11.40

86.8 min

Claude Code + Fable 5.2, medium

53

60%

$2.89

15.1 min

Codex + GPT-6.2 Astra, max

53

64%

$5.12

25.1 min

Codex + GPT-6.2 Astra, xhigh

53

62%

$3.20

16.5 min

Codex + GPT-6.2 Sol, xhigh

50

58%

$0.90

12.6 min

Codex + GPT-6.2 Astra, medium

49

54%

$1.20

11.6 min

Codex + GPT-6.2 Sol, medium

45

49%

$0.57

8.4 min

Codex + GPT-6.2 Sol, low

37

41%

$0.33

7.2 min

At the top, Claude Code leads by 5 points, costs 3.0 times as much per task and takes 2.1 times as long. GPT-6.2 left the gap where it was: Codex with GPT-6.2 Astra scores the same 53 that GPT-6 Astra did, for $5.12 a task instead of $7.63. On the Claude side, Fable 5.2 at high effort is the efficient pick, with the same score as xhigh for half the cost.

Two caveats. Artificial Analysis ran Opus 5.5 on Claude Code v2.1.280 and the GPT-6.2 models on Codex v0.166.0, both older than today’s releases. And between 4.5% and 8.8% of Claude Code attempts hit a safety refusal and were finished by an older Opus model, which Artificial Analysis labels “Default Fallback.”

The official Terminal-Bench leaderboard puts the two tools in the same order on its 4.1 grading. GitHub Copilot with Copilot Fusion leads at 71.2%. Claude Code with Opus 5.5 and with Fable 5.2 tie for second at 65.8%, and Claude Code with Sonnet 5.5 scores 63.9%. Codex with GPT-6.2 Astra follows at 62.1% and Codex with GPT-6.2 Sol at 61.5%. All of these entries are max effort.

Model by model: Artificial Analysis Intelligence Index

Artificial Analysis also scores each model on its own neutral harness at several effort levels. It now uses Intelligence Index v5.0.2, which swaps Terminal-Bench 4.0 for 4.1, and it has retired GPT-6.1 Sol and GPT-6 Astra from its leaderboard.

Model and effort

Intelligence Index v5.0.2

Terminal-Bench 4.1

Cost per task

Claude Fable 5.2, max

64.8

61.6%

$26.54

Claude Fable 5.2, xhigh

62.2

61.6%

$14.83

GPT-6.2 Astra, max

62.2

64.6%

$4.00

Claude Fable 5.2, high

61.9

60.1%

$9.08

GPT-6.2 Astra, xhigh

61.8

66.2%

$2.52

Claude Opus 5.5, max

59.1

59.1%

$10.04

GPT-6.2 Sol, max

57.3

60.1%

$1.01

Claude Fable 5.2, medium

56.3

54.5%

$3.80

Claude Sonnet 5.5, max

54.7

65.2%

$10.02

GPT-6.2 Sol, medium

52.4

53.5%

$0.41

Claude Opus 5.5, medium (Claude Code default)

48.3

53.0%

$2.45

GPT-6.2 Sol, low (Codex CLI default)

40.6

37.9%

$0.18

Read the table by cost, not by row. The medium-effort result reversed with GPT-6.2. Sol at medium scores 52.4 against 48.3 for Opus 5.5 at medium, the effort Claude Code uses by default, at a sixth of the cost per task.

At the top, Fable 5.2 still leads. At max effort it scores 64.8, 2.6 points above GPT-6.2 Astra, for 6.6 times the cost per task. At xhigh the two are within half a point, with Astra at $2.52 a task against $14.83.

The per-task gap comes mostly from tokens, not rates. At medium effort, Opus 5.5 writes about 43,800 output tokens per index task against about 13,700 for GPT-6.2 Sol, 3.2 times as many, and each of those tokens costs twice as much. Cheaper tokens are not the same thing as a cheaper job.

Effort matters as much as the model at the low end. Dropping GPT-6.2 Sol from medium to low cuts its index score from 52.4 to 40.6 to save about 22 cents a task, and low is what the Codex CLI ships with.

The same-price matchup still favors OpenAI. Sonnet 5.5 and GPT-6.2 Sol cost the same per token, but at medium effort Sol scores 21.6 points higher for about half the cost per task. Our Sonnet vs Opus vs Fable comparison runs all four Claude models through the same three tasks.

SWE-bench Verified no longer separates these models. Anthropic’s system card reports SWE-bench Pro instead, with Fable 5.2 at 93.0% and Opus 5.5 at 89.9%. OpenAI’s GPT-6.2 launch reports neither benchmark.

Edge: Claude Code on raw capability, Codex on capability per dollar.

Claude Code vs Codex Speed: Which Finishes First?

Codex finishes first, even though Claude streams faster. Artificial Analysis clocks Opus 5.5 at about 105 output tokens per second at medium effort, against about 58 for GPT-6.2 Sol and about 39 for GPT-6.2 Astra. But the OpenAI models write far fewer tokens per task, so they finish sooner.

In the full agent runs, where each tool uses its own harness, Codex with GPT-6.2 Sol at medium averages 8.4 minutes per task, against 15.1 for Claude Code with Fable 5.2 at medium. At the top settings it’s 25.1 minutes for Codex with GPT-6.2 Astra, against 53.3 for Claude Code with Fable 5.2 and 65.3 for Claude Code with Opus 5.5.

Both companies sell a way out. Anthropic’s fast mode runs Opus 5.5 at $8/$40 per million tokens, and Fable 5.2’s fast mode, up to 2.5 times faster, costs $16/$80. OpenAI’s Ultrafast now comes with Pro $200 for GPT-6.2 Sol and with Pro $500 for both GPT-6.2 models. In Codex it draws included usage at 6x the standard rate on those models.

Edge: Codex.

Pricing and Token Efficiency

At the top, the API price lists now match. GPT-6.2 Astra and Claude Fable 5.2 both cost $8 per million input tokens and $40 output, though Fable reads cache at half the price. Below that, the defaults differ by 2x: Opus 5.5 costs twice what GPT-6.2 Sol does. Sonnet 5.5 matches Sol, and Haiku 5.5 matches GPT-6 Luna for prompts up to 100,000 tokens.

Model

Input / MTok

Cached input

Output / MTok

Claude Fable 5.2

$8

$0.20

$40

GPT-6.2 Astra

$8

$0.40

$40

Claude Opus 5.5

$4

$0.20

$20

GPT-6.2 Sol

$2

$0.10

$10

Claude Sonnet 5.5

$2

$0.10

$10

GPT-6.1 Terra

$1

$0.05

$5

Claude Haiku 5.5 (prompts up to 100K)

$0.10

$0.01

$0.50

GPT-6 Luna

$0.10

$0.01

$0.50

So the per-token gap is a choice, not a constraint. Claude Code’s default, Opus 5.5, costs twice what Codex’s default does on every line. Switch to Sonnet 5.5 and the rates match, though Sol still gets more done per dollar at the same effort.

The budget tier runs the other way. Haiku 5.5 is the stronger model at the same rate, scoring 36.5 on Artificial Analysis’s index at max effort against GPT-6 Luna’s 27.9, though it spends more getting there: $0.41 a task against $0.15.

Long prompts change the math. Past 272K input tokens, OpenAI bills the entire request at 2x input and 1.5x output, which takes GPT-6.2 Sol to $4/$15 and GPT-6.2 Astra to $16/$60. Anthropic charges its standard rate across the full 1M window on every current model except Haiku 5.5, which jumps to $0.50/$2.50 above 100,000 tokens.

Both vendors take 50% off batch work. On the API, OpenAI charges 2x for fast mode. Ultrafast normally costs 6x, but on the GPT-6.2 models it’s 3x through February 28, 2027.

Pulling the other way, Claude 4.7 and later use a tokenizer that produces roughly 30% more tokens for the same text. Anthropic puts 1M tokens at about 555,000 words, against roughly 750,000 on earlier models, so per-token prices aren’t directly comparable across vendors. Full rates are on Anthropic’s pricing page and OpenAI’s API pricing page.

Edge: Codex at the defaults. At the top, the token prices tie.

When to Use Claude Code vs Codex

Use Claude Code when:

  • The change is high-stakes (auth, payments, security-sensitive code) and getting it right the first time matters more than cost.

  • You need the top of the quality curve. Claude Code leads Codex on both independent agent leaderboards, and Fable 5.2 is one /model switch away.

  • You work with code that cannot leave your machine.

  • You want programmable hooks, project-scoped MCP servers, skills and nested subagents for custom governance.

  • Your API sessions often run past 272K tokens, where OpenAI charges 2x input on the whole request.

Use Codex when:

  • The task is well scoped and can run unattended in a cloud sandbox.

  • Cost per task or turnaround is the binding constraint. Codex with GPT-6.2 Sol runs agent tasks for about a fifth of the cost of Claude Code with Fable 5.2 at the same effort, in a little over half the time.

  • You want automated pull request review in GitHub without a Team or Enterprise plan.

  • You want no five-hour cap below $200, or Ultrafast at $200.

  • You want to start free or at $8/mo, or you want a harness you can read and fork.

Use both (still the most common answer):

“Claude Code for architecture, Codex for keystrokes” remains the shorthand. Use Claude Code to design and review the important 20% of changes, and Codex to grind through the other 80% at a fraction of the cost per task. The tools make this easy: OpenAI ships a Codex plugin that runs inside Claude Code, Codex imports Claude Code configurations, and one AGENTS.md can brief both agents.

From Code to a Shipped App

Neither Claude Code nor Codex can publish an app to the App Store. Both write and run code on a machine you control, and both stop at the point where working code has to become something other people can install. Neither one provisions a database, points a custom domain at your site, signs a release build, or submits it to Apple or Google for review.

That last mile is its own job. It needs a backend with authentication and file storage, a signed release build, a store listing with screenshots at the right sizes, and a review process that rejects apps for reasons unrelated to code quality. A coding agent hands you a repository, not something a stranger can download.

That gap is what CatDoes covers. You describe the app or website in plain English, an agent builds it, wires up the backend, and ships it to the App Store, Google Play, or the web on your own domain. CatDoes Cloud (database, auth, storage, edge functions, realtime) is included on every plan, so there is no second service to configure.

  • No local toolchain. No Xcode, no Android Studio and no developer console to learn before the first build.

  • A free tier that deploys. The Free plan builds and deploys a web app at no cost with CatDoes Cloud included. Starter at $50/mo and above add native deployment to the App Store and Google Play.

  • Keep the code. GitHub sync and code export on the higher plans mean you can hand the codebase to Claude Code or Codex later.

  • Submission is part of the job. On plans with native deployment, the agent handles the build, signing and store submission.

The three are not really competing for the same slot. Claude Code is where you design and review the parts of a codebase you need to understand. Codex is where scoped changes run unattended. An agent like CatDoes is for when the deliverable is a live app rather than a diff.

Common Questions About Claude Code vs Codex

Is Codex better than Claude Code?

Not on quality, but often on value. Claude Code scores higher on independent agent tests: 58 vs 53 on Artificial Analysis’s Coding Agent Index and 65.8% vs 62.1% on the Terminal-Bench 4.1 leaderboard. Codex finishes the same tasks for about a third of the cost in under half the time, which matters more on routine, well-scoped work.

Is Claude Code or Codex free?

Codex has a free tier, and Claude Code doesn’t. ChatGPT Free and the $8 Go plan include Codex with GPT-6 Luna, and US and Canadian university students can claim $100 in Codex credits. Claude Code starts at Pro, $20 a month, apart from a 7-day guest pass and free Ultra for eligible open-source maintainers.

Can I use Codex without ChatGPT Plus?

Yes. Codex works on ChatGPT Free and Go with GPT-6 Luna, or with an OpenAI API key billed per token. You need Plus or higher for GPT-6.2 Sol and GPT-6.2 Astra, and using an API key gives up cloud features such as GitHub code review.

Which has higher usage limits, Claude Code or Codex?

Codex, at most price points. OpenAI estimates 17 to 180 GPT-6.2 Sol messages per five-hour window on Plus, and every Pro tier from $100 has no five-hour limit. Anthropic publishes only multipliers: Max gives 5x Pro usage, and Ultra ($200) gives 10x Pro per week with no five-hour limit for verified accounts.

Is Codex cheaper than Claude Code?

Usually, yes. Both start at $20 a month, but Codex adds a free tier and an $8 plan, and its default model, GPT-6.2 Sol, costs half as much per token as Claude Code’s default, Opus 5.5. In Artificial Analysis’s agent runs at medium effort, Codex with Sol spent $0.57 per task against $2.89 for Claude Code with Fable 5.2.

Why does Codex feel slower than Claude Code?

Because Claude streams text faster, even though Codex finishes sooner. Opus 5.5 outputs about 105 tokens per second against about 58 for GPT-6.2 Sol, so Claude Code looks busier. But Sol writes far fewer tokens per task, and in full agent runs Codex finishes in roughly half the time.

What is GPT-6.2 Sol, and is it the Codex default?

Yes, it’s the default. GPT-6.2 Sol is OpenAI’s everyday coding model, released November 17, 2026 at $2 per million input tokens and $10 output, and it became the Codex CLI’s default that day. The CLI ships it at low reasoning effort, and raising it to medium lifts its Artificial Analysis index score from 40.6 to 52.4.

Should I use Claude Fable 5.2 or GPT-6.2 Astra?

Fable 5.2 for the hardest problems, GPT-6.2 Astra for value. Both cost $8/$40 per million tokens. Fable scores higher on Artificial Analysis’s Intelligence Index (64.8 vs 62.2 at max effort), but Astra uses far fewer tokens, so a task costs $4.00 against $26.54. Fable also requires 30-day data retention.

Can I use Claude Code and Codex on the same project?

Yes, and many developers do. OpenAI ships a Codex plugin that runs inside Claude Code, and Codex can import an existing Claude Code setup directly. Git branches keep their outputs apart, and Claude Code reads AGENTS.md when a project has no CLAUDE.md, so one file can brief both agents.

Which is better for beginners, Claude Code or Codex?

Neither, if the goal is a working app without reading code. Both tools assume a developer reviews the output. Codex’s free tier lowers the cost of entry, not the skill needed. If you’ve never written code, start with a free mobile app builder that handles the backend and deployment, then move to Claude Code or Codex when you need to customize.

Pick Your Agent, or Let One Pick for You

Claude Code vs Codex at the end of November 2026 comes down to ceiling versus throughput. Claude Code posts higher scores on both independent agent leaderboards, and Fable 5.2 leads every model while costing the same per token as GPT-6.2 Astra. Codex with GPT-6.2 Sol lands a few points lower, finishes in about half the time and costs a fraction as much per task.

The plans have converged too. Both sell $20, $100 and $200 tiers, both have a $200 plan without a five-hour limit, and both connect to MCP servers and read AGENTS.md. Most working developers run both. If Cursor is also on your list, our Claude Code vs Cursor comparison covers that matchup, and our Cursor vs ChatGPT Codex guide covers Codex against Cursor.

If you are building a mobile app or website and do not want to track which frontier model shipped this week, try CatDoes free. Describe what you want to build and pick an agent tier for each part of the job: Low or Medium for routine work, High or Max for planning and hard problems.

Writer

Nafis Amiri

Co-Founder of CatDoes