Blog

Insights

Codex vs Claude Code 2026: Pricing, Limits, Speed

Codex vs Claude Code after Claude Fable 5.2: pricing, Plus vs Pro and Max vs Ultra limits, speed, and independent benchmarks. See which agent fits you.

Writer

Nafis Amiri

Co-Founder of CatDoes

Minimal comparison graphic showing Claude Code with Opus 5.5 on the left and Codex with GPT-6 Sol on the right, set against a white perspective grid background.

Anthropic released Claude Fable 5.2 on November 9, 2026, at $8 per million input tokens and $40 output, 20% less than OpenAI’s GPT-6 Astra. It’s in Claude Code on paid plans, though Claude Opus 5.5 stays the default. Its twin, Claude Mythos 5.2, is the same model with fewer safeguards, open only to verified organizations. On the OpenAI side, GPT-6.1 Sol is still the Codex default, and GPT-6.1 Terra (October 26) is still the newest model.

This guide compares Claude Code vs Codex on what ships in November 2026: pricing, plan limits, speed, independent benchmarks, and workflow. Every figure comes from vendor documentation or a named third party. The short version: Claude Code still scores highest on independent agent tests, Fable 5.2 now tops the model rankings, and Codex with GPT-6.1 Sol finishes sooner for a fraction of the cost per task.

TL;DR

  • Claude Fable 5.2 (November 9) costs $8/$40 per million tokens, 20% less than Fable 5.1 and GPT-6 Astra. It’s in Claude Code from v2.1.321, but Opus 5.5 at medium effort stays the default. Mythos 5.2 is the same model with fewer safeguards, for verified organizations only.

  • Fable 5.2 ranks first on Artificial Analysis’s Intelligence Index: 64.6 at max effort against 54.6 for GPT-6.1 Sol, but at $26.54 a task against $1.27. On terminal coding it barely moves past Opus 5.5 (61.6% vs 59.6% on Terminal-Bench 4.0).

  • On Artificial Analysis’s Coding Agent Index, which runs each tool with its own model, Claude Code with Opus 5.5 scores 62 and Codex with GPT-6.1 Sol scores 54. Codex finishes a task for $1.50 in 24 minutes, against $11.42 and 61 minutes. Claude Code with Fable 5.2 hasn’t been tested there yet.

  • Codex finishes first. Opus 5.5 streams tokens faster, but it writes about three times as many, so Sol completes tasks sooner at every matched effort level. Fable 5.2 doesn’t change that.

  • Nothing changed on the OpenAI side. GPT-6.1 Terra ($1/$5, October 26) is still its newest model, and GPT-6.1 Sol ($2/$10) is still the Codex default.

  • On plans, Claude Max and Ultra include Fable for up to half the weekly limit, while Pro pays for it with usage credits. Claude Ultra ($200, verified accounts) and every Codex Pro tier (from $100) drop the five-hour limit.

  • Both tools have plan mode, skills, subagents, and AGENTS.md support. Claude Code is still the supervised, customizable agent and Codex the one you delegate to. Most experienced developers use both.

  • CatDoes gives non-technical builders four agent tiers (Low, Medium, High, Max), so they choose how hard the agent thinks instead of tracking models.

Table of Contents

  • Claude Code vs Codex: The Quick Verdict

  • 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

  • Claude Code vs Codex FAQ

  • Pick Your Agent, or Let One Pick for You

Claude Code vs Codex: The Quick Verdict

Claude Code is Anthropic’s coding agent. It started as a terminal tool and now runs across five surfaces that share one engine, one CLAUDE.md, and one settings file: the CLI, a desktop app for macOS and Windows (Linux in beta), the web and mobile apps, a VS Code extension, and a JetBrains plugin. In the CLI, your code stays on your machine. The agent shows its reasoning, and since August 2026 it defaults to “auto” mode, where a classifier reviews proposed actions instead of stopping to ask you about each one.

Codex is OpenAI’s coding agent, and it made the opposite bet. The CLI is written in Rust, runs locally, and pairs with Codex cloud, where you hand off a task and get a branch or pull request back. In July 2026 the standalone Codex desktop app was folded into the ChatGPT desktop app, consolidating both under one product.

