CLClaude Lessons Try the free lessons

Claude Lessons / Guides

Claude Code Token Usage and Costs: See Where It Goes and Cut It

Most advice about Claude Code costs is written for engineering directors buying dashboards. This guide is for the person actually hitting the limit: why usage climbs faster than your activity suggests, the built-in commands that show exactly where it's going (/usage, /context, /insights), and twelve habits that cut the burn — none of which involve using the tool less. The punchline up front: tokens scale with context, so almost everything here is context hygiene wearing a different hat.

Illustration of the context packet Claude Code sends with every request

The two ways you pay

Everything about managing Claude Code spend starts with knowing which meter you're on, because they fail differently:

BillingWhat you payWhat runs out
Pro plan$20/month flatUsage windows: a 5-hour rolling session window plus a weekly cap
Max plans$100 or $200/month flatSame windows, roughly 5x / 20x Pro's allowance
Team / EnterprisePer seatPer-seat allowance (same window structure), optional usage credits beyond it
API / Console (and Bedrock, Vertex, Foundry)Per tokenYour budget — nothing stops you but spend limits you set

Three things about subscription limits that surprise almost everyone:

On API billing, the anchors: current list rates run about $5 input / $25 output per million tokens for the Opus tier, $3 / $15 for Sonnet, and $1 / $5 for Haiku (mid-2026 rates; cache reads are far cheaper). Anthropic reports an average of around $13 per developer per active day — roughly $150–250 per month — with 90% of users under $30 per active day. If your numbers are wildly above that, the causes are almost always in the next section.

Why usage climbs faster than you expect

The core mechanic most people miss: Claude Code re-sends the conversation with every request. Each message you send — and each batch of tool results Claude processes — carries the accumulated history with it. Prompt caching makes those re-reads cheap (cached tokens bill at a fraction of the input rate), but cheap times every-single-turn still adds up, and it means a one-line question in a session that's been open all day draws usage for the whole day's context.

Four multipliers on top of that:

See where it goes: /usage, /context, /insights

Before optimizing anything, look at the data — Claude Code ships three views of it:

CommandWhat it showsUse it when
/usageSession token totals and local cost estimate, plan usage bars, and an attribution breakdown: which skills, subagents, plugins, and MCP servers consumed recent usage, plus flags for behaviors like long context or cache misses when one drives 10%+ of usageYou want to know what's eating the allowance (toggle between 24h and 7 days)
/contextWhat's occupying the context window right now — tool definitions, CLAUDE.md, MCP servers, conversation historyDeciding whether to /clear, /compact, or disable something before continuing
/insightsAn HTML report on how you work: what you work on, friction points, and suggestions — written to ~/.claude/usage-data/report.htmlPeriodic review of your habits, not day-to-day monitoring

Two additions worth setting up once: configure your status line to display context usage continuously, so you feel the window filling instead of discovering it at the auto-compact warning; and if you're the one accountable for a team's spend, the Console dashboard, org spend reports, and OpenTelemetry export cover per-user reporting — that side is covered in our Claude Code for teams guide.

The attribution breakdown in /usage deserves special mention because it ends arguments. Before blaming the model, check whether one MCP server, one over-eager skill, or one subagent pattern is quietly consuming a third of your usage — it's common, and it's a config fix, not a discipline problem.

Token management is context management

Claude Lessons has a free interactive lesson on managing the context window — practice the clear/compact/delegate decisions that keep sessions sharp and cheap, in a simulated Claude Code workspace.

Start the free interactive lessons

What actually burns tokens, ranked

Roughly in order of how often each one is the real culprit:

12 ways to cut usage without getting worse results

If you keep hitting plan limits

In rough order of what to try:

Common mistakes

FAQ

How much does Claude Code cost per developer?

On API billing, Anthropic reports an average of around $13 per developer per active day — roughly $150–250 per developer per month — with 90% of users staying under $30 per active day. Individuals on Pro ($20/mo) or Max ($100 or $200/mo) plans pay a flat subscription instead and manage usage limits rather than dollars, with optional usage credits to keep working past a limit.

Does Claude Code use tokens when I'm not typing?

A little, and sometimes a lot. Background housekeeping (like summarizing conversations for --resume) typically costs under $0.04 per session. The bigger surprises are scheduled tasks firing on their interval, cross-session messages arriving as new turns, and agent teammates left running — each of those sends your full context and draws real usage while you're away from the keyboard.

Do Claude Code limits reset if I switch models?

No. The 5-hour session window and the weekly window are shared across models, so switching with /model doesn't restore access once you've hit them. The one nuance: a model-specific Opus limit can stop Opus while cheaper models keep working. Usage is also shared across surfaces — claude.ai chat, Claude Desktop, and Claude Code all draw from the same pool.

What's the difference between /usage and /context?

/usage looks backward: session token totals, plan usage bars, and an attribution breakdown showing which skills, subagents, plugins, and MCP servers consumed your recent usage. /context looks at right now: what's occupying the context window this moment — tool definitions, CLAUDE.md, conversation history — which is what you check before deciding to /clear or /compact.

Is the Pro plan enough for Claude Code?

For evaluation and part-time use, usually yes — a few focused sessions a day fit inside Pro's windows, especially on Sonnet with good context hygiene. Daily heavy use, Opus-heavy work, or parallel agents will hit Pro's 5-hour and weekly windows regularly; that's what the Max tiers (roughly 5x and 20x Pro's usage) exist for. Hitting limits more than once or twice a week is the practical upgrade signal.

Why did my usage spike after a break?

Cache expiry. Claude Code re-sends the whole conversation with every request, normally at cheap cached rates. The cache lasts about an hour on a subscription (five minutes on API billing or while drawing on usage credits) — so your first message after lunch reprocesses the entire accumulated context at full price. Long-lived sessions make this worse; clearing between tasks makes it irrelevant.

Cheap sessions are a skill, not a plan tier

Claude Lessons has 38 free interactive lessons — managing the context window, delegating to subagents, planning before code — the exact habits that cut token burn, practiced hands-on in a simulated Claude Code workspace.

Practice hands-on in the free interactive lessons