Download

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.

Cost per task on each model. Commit message: $0.082 on Opus 5.5, $0.034 on Sonnet 5.5, $0.0024 on Haiku 5.5; rename across files: $0.097, $0.038, $0.0037; tests for one module: $0.125, $0.062, $0.0055; fix a failing test: $0.078, $0.040, $0.0032; multi-file refactor: $0.168, $0.070, $0.0072. Mean of 3 runs per task and model at list prices, October 28, 2026. Cost per task on each model. Commit message: $0.082 on Opus 5.5, $0.034 on Sonnet 5.5, $0.0024 on Haiku 5.5; rename across files: $0.097, $0.038, $0.0037; tests for one module: $0.125, $0.062, $0.0055; fix a failing test: $0.078, $0.040, $0.0032; multi-file refactor: $0.168, $0.070, $0.0072. Mean of 3 runs per task and model at list prices, October 28, 2026.
Link to this finding
Embed code
<figure><a href="https://auto.sh/research#claude-code-cost-per-task"><img src="https://auto.sh/blog/images/claude-code-task-costs-measured/2-cost-per-task.png" alt="Cost per task on each model. Commit message: $0.082 on Opus 5.5, $0.034 on Sonnet 5.5, $0.0024 on Haiku 5.5; rename across files: $0.097, $0.038, $0.0037; tests for one module: $0.125, $0.062, $0.0055; fix a failing test: $0.078, $0.040, $0.0032; multi-file refactor: $0.168, $0.070, $0.0072. Mean of 3 runs per task and model at list prices, October 28, 2026." width="960" height="598" style="max-width:100%;height:auto"></a><figcaption>Chart: <a href="https://auto.sh/research#claude-code-cost-per-task">Auto, Claude Code task costs by model, October 2026</a> (CC BY 4.0)</figcaption></figure>

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.

What $1 buys in Claude Code: 9 tasks on Claude Opus 5.5, 20 on Claude Sonnet 5.5 and 228 on Claude Haiku 5.5. Average of 45 runs of 5 everyday tasks at Anthropic's list prices, October 28, 2026. What $1 buys in Claude Code: 9 tasks on Claude Opus 5.5, 20 on Claude Sonnet 5.5 and 228 on Claude Haiku 5.5. Average of 45 runs of 5 everyday tasks at Anthropic's list prices, October 28, 2026.
Link to this finding
Embed code
<figure><a href="https://auto.sh/research#claude-code-tasks-per-dollar"><img src="https://auto.sh/blog/images/claude-code-task-costs-measured/1-what-a-dollar-buys.png" alt="What $1 buys in Claude Code: 9 tasks on Claude Opus 5.5, 20 on Claude Sonnet 5.5 and 228 on Claude Haiku 5.5. Average of 45 runs of 5 everyday tasks at Anthropic's list prices, October 28, 2026." width="960" height="477" style="max-width:100%;height:auto"></a><figcaption>Chart: <a href="https://auto.sh/research#claude-code-tasks-per-dollar">Auto, Claude Code task costs by model, October 2026</a> (CC BY 4.0)</figcaption></figure>

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 as a multiple of Claude Haiku 5.5: 40 times the price per token, 25 times the cost per task. 15 runs each, October 28, 2026. Claude Opus 5.5 as a multiple of Claude Haiku 5.5: 40 times the price per token, 25 times the cost per task. 15 runs each, October 28, 2026.
Link to this finding
Embed code
<figure><a href="https://auto.sh/research#opus-haiku-price-gap"><img src="https://auto.sh/blog/images/claude-code-task-costs-measured/3-price-gap.png" alt="Claude Opus 5.5 as a multiple of Claude Haiku 5.5: 40 times the price per token, 25 times the cost per task. 15 runs each, October 28, 2026." width="960" height="426" style="max-width:100%;height:auto"></a><figcaption>Chart: <a href="https://auto.sh/research#opus-haiku-price-gap">Auto, Claude Code task costs by model, October 2026</a> (CC BY 4.0)</figcaption></figure>

Prompt cache writes in Claude Code

Writing the prompt cache was the largest part of Claude Code's cost on every model Auto measured in October 2026: 63% of the list-price bill on Claude Opus 5.5, 66% on Claude Sonnet 5.5 and 51% on Claude Haiku 5.5.

Where a commit message's money goes. Opus 5.5: cache writes 69%, output 17%, cache reads 14% of $0.082; Sonnet 5.5: cache writes 76%, output 11%, cache reads 13% of $0.034; Haiku 5.5: cache writes 66%, output 14%, cache reads 20% of $0.0024. October 28, 2026. Where a commit message's money goes. Opus 5.5: cache writes 69%, output 17%, cache reads 14% of $0.082; Sonnet 5.5: cache writes 76%, output 11%, cache reads 13% of $0.034; Haiku 5.5: cache writes 66%, output 14%, cache reads 20% of $0.0024. October 28, 2026.
Link to this finding
Embed code
<figure><a href="https://auto.sh/research#prompt-cache-share"><img src="https://auto.sh/blog/images/claude-code-task-costs-measured/4-where-the-money-goes.png" alt="Where a commit message's money goes. Opus 5.5: cache writes 69%, output 17%, cache reads 14% of $0.082; Sonnet 5.5: cache writes 76%, output 11%, cache reads 13% of $0.034; Haiku 5.5: cache writes 66%, output 14%, cache reads 20% of $0.0024. October 28, 2026." width="960" height="485" style="max-width:100%;height:auto"></a><figcaption>Chart: <a href="https://auto.sh/research#prompt-cache-share">Auto, Claude Code task costs by model, October 2026</a> (CC BY 4.0)</figcaption></figure>

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.

Link to this finding

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.