The shortest answer for November 2026: Claude Code gets further on hard tasks, and Codex gets more done per dollar and per minute. Independent agent tests put Claude Code with Opus 5.5 about 7.5 points ahead of Codex with GPT-6.1 Sol, at 7.6 times the cost per task. Fable 5.2 raises Claude’s ceiling again: it leads every model on Artificial Analysis’s index, at 2.6 times Opus 5.5’s cost per task at max effort.

The feature gap is smaller than most comparisons say. Codex has 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 run unattended.

Which should you pick?

If you care most about

Pick

Why

Highest score on hard, multi-step tasks

Claude Code

Opus 5.5 leads Artificial Analysis’s Coding Agent Index (62 vs 54) and the Terminal-Bench 4.1 leaderboard (65.8% vs 60.9%)

The strongest model you can pick

Claude Code

Fable 5.2 tops Artificial Analysis’s Intelligence Index (64.6 vs GPT-6 Astra’s 56.9) and costs less per token ($8/$40 vs $10/$50)

Lowest cost per task

Codex

$1.50 per agent task with GPT-6.1 Sol, against $11.42 for Claude Code with Opus 5.5

Finishing fast

Codex

23.7 minutes per agent task, against 61.0

A free or $8 starting point

Codex

Free and Go run 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, skills, and permission control

Claude Code

Six permission modes, model-switch hooks, nested subagents

Cloud delegation and PR review

Codex

Codex cloud plus @codex review on GitHub

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

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 (Sept 22, 2026)

GPT-6.1 Sol (Sept 29, 2026)

Default model price

$4 / $20 per MTok

$2 / $10 per MTok

Frontier model

Claude Fable 5.2 (Nov 9): $8 / $40

GPT-6 Astra: $10 / $50

Mid-tier model

Sonnet 5.5: $2 / $10

GPT-6.1 Terra (Oct 26): $1 / $5

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 (Artificial Analysis, max effort)

62 (Opus 5.5)

54 (GPT-6.1 Sol)

Terminal-Bench 4.1 leaderboard (max effort)

65.8% (Opus 5.5)

60.9% (GPT-6.1 Sol)

Cost per agent task (Artificial Analysis)

$11.42

$1.50

Time per agent task (Artificial Analysis)

61.0 min

23.7 min

Plan mode

Yes

Yes (/plan)

Workflow

Supervised, local-first

Autonomous, cloud plus local

AGENTS.md

Read when no CLAUDE.md exists (v2.1.277+)

Native, with per-directory hierarchy

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.321 (Nov 9, 2026)

v0.167.0 (Nov 6, 2026)

Two rows changed the story this week. Fable 5.2 makes Claude’s frontier model the cheaper one, and Terminal-Bench 4.1 re-graded the leaderboard without changing who leads. 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 reads your local filesystem directly, so your repository never has to leave your machine, which matters under an NDA or on proprietary code. Claude Opus 5.5 has been the default on every paid plan since v2.1.280 on September 22, 2026, and it runs at medium effort unless you change it. Claude Sonnet 5.5 (v2.1.284, September 28) and Claude Haiku 5.5 (v2.1.293, October 7) are one /model switch away. Claude Fable 5.2 arrived in v2.1.321 on November 9. It isn’t the default on any plan, so you pick it with /model fable.

Opus 5.5, Sonnet 5.5, and Fable 5.2 bill the full 1M-token window at a flat rate: a 900,000-token request costs the same per token as a 9,000-token one. Haiku 5.5 is the exception, at five times its base rate once a prompt passes 100,000 tokens.

