Auto Research
Auto publishes the costs, elapsed times and pass rates it measured on real coding tasks. The studies below compare Claude models in Claude Code and compare Codex with Claude Code. Each includes its method and raw results. To measure models on your own team's work, Auto builds a free benchmark from the pull requests you already merged.
The findings, charts and data are free to reuse under CC BY 4.0. Credit Auto and link to this page, and every chart has embed code that does both for you.
Claude Code task costs
On October 28, 2026, Auto ran five everyday Claude Code tasks three times each on Claude Opus 5.5, Claude Sonnet 5.5 and Claude Haiku 5.5 in the same Python repository and recorded the tokens and list-price cost of every run. The write-up is what common Claude Code tasks cost, measured on each model, the method is in method.md, and the Claude Code cost calculator turns the results into a monthly estimate. For any other workload, the Claude API cost calculator prices it on every current Claude model with and without prompt caching.
Cost of an average Claude Code task
An average Claude Code task cost $0.110 on Claude Opus 5.5, $0.049 on Claude Sonnet 5.5 and $0.0044 on Claude Haiku 5.5 at Anthropic's list prices, in 45 runs of five everyday tasks that Auto measured on October 28, 2026.
An average Claude Code task cost $0.110 on Claude Opus 5.5, $0.049 on Claude Sonnet 5.5 and $0.0044 on Claude Haiku 5.5 at Anthropic's list prices, in 45 runs of five everyday tasks that Auto measured on October 28, 2026. Source: Auto, "Claude Code task costs by model, October 2026", https://auto.sh/research#claude-code-cost-per-task
Claude Code tasks per dollar
One dollar bought about 9 everyday Claude Code tasks on Claude Opus 5.5, 20 on Claude Sonnet 5.5 and 228 on Claude Haiku 5.5 at Anthropic's list prices in October 2026, and every one of the 45 measured runs passed its automatic check.
One dollar bought about 9 everyday Claude Code tasks on Claude Opus 5.5, 20 on Claude Sonnet 5.5 and 228 on Claude Haiku 5.5 at Anthropic's list prices in October 2026, and every one of the 45 measured runs passed its automatic check. Source: Auto, "Claude Code task costs by model, October 2026", https://auto.sh/research#claude-code-tasks-per-dollar
Price per token against cost per task
Claude Opus 5.5's input, output and cache-write prices are 40 times Claude Haiku 5.5's, but an everyday Claude Code task cost 25 times as much on Opus 5.5, because Haiku 5.5 took 1.5 times as many turns and wrote 1.7 times as much output to finish the same work.
Claude Opus 5.5's input, output and cache-write prices are 40 times Claude Haiku 5.5's, but an everyday Claude Code task cost 25 times as much on Opus 5.5, because Haiku 5.5 took 1.5 times as many turns and wrote 1.7 times as much output to finish the same work. Source: Auto, "Claude Code task costs by model, October 2026", https://auto.sh/research#opus-haiku-price-gap
Prompt cache length with an API key
With an API key, Claude Code writes the five-minute prompt cache at 1.25 times the input price instead of the one-hour cache at twice the input price, and the same 45 runs would have cost 24% less on Claude Opus 5.5, 25% less on Claude Sonnet 5.5 and 19% less on Claude Haiku 5.5.
With an API key, Claude Code writes the five-minute prompt cache at 1.25 times the input price instead of the one-hour cache at twice the input price, and the same 45 runs would have cost 24% less on Claude Opus 5.5, 25% less on Claude Sonnet 5.5 and 19% less on Claude Haiku 5.5. Source: Auto, "Claude Code task costs by model, October 2026", https://auto.sh/research#claude-code-api-key-cache
Codex vs Claude Code
On November 9, 2026, Auto gave Codex with GPT-6.1 Sol and Claude Code with Claude Opus 5.5 the same five tasks in the Click Python library, three times each. Claude Code passed 15 of 15 runs and Codex passed 14 of 15. The average task cost $0.085 in Codex and $0.252 in Claude Code at API list prices.
See the Codex and Claude Code comparison, the benchmark method and all 30 run records.
Embed a chart
Every chart on this page has embed code under it. Paste the code into
any page or post and the chart loads from autorouter.com with its source
line and a credit link, so the license is met as published. Each chart
also has a dark version at the same address with
-dark before .png.
The charts are drawn at 1,920 pixels wide and stay sharp at any column width. Their source line names the study and its date, so a cropped screenshot still carries its context.
Cite the data
Quote a finding with the button under it, which copies the sentence with its source and link. For a paper or a report, cite the study's post as the source and the data file as the dataset:
@misc{autorouter2026claudecodecosts,
author = {{Auto}},
title = {What common Claude Code tasks cost, measured on each model},
year = {2026},
month = oct,
publisher = {Fractal Works, Inc.},
howpublished = {\url{https://auto.sh/blog/claude-code-task-costs-measured}},
note = {Dataset under CC BY 4.0: https://auto.sh/studies/claude-code-task-costs/results.csv}
}
Datasets
| Study | Measured | Runs | Files |
|---|---|---|---|
| Claude Code task costs by model | October 28, 2026 | 45 | CSV, JSON Lines, method |
| Codex and Claude Code task results | November 9, 2026 | 30 | JSON Lines, method |
The dataset is under CC BY 4.0 and can be fetched from any origin, so a notebook or a chart on another site can read them directly.
Questions
Can I use these numbers and charts in my own article?
Yes. The findings, charts and data are published under CC BY 4.0, so you can quote, embed and adapt them, including commercially, as long as you credit Auto and link to this page or the study's post.
How were the studies run?
Each study's method was written down before the counted runs. The published data includes every counted run. Costs are API list-price estimates based on the tokens used, not what the subscriptions were billed.
Do these results measure AutoRouter's routing?
No. Each tool used a fixed model. The results measure those tools and models on the study tasks.
Who can I ask about the data?
Write to support@autorouter.com with questions about a study, a correction or a request for the raw files in another format.