Requesty
Back|NOV '26AI MODELS / MODEL COMPARISONS
6 MIN READ|

Claude Code vs Codex: cost and model performance

Last updated

In November 2026, Claude Pro costs $20 per month, or $17 per month billed annually, while Codex is available on ChatGPT Free and the $20 Plus plan. On model performance, our shared-agent benchmark gives Claude Opus 5.5 a 92.2% solve rate at $1.01 per solve, against 86.8% at $0.30 per solve for GPT-6.1 Sol. Those are API list-price benchmark costs, not subscription costs.

Sources: Claude pricing, Codex plans, Codex pricing and Requesty's coding benchmark.

Which models solve more tasks?

Our coding benchmark, updated October 29, 2026, puts 129 private Go backend tasks through the same agent, with bash, read, edit and write tools. A task counts as solved when every hidden test passes and the existing tests still pass. Each model gets an 80-turn budget, and cost per task includes retries.

ModelTasks solvedCost per taskCost per solveAverage turns
Claude Opus 5.592.2%$0.93$1.0118.6
Claude Sonnet 5.587.6%$0.52$0.5913.0
GPT-6.1 Sol86.8%$0.26$0.3028.3
GPT-6 Astra87.6%$2.11$2.4029.8

Opus solved 5.4 percentage points more tasks than Sol. Sonnet solved 0.8 percentage points more than Sol; at $0.59 per solve, it sits between Sol and Opus on cost in this test.

On the benchmark's 18 extreme-tier tasks, Opus solved 77.8%, while Sol and Sonnet each solved 66.7%. That is a small set of tasks, so test your own difficult work before relying on the gap.

The agent setup is the same across all four rows. Claude Code and Codex have their own tooling and session behavior, so our benchmark compares the models rather than running the two products head to head. For more model results, see our coding model benchmark comparison.

For an in-product comparison, cubic's Bug Bench scored Claude Opus 5.5 inside Claude Code at 1.49 and GPT-6.1 Sol inside Codex at 1.22. A lower relative bug rate is better. This is a separate test from our shared-agent benchmark.

What does that cost per 100 solves?

Assume a workload with the same task mix, solve rates and costs as the benchmark. At the published cost per solve, 100 solved tasks cost 100 x $1.01 = $101 with Opus 5.5 and 100 x $0.30 = $30 with GPT-6.1 Sol, a difference of $101 - $30 = $71.

Sol would also leave more attempts unsolved at the benchmark's observed rate. The calculation uses API list-price benchmark costs, including retries within a task; it is not a Claude or ChatGPT subscription bill. Both model runs had a 100% cache hit rate, so the cost difference may look different on a workload with less cache reuse.

What do the plans cost?

Claude Code comes with paid Claude plans and shares usage limits with Claude chat. Codex is included across ChatGPT plans, including Free and Go, with limits that vary by plan. Sources: Claude pricing and OpenAI's Codex plan guide.

November 2026 planMonthly priceCoding usage
Claude Pro$20, or $17 per month billed annuallyClaude Code shares the plan allowance with Claude chat.
Claude Max$100Anthropic lists 5 times Pro usage every five hours and every week.
Claude Ultra$200Anthropic lists 10 times Pro's weekly usage; verified accounts have no five-hour limit.
ChatGPT FreeFreeCodex is included.
ChatGPT Plus$20OpenAI publishes local message estimates per five-hour period. Codex Cloud is available to eligible Plus and higher-plan accounts.
ChatGPT Pro tiers$100, $200 or $500OpenAI says Pro plans currently have no five-hour limit.

Codex Cloud runs tasks on OpenAI-managed computers and can keep working while your own computer is asleep.

Plan prices and limits come from Claude's pricing page, Anthropic's plan guide and OpenAI's Codex pricing page.