What Claude Code does better than Codex:

  • The highest scores on independent tests. Claude Code with Opus 5.5 ranks first of 35 entries on Artificial Analysis’s Coding Agent Index, Claude Code entries hold the top two spots on the Terminal-Bench 4.1 leaderboard, and Fable 5.2 is the top model on Artificial Analysis’s Intelligence Index.

  • A cheaper frontier model. Fable 5.2 costs $8/$40 against GPT-6 Astra’s $10/$50, and reads cache at $0.20 against $1.00. Below it, Sonnet 5.5 costs exactly what GPT-6.1 Sol does ($2/$10, with $0.10 cache reads), and Haiku 5.5 matches GPT-6 Luna at $0.10/$0.50. Terra’s $1/$5 is the one OpenAI price with no Claude twin.

  • Customization depth. Hooks fire on lifecycle events, including model-switch events, and can run conditionally. 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.

  • Checkpointing. A snapshot is taken before every change. Esc-Esc or /rewind rolls back both files and conversation, and can resume from before a /clear.

  • Subagents. Each gets its own context window, tool permissions, and model. By default they nest up to three levels below the main conversation.

  • Permission granularity. Six modes, from fully manual through plan mode to bypass, with OS-level sandboxing via macOS Seatbelt and Linux bubblewrap. Since v2.1.314, a setting can block writes outside the working directory in every mode.

  • A $200 plan with no five-hour limit. At the end of October, Anthropic renamed Max 20x to Ultra. It drops the five-hour limit for verified accounts and gives 10x Pro usage per week.

Where Claude Code falls short:

  • The default costs more per task. Opus 5.5 costs twice what GPT-6.1 Sol does per token, and on Artificial Analysis’s runs it costs 6.8 times as much per task at medium effort ($2.45 vs $0.36).

  • Limits are still opaque. Anthropic publishes multipliers (Max gives 5x Pro usage, Ultra 10x Pro per week) but no absolute numbers for the five-hour window or the weekly cap. Its pricing FAQ says there’s “no fixed message count.”

  • No free tier. Claude Code starts at the $20/mo Pro plan. Codex has a free tier and an $8 plan.

  • Fable costs extra on Pro. The $20 plan pays for Fable 5.2 with usage credits. Max and Ultra include it for up to half the weekly limit.

  • Fable comes with strings. Its safeguards block most cybersecurity tasks, such as penetration testing and exploit generation, and hand them to Opus 4.8 instead. It also requires 30-day data retention, so teams on zero data retention can’t use it without Anthropic’s approval.

  • AGENTS.md support is partial. Since v2.1.277 (September 18, 2026), Claude Code reads AGENTS.md, but by default only when the project has no CLAUDE.md. It also ignores AGENTS.override.md, AGENTS.local.md, and anything under .agents/.

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 spans a long list of surfaces: the Rust CLI, IDE extensions for VS Code, Cursor, Windsurf, JetBrains and Xcode, Codex cloud, the ChatGPT desktop and web apps, a mobile remote mode that drives a Mac or Windows machine from your phone, a TypeScript and Python SDK, a GitHub Action, and integrations with GitHub, GitLab, Slack and Linear. GPT-6.1 Sol has been the bundled CLI default since v0.161.0 on October 7. Free and Go stay on GPT-6 Luna.

GPT-6.1 Terra, released October 26, is the newest model in Codex. It costs $1 per million input tokens and $5 output, half of Sol, with the same 1.05M-token API context window. OpenAI describes it as “a fast, efficient model for visual reasoning, precise computer use, and clear, natural writing,” and launch coverage reports that OpenAI still recommends Sol or Astra for the most demanding coding. Terra is available in Codex on Plus, Pro, Business, Enterprise, and Edu, not on Free or Go.

What Codex does better than Claude Code:

  • Lower cost per task. GPT-6.1 Sol costs $2/$10 against Opus 5.5’s $4/$20 and Fable 5.2’s $8/$40. At max effort, Sol also beats Opus 5.5 at its default medium setting on the Intelligence Index (54.6 vs 48.2) for 48% less per task.

  • Speed. Codex with Sol averages 23.7 minutes per agent task, against 61.0 minutes for Claude Code with Opus 5.5.

  • Free and cheap entry. A free tier plus an $8/mo Go plan, both running GPT-6 Luna. Claude Code has neither.

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

  • Autonomous cloud execution. Fire off parallel tasks in reproducible cloud environments that keep working while your computer is asleep, and apply the results back locally with codex cloud.

  • 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. A separate @codex security review runs a security pass.

  • No five-hour cap on any Pro tier. Every Pro plan, from $100, has only a weekly allowance. Claude drops the five-hour limit only on Ultra, at $200.

  • Migration path. Codex can import an existing Claude Code, Claude Cowork, or Cursor setup directly.

