How do I reduce Claude Code token usage, cost and carbon?

For engineering leads and teams who use Claude Code and want its token use, list-price cost and estimated carbon down. Built on SOMA's own October 2026 usage. Claude Code documentation checked 23 November 2026. Carbon figures are SAEF estimates. Factor version soma-ai-ef-2026.11-dataset-v3.2.0. Factors last updated . Location-based grid averages, not renewable contracts. Estimates from published benchmarks.

Page updated

Part of the SOMA AI Emission Factors cluster.

Short answer

Claude Code's cost and carbon are driven by context that is re-read, not by what you type or what it writes. In SOMA's own October 2026 usage 97% of the tokens were cache reads and 0.3% were output, so the levers that matter act on context and on the model class. Using a smaller model for routine turns, keeping context short and ending sessions sooner moved the estimate most in our scenarios, and lowering reasoning effort moved it very little. In a central scenario that SOMA AI has not carried out, the levers together would come to about 45% lower estimated CO2e and 38.5% lower list-price cost. These are estimates of scenarios, not savings SOMA AI has made.

For API usage see how to reduce both the cost and the emissions of LLM API usage, and for the whole company the company-use version.

Where do the tokens and the carbon go?

SOMA AI, which builds an AI cost and carbon calculator, ran its own October 2026 usage through it. The estimate was 316 kg CO2e across the tools the team exports usage from, with a range of 113 to 481 kg, about 382 kWh and 775 litres of water. Claude Code was 97.7% of the kilograms. Of the 12.4 billion tokens, 97% were cache reads and 0.3% were output. The heavy model class, which here means Claude Fable 5.1, Opus 5 and Opus 5.5, carried about 90% of the kilograms.

The figure uses the global-average grid because the usage export does not say where Claude Code requests are served. The same month on a US East grid comes to about 248 kg by SOMA's factor library, and the percentages below carry over between the two. The method is on the methodology page. The baseline does not include Claude Code on personal machines, team chat use or other providers.

Which levers follow from that?

Each lever below is described in general terms. Where it names a Claude Code feature, the feature is taken from Anthropic's Claude Code cost documentation (checked 23 November 2026), and the documentation is the place to check current behaviour.

  • Use a smaller model for routine turns. The documentation says Sonnet handles most coding tasks well and costs less than Opus, and that you can switch models mid-session with /model or set a default. It also describes choosing a smaller model for a subagent. Whether the smaller model holds quality for your tasks is yours to test, see the routing page.
  • Keep context short. The documentation suggests /clear between unrelated tasks, /compact with instructions on what to keep, a CLAUDE.md of essentials under 200 lines, and moving specialised instructions into skills that load on demand. Because the whole history is re-read on every request, a shorter context lowers every later turn. Note that /compact reads the conversation it summarizes and is itself a large request. When you want a fresh start and not a summary, /clear costs nothing.
  • End long sessions. The documentation lists long context and cache misses among the main reasons usage climbs in a long session, and notes that the first message after a break longer than the cache lifetime reprocesses the whole context. A fresh session after a natural break is a way to cap both.
  • Use fewer and lighter subagents. Delegating verbose work to a subagent keeps its output out of the main conversation, but the documentation states that the subagent's own requests still draw on your usage, and that every subagent sends requests on top of the main conversation. It reports that agent teams use roughly 7 times more tokens than a standard session when teammates run in plan mode. Choose the model per subagent and keep teams small.
  • Lower reasoning effort for simple tasks. Thinking tokens are billed as output tokens, and the documentation points to the effort level and the thinking settings. Thinking cannot be switched off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or the Fable models, so effort is the control there. Output is a tiny share of tokens here, so this lever matters for the bill more than for the carbon estimate. See the reasoning effort page.
  • Look at your own numbers. The documentation describes /usage, which shows session token use and, on subscription plans, a breakdown by skills, subagents and plugins with suggested changes.

In SOMA's analysis caching, batch and region add almost nothing here. The logs already show 97% cache reads, so more caching gives little, and the calculator treats batch and region as not available for these lines.

What would the levers be worth? Scenario estimates

Each row is an estimate of a scenario on SOMA's October 2026 baseline of 316.3 kg CO2e and EUR 4,184 at list price, computed with the savings engine of SOMA AI's AI footprint calculator, the same engine it runs on client usage exports, with list prices as of October 2026 converted at 1 EUR = 1.1193 USD. Routing assumes the moved tokens run on Claude Sonnet 5.5 at its list price and that quality holds. No quality check was done. The percentage ranges are the engine's published assumption ranges, not measurements of SOMA's workload. Rows are alternatives, so do not add them.