The monthly bill can look different from the plan price. Anthropic reports an average of around $13 per developer per active day and $150 to $250 per developer per month across its enterprise deployments. OpenAI's Codex rate card puts average cost at approximately $100 to $200 per developer per month, depending on the model, concurrent instances, automations and fast mode.

Those are vendor averages across different deployments, not a controlled price comparison. Start with the plan you already have, track how often you hit its limits, and then compare the cost of a higher plan with your expected API usage. For team budgets, see our guide to managing Claude Code, Cursor and Codex costs.

What do Claude Code sessions look like?

Our April 2026 cost note found that Claude Code active users routing through Requesty averaged $108 per month. The median was $23 and P95 was $296: in this sample, half of active users spent $23 or less, while the 95th percentile was $296.

These users chose to route through Requesty, so the sample has selection bias. It is a useful budgeting reference for gateway usage, not the price of a Claude subscription.

The session-depth note counted a median of 16 calls per Claude Code session and 209 at P95 across 594 traces. Trace coverage for Claude Code fell to about 7% in April, so those figures describe a subset of sessions.

Our finish-reason note found that 73% of Claude Code calls finished with tool_calls, while 20% finished with stop. A tool_calls finish means the model returned a tool call; it does not tell you whether the user's coding task was solved.

What can interrupt a session?

Local Codex uses an OS-enforced sandbox limited to the current workspace, alongside an approval policy. Network access is off by default.

In our coding agent data, 5 to 7% of Claude Code API calls returned a non-200 status in April 2026. Model server errors are a separate measure: in our production rankings for September 7 to November 9, 2026, both Claude Opus 5.5 and GPT-6.1 Sol had a 0.1% 5xx error rate. These rows cover model traffic across Requesty.

Which should you choose?

Verdict

Choose Claude Code with Opus 5.5 if the higher solve rate in our shared-agent Go benchmark is worth testing against your own harder work. Try Codex with GPT-6.1 Sol if cost per solve is your starting point: Sol cost $0.30 per solve against $1.01 for Opus in our benchmark, and had a lower relative bug rate in cubic's in-product test. If you already pay for Claude or ChatGPT, start with the tool in your existing plan and check its limits against a week of your own work.

For per-token billing and routing controls, both tools can connect through a gateway. Claude Code uses ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN for a gateway connection. With a gateway credential active, requests bill through the gateway and do not draw on the Claude subscription allowance.

For Codex, follow Requesty's Codex guide to configure Requesty as the model provider. Requesty supports the Responses API and provides routing controls, including fallback policies and load balancing. Its pricing is 5% on top of model costs.

Our coding tools comparison also covers Cursor and Aider. Before choosing, run your own tasks through the tools you are considering.

Before choosing a coding agent

0 of 3 done

Frequently asked questions
Which costs less, Claude Code or Codex?
In November 2026, Claude Pro costs $20 on monthly billing or $17 per month billed annually. ChatGPT Plus costs $20 per month, and Codex is also available on ChatGPT Free. Usage limits vary by plan.
How did Claude Opus 5.5 compare with GPT-6.1 Sol on coding tasks?
In Requesty's benchmark of 129 private Go backend tasks, Claude Opus 5.5 solved 92.2% at $1.01 per solve, while GPT-6.1 Sol solved 86.8% at $0.30 per solve. Both models ran in the same shared agent. The costs are API list-price benchmark costs, not subscription costs.
How much do Claude Code users spend per month?
Claude Code active users routing through Requesty averaged $108 per month in April 2026, with a median of $23 and a P95 of $296. These figures describe Requesty users and are subject to selection bias.
Does Claude Code share usage limits with Claude chat?
Yes. Claude Code is included in paid Claude plans and shares the plan's usage limits with Claude chat. Pro and Max have five-hour and weekly limits.
Can Claude Code and Codex use Requesty?
Yes. Claude Code can connect through a gateway using ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. Requesty also documents a Codex integration using its Responses API endpoint.
Related reading

Start building with Requesty

One line of code. 600+ models. Full control.

Speak to founders