Where Codex falls short:

  • 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 model, so Terra goes from $1/$5 to $2/$7.50.

  • A lower ceiling. Codex with Sol trails Claude Code with Opus 5.5 by about 7.5 points on Artificial Analysis’s Coding Agent Index. The best Codex entry, with GPT-6 Astra, scores 55 against 62.

  • The frontier tier now costs more. GPT-6 Astra’s $10/$50 is 25% above Fable 5.2’s $8/$40, and its cache reads cost five times as much ($1.00 vs $0.20).

  • ChatGPT and Codex will share one allowance. Starting in December, ChatGPT conversations and Codex tasks on Plus, Pro, and Business draw from one token pool, The New Stack reported, and OpenAI hasn’t said how big it will be.

  • Astra’s reasoning is harder to audit. OpenAI’s own tests found Astra’s written reasoning harder to monitor than GPT-5.6 Sol’s, and chief scientist Jakub Pachocki said “monitorability is getting more challenging” as capabilities rise. That applies to Astra, not to Sol or Terra.

  • Uneven defaults. Terra and Sol aren’t on Free or Go, Enterprise and Edu administrators have to switch Sol on, and the default reasoning effort depends on your client and account. The bundled CLI catalog ships Sol with low effort as its default, so check /model before a long task.

  • 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, but the class of attack is real.

Benchmarks: What the Numbers Say

One caveat governs this entire section. Agentic coding benchmarks measure a model plus a scaffold, and the scaffolds differ: different revisions, 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, Terminal-Bench 4.0, and SWE-Atlas QnA) and reports the average score, the cost, and the wall-clock time per task. All entries below use max effort.

Agent and model

Index

Terminal-Bench 4.0

Cost per task

Time per task

Claude Code + Opus 5.5

62

63.1%

$11.42

61.0 min

Claude Code + Sonnet 5.5

59

66.2%

$13.30

79.7 min

Claude Code + Fable 5.1

58

57.6%

$11.53

35.3 min

Codex + GPT-6 Astra

55

55.6%

$7.04

24.8 min

Codex + GPT-6.1 Sol

54

53.0%

$1.50

23.7 min

Codex + GPT-6.1 Terra

48

48.5%

$1.24

26.1 min

Claude Code + Haiku 5.5

37

30.8%

$2.67

70.9 min

Codex with Sol lands 7.5 points behind Claude Code with Opus 5.5, but each task costs 7.6 times less and takes 2.6 times less time. Two caveats: the runs used Claude Code v2.1.280 and Codex v0.154.0, both older than today’s releases, and 8.7% of the Claude Code with Opus 5.5 attempts hit a safety refusal that Artificial Analysis finished with Opus 4.8. Artificial Analysis hasn’t run Claude Code with Fable 5.2 yet, and the Fable 5.1 row above is the model it replaced.

The official Terminal-Bench leaderboard puts the tools in the same order. It moved to version 4.1 on November 9, which re-grades the 4.0 runs with verifiers hardened against reward hacking, and every score stayed inside its original 95% confidence interval. Claude Code with Opus 5.5 leads at 65.8% (±3.1), Claude Code with Sonnet 5.5 follows at 63.9%, then Codex with GPT-6.1 Sol at 60.9% and Codex with GPT-6 Astra at 60.3%. All four entries are max effort, and neither Fable 5.2 nor Terra has an entry yet.

Model by model: Artificial Analysis Intelligence Index

Artificial Analysis also scores each model on its own neutral harness at several effort levels. It moved to Intelligence Index v5 on October 27, so these scores and costs aren’t comparable with v4 figures still quoted elsewhere.

Model and effort