One scenario at a time. EUR is per month at list price, kg is CO2e per month, percentages are of the October baseline. Claude Code and the Anthropic API lines together.
ScenarioEUR per month lowerof EUR baselinekg CO2e per month lowerof kg baseline
Route routine turns to a mid-tier model, 30% of heavy-model tokens64115.3%64.120.3%
Route routine turns to a mid-tier model, 50% of heavy-model tokens1,06825.5%106.833.8%
Trim context, 10% fewer input tokens3378.1%30.69.7%
Trim context, 17.5% fewer input tokens59114.1%53.617.0%
Trim context, 25% fewer input tokens84420.2%76.624.2%
Lower reasoning effort, 10% fewer output tokens811.9%1.00.3%
Lower reasoning effort, 17.5% fewer output tokens1423.4%1.80.6%
Lower reasoning effort, 25% fewer output tokens2024.8%2.50.8%

Savings stack less than they add, because the same tokens are shared between levers. The combined cases below come from running the changes together through the factors and capping the euro figure at the spend each draws on.

Combined scenarios, estimates. The range of the kg baseline, 0.36 to 1.52 times the central value, applies to these too.
CaseAssumptionsEUR per month lowerof EUR baselinekg CO2e per month lowerof kg baseline
Conservativeroute 30%, trim context 10%, cut output 10%, caching and batch at the engine's low level99723.8%89.328.2%
Centralroute 50%, trim context 17.5%, cut output 17.5%, caching and batch at the engine's typical level1,61138.5%143.545.4%
Highroute 60%, trim context 25%, cut output 25%, caching and batch at the engine's high level1,99647.7%175.255.4%

Is the euro figure cash?

Not for Claude Code. It ran on a flat subscription, so EUR 3,986 of the EUR 4,184 baseline is the pay-per-token equivalent of the tokens used at list price and not money that left the account. A lower figure means less metered usage, and cash only changes if the lower usage lets you move to a cheaper plan or avoid a usage cap. The Claude Code documentation makes the same distinction, saying that subscribers have usage included in their plan and that the session cost figure is computed from token counts at list price and is not relevant for billing.

Only the Anthropic API lines are pay per token. In October they were EUR 199 at list price, nearly all on one archived key, so the cash relevance of the API scenarios is small.

What does this page not claim?

  • That SOMA has made any of these reductions. They are estimates of scenarios and SOMA has not changed how it works.
  • That any carbon figure is a measurement. They are SAEF estimates with a range of 113 to 481 kg for the baseline.
  • That the euro figures are cash. Claude Code usage is covered by a flat subscription and the figures are list-price equivalents.
  • That a smaller model or lower reasoning effort keeps your quality. No quality check was done for these scenarios.
  • That your workload looks like SOMA's. A team with less context re-reading or different models will see different shares.
  • That the Claude Code features named here behave as described beyond the date checked. Check the documentation, it changes with each release.

Short answers

Why does Claude Code use so many tokens?
Because it re-sends the whole conversation with every request. Claude Code's cost documentation says it sends your full conversation with every request and, with prompt caching, re-reads that history at the cached token rate, so a one-line question in a long session still draws on the whole conversation. In SOMA's own October 2026 usage, 97% of about 12.4 billion tokens were cache reads and 0.3% were output.
What is the biggest lever for cost and carbon?
In SOMA's scenarios, moving routine turns to a mid-tier model and trimming context. Both act on the tokens that dominate, the repeated context, and the heavy model class carried about 90% of the estimated carbon. Lowering reasoning effort changes the bill a little and the carbon estimate very little, because output is a tiny share of the tokens. These are scenario estimates, not results.
Does cutting Claude Code tokens cut my cash bill?
Not on a flat subscription. Claude Code's documentation says subscribers have usage included in their plan and that the session cost figure is not relevant for billing, and it computes that figure from token counts at list price. The euro figures on this page are therefore list-price equivalents. Cash only changes if lower usage lets you move to a cheaper plan or avoid a usage cap, or if you pay per token through the API.
Are these numbers what SOMA saved?
No. SOMA has not changed how it works. Every saving on this page is an estimate of a scenario computed from the October 2026 usage export with SOMA's own savings engine. The baseline is itself an estimate with a range of 113 to 481 kg CO2e.

Keep reading