Intelligence Index v5

Terminal-Bench 4.0

Cost per task

Claude Fable 5.2, max

64.6

59.6%

$26.54

Claude Fable 5.2, xhigh

62.2

61.6%

$14.83

Claude Fable 5.2, high

61.8

59.6%

$9.08

Claude Opus 5.5, max

59.1

59.6%

$10.04

Claude Opus 5.5, xhigh

57.4

59.6%

$6.05

GPT-6 Astra, max

56.9

59.1%

$6.24

Claude Fable 5.2, medium

56.4

55.1%

$3.80

GPT-6.1 Sol, max

54.6

56.1%

$1.27

Claude Sonnet 5.5, max

54.5

63.6%

$10.02

GPT-6.1 Sol, xhigh

52.5

54.0%

$0.76

Claude Opus 5.5, high

51.8

56.6%

$3.46

GPT-6.1 Terra, max

51.3

55.6%

$0.96

GPT-6.1 Sol, high

50.3

51.5%

$0.59

Claude Opus 5.5, medium (Claude Code default)

48.2

52.5%

$2.45

GPT-6.1 Sol, medium

46.4

48.0%

$0.36

GPT-6.1 Terra, medium

38.2

32.3%

$0.17

Claude Sonnet 5.5, medium

30.8

29.8%

$0.78

Read the table by cost, not by row. At matched medium effort, Opus 5.5 leads GPT-6.1 Sol by 1.9 points on the index and 4.5 on Terminal-Bench, and costs 6.8 times as much per task. At max effort the index gap widens to 4.5 points, at 7.9 times the cost.

Fable 5.2 now sits at the top, and it pays for the spot. At max effort it scores 64.6, 10.0 points above GPT-6.1 Sol at max, for 20.9 times the cost per task. High effort is the better buy: 61.8 for $9.08 a task, above Opus 5.5 at max (59.1 for $10.04). At medium, the effort Claude Code uses unless you change it, Fable 5.2 scores 56.4 for $3.80, still above Sol’s best.

The gains come from the rest of the index, not from terminal coding. Fable 5.2’s best Terminal-Bench 4.0 score here is 61.6% at xhigh, 2.0 points above Opus 5.5 at max. Anthropic’s system card shows the same pattern in Claude Code: 67.6% for Fable 5.2 at max against 66.4% for Opus 5.5 at xhigh, inside its own error bars.

One ranking flipped with the v5 index. GPT-6.1 Sol at max effort now scores above Opus 5.5 at high effort (54.6 vs 51.8) for 37% of the cost per task. To beat Sol’s ceiling with Opus 5.5, you need xhigh or max, at 4.8 to 7.9 times Sol’s cost per task. Fable 5.2 clears it from medium effort, at 3.0 times.

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 Sol’s 13,500, about 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.

Terra needs its higher settings to compete on code. At max effort it scores 51.3, above Sol at medium, for $0.96 a task. At medium it drops to 38.2.

The same-price matchup still favors OpenAI. Sonnet 5.5 and GPT-6.1 Sol cost the same per token, but at medium effort Sol scores 15.5 points higher on the index for less than half the cost per task. Sonnet 5.5 only pulls ahead at max effort, where it posts the best Terminal-Bench score in the table (63.6%) at $10.02 a task.

Our Sonnet vs Opus vs Fable comparison runs all four Claude models through the same three tasks.

Effort matters more for Sol at the low end. Dropping GPT-6.1 Sol from medium to low cuts its Terminal-Bench score from 48.0% to 30.8% to save 20 cents a task, so running Codex at low effort to stretch your limits costs more than it saves.

Where SWE-bench Verified went

SWE-bench Verified no longer separates these models. Top scores had converged within about a point, so Anthropic left it out of its 5.5 and Fable 5.2 launch materials, and OpenAI published none for GPT-6 Astra or GPT-6.1 Sol. Anthropic’s system cards report SWE-bench Pro instead, with Fable 5.2 at 93.0% and Opus 5.5 at 89.9%. Treat any precise SWE-bench Verified figure for these models as unofficial.

Claude Code vs Codex Speed: Which Finishes First?

Codex finishes first, even though Claude streams faster. Artificial Analysis clocks Opus 5.5 at about 103 output tokens per second at medium effort, against about 59 for GPT-6.1 Sol. But Sol writes far fewer tokens, so it completes an average Terminal-Bench 4.0 task in 9.0 minutes against 12.3 for Opus 5.5.

The pattern holds at every effort level Artificial Analysis tests, from 12.7 vs 15.9 minutes at high to 32.2 vs 36.7 at max. In the full agent runs, where each tool uses its own harness, Codex with Sol averages 23.7 minutes per task and Claude Code with Opus 5.5 takes 61.0.

Fable 5.2 doesn’t change the order. Anthropic says it generates output up to 30% faster than Fable 5.1, and at medium effort it finishes a Terminal-Bench task in 12.1 minutes, level with Opus 5.5. At high effort it writes far more tokens and takes 28.5 minutes.

Both companies sell a way out. Anthropic’s fast mode runs Opus 5.5 at $8/$40 per million tokens and left research preview in October. Fable 5.2 has one too, up to 2.5 times faster, at $16/$80. OpenAI’s Ultrafast tier, which in Codex needs Pro $500 or an eligible Enterprise or Edu plan, draws usage at 8x the standard rate.

Pricing and Token Efficiency

The price lists no longer line up at the top. Fable 5.2 undercuts GPT-6 Astra by 20% on input and output, and GPT-6.1 Terra, at half of Sol’s price, still has no Claude match. In between, Sonnet 5.5 matches Sol, and Haiku 5.5 matches Luna for prompts under 100,000 tokens.

Model

Input / MTok

Cached input

Output / MTok

GPT-6 Astra

$10

$1.00

$50

Claude Fable 5.2

$8

$0.20

$40

Claude Opus 5.5

$4

$0.20

$20

GPT-6.1 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.

Anthropic’s cache advantage at the top grew: Fable 5.2 reads cache at $0.20 against Astra’s $1.00. Full rates are on Anthropic’s pricing page and OpenAI’s API pricing page.

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.1 Sol to $4/$15. 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.

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.

Subscription plans and usage limits

Tier

Claude Code

Codex

Free

Not included

Free, $0 (GPT-6 Luna)

Entry

Pro, $20/mo ($17 annual)

Go $8/mo, Plus $20/mo

$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

Top

No higher individual tier

Pro $500/mo (most usage, Ultrafast)

Team

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

Business $20/user annual, $25 monthly

Claude Code meters Pro and Max on a rolling five-hour window with a weekly cap on top. Anthropic publishes multipliers, not absolute numbers, so treat any “X hours per week” figure for Claude Code as an estimate. On Codex, the pricing page says Pro plans currently have no five-hour limit, while Plus and Business keep it.

On Plus, OpenAI estimates the five-hour window at 15 to 160 GPT-6.1 Sol messages, 35 to 285 on GPT-6.1 Terra, 5 to 45 on GPT-6 Astra, and 350 to 3,000 on GPT-6 Luna. OpenAI stresses these are estimates, not fixed limits, because tool use, retrieval, and caching all change what a message consumes.

The Pro $200 cut announced at DevDay never happened. OpenAI had planned to drop Pro $200 from 20x to 10x Plus usage, then reversed course on October 29 and doubled the Codex allowance on Pro $100 and Pro $500 instead, The Decoder reported. OpenAI’s pricing page doesn’t list the new multipliers.

Two more details change the math. Starting in December, ChatGPT and Codex share one token pool on Plus, Pro, and Business, so heavy coding will eat into chat. And the API credits bundled with Claude Max ($100 a month) and Ultra ($200) can’t be used in Claude Code or the Claude apps.

Anthropic pools usage across claude.ai, Claude Code, and the desktop app, so there’s no separate Claude Code allowance. Codex bills in token-based credits, and Plus and Pro users can buy more instead of upgrading. Codex also accepts plain API keys, but that gives up cloud features such as GitHub code review.

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 runs GPT-6.1 Sol by default, with Terra, Astra, and Luna available, inside a five-hour window OpenAI estimates at 15 to 160 Sol messages. Claude Pro runs Opus 5.5 by default, with Sonnet 5.5 and Haiku 5.5 one switch away, inside a five-hour window Anthropic doesn’t quantify. Fable 5.2 is billed to usage credits on Pro.

Cost per task is the best available proxy for how far an allowance stretches, and on Artificial Analysis’s runs Sol at medium effort costs less than a sixth as much per task as Opus 5.5 at medium. Claude Pro is the better $20 plan when the work is hard enough that Opus 5.5’s higher ceiling saves you rework.

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 up to half your weekly limit. Codex Pro $100 has no five-hour limit at all, and since October 29 it gets double its previous Codex allowance.

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. Above that, only OpenAI sells a $500 individual tier, and it’s the only Pro plan with Ultrafast.

Prompt caching and context economics

Cache reads are where the real money is on long agent sessions. GPT-6.1 Sol and Sonnet 5.5 both read cache at $0.10 per million tokens, half of Opus 5.5’s $0.20, and Terra reads at $0.05. Cache writes follow the same pattern: $2.50 on Sol and Sonnet 5.5, $1.25 on Terra, $5 on Opus 5.5, and $10 on Fable 5.2 for a five-minute entry.

In Codex itself, GPT-6.1 Sol uses a default context window of 500,000 tokens rather than the full 1.05M the API allows, per OpenAI’s Codex model docs.

Both take 50% off batch work. On the API, OpenAI charges 2x for fast mode and 6x for Ultrafast, which puts fast GPT-6.1 Sol at $4/$20, the same as standard Opus 5.5. On Claude plans, fast mode on Opus 5.5 or Fable 5.2 draws from usage credits rather than plan limits.

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 with Opus 5.5 leads both independent agent leaderboards, and Fable 5.2 is one /model switch away for the hardest problems.

  • You work with data that cannot leave your machine.

  • You want programmable hooks, skills, and nested subagents for custom governance.

  • Your API sessions routinely run past 272K tokens, where OpenAI starts charging 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 Sol runs agent tasks for under a seventh of the cost, in well under half the time.

  • You want automated pull request review and security passes in GitHub.

  • You want no five-hour cap below $200, or Ultrafast output on Pro $500.

  • You want to start free or at $8/mo.

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 now 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 with its own rules. It needs a backend with authentication and file storage, a signed release build, an App Store Connect or Play Console listing, screenshots at the right sizes, and a review process that rejects submissions for reasons unrelated to code quality. A coding agent hands you a repository. It does not hand you 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, no API keys to rotate, and no developer console to learn before the first build runs.

  • 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 are available on the higher plans, so the codebase stays yours to hand to Claude Code or Codex later.

  • Submission is part of the job. On plans with native deployment, the agent handles the build, the signing, and the store submission rather than leaving you a zip file.

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. If you want the longer version of what that last step covers, we wrote up what CatDoes does end to end.

Claude Code vs Codex FAQ

Which is better for beginners, Claude Code or Codex?

Neither, if the goal is to ship a working app without reading code. Both tools assume a developer is reviewing the output. Codex is easier to try because it has a free tier, but that lowers the cost of entry, not the skill requirement. If you have never written code, use an AI-native app builder that handles model routing, backend, and deployment for you, then move to Claude Code or Codex once you need to customize.

Should I use Claude Opus 5.5 or GPT-6.1 Sol?

It depends on how hard you run each one. On Artificial Analysis’s independent runs, Opus 5.5 at Claude Code’s default medium effort scores 48.2 on the Intelligence Index for $2.45 a task, while GPT-6.1 Sol at max effort scores 54.6 for $1.27. Sol stops there, but Opus 5.5 keeps climbing to 57.4 at xhigh and 59.1 at max, at $6.05 and $10.04 a task. For frontier work, Claude Fable 5.2 costs $8/$40 and GPT-6 Astra $10/$50.

What is Claude Fable 5.2, and should I use it in Claude Code?

Claude Fable 5.2 is Anthropic’s strongest generally available model, released November 9, 2026 at $8/$40 per million tokens. It tops Artificial Analysis’s Intelligence Index at 64.6 on max effort. In Claude Code v2.1.321 and later, pick it with /model fable, since Opus 5.5 stays the default. Max and Ultra include it for up to half the weekly limit, and Pro pays with usage credits. Save it for the hardest tasks: at high effort it beats Opus 5.5’s best score for less per task. Claude Mythos 5.2 is the same model with fewer safeguards, for verified organizations only.

What is GPT-6.1 Terra, and is it good for coding?

GPT-6.1 Terra is OpenAI’s newest model, released October 26, 2026 at $1 per million input tokens and $5 output, half the price of GPT-6.1 Sol. OpenAI built it for computer use, visual reasoning, and writing. It can code: Codex with Terra scores 48 on Artificial Analysis’s Coding Agent Index against 54 for Codex with Sol. The saving is small, though, at $1.24 a task against $1.50, because Terra used about three times as many tokens per task.

Is Codex cheaper than Claude Code?

Usually, yes. Both start at $20 a month for a full coding plan, but Codex adds a free tier and an $8 Go plan, and its default model, GPT-6.1 Sol, costs half as much per token as Claude Code’s default, Opus 5.5. In Artificial Analysis’s agent runs, Codex with Sol spent $1.50 per task against $11.42 for Claude Code with Opus 5.5. Switching Claude Code to Sonnet 5.5 closes the per-token gap, but not the per-task one.

Which has higher usage limits, Claude Code or Codex?

Neither publishes hard numbers, so there is no exact answer. OpenAI gives estimates: on Plus, roughly 15 to 160 GPT-6.1 Sol messages per five-hour window, and every Pro tier has no five-hour limit, only a weekly one. Anthropic publishes multipliers: Max gives 5x Pro usage, and Ultra gives 10x Pro per week with no five-hour limit for verified accounts. OpenAI also doubled Codex allowances on Pro $100 and Pro $500 on October 29.

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 the outputs from conflicting. Claude Code v2.1.277 and later reads AGENTS.md when a project has no CLAUDE.md, so one file can brief both agents.

Does Claude Code work offline?

No. Claude Code runs your code locally but sends inference requests to Anthropic's API, so it needs an internet connection. What stays local is your codebase, filesystem, and command execution.

What is the cheapest way to try both?

Codex has a free tier, so the floor is $20/mo: Claude Pro plus Codex Free, which runs GPT-6 Luna. Claude Pro drops to $17/mo equivalent if you pay annually. To try Codex’s default model, GPT-6.1 Sol, or the new Terra, you need Plus at $20, so a fuller test of both comes to $40/mo. On the API side, Claude Haiku 5.5 and GPT-6 Luna both cost $0.10/$0.50, which makes exploratory testing nearly free on either.

Do Claude Code or Codex replace CatDoes?

Not for mobile app builders. CatDoes handles the full stack: native iOS and Android output, CatDoes Cloud (database, auth, storage, edge functions, realtime), App Store and Google Play submission, and a checkpoint system tuned for iteration. Claude Code and Codex are general-purpose coding tools that assume you have already set up all of that yourself.

Pick Your Agent, or Let One Pick for You

Claude Code vs Codex in November 2026 comes down to ceiling versus throughput. Claude Code with Opus 5.5 posts the highest scores on both independent agent leaderboards, and Fable 5.2 raises that ceiling again at a higher price per task. Codex with GPT-6.1 Sol lands a few points lower, finishes in less than half the time, and costs a fraction as much per task, and GPT-6.1 Terra adds a cheaper tier below it.

The plans have converged too. Both sell $20, $100, and $200 tiers, both now offer a $200 plan without a five-hour limit, and both read AGENTS.md.

Running both is still the answer for most working developers.

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. You get top-tier quality where it matters without burning premium credits on a button color change.

Writer

Nafis Amiri

Co-Founder of CatDoes