Short answer: Run /usage in Claude Code to see the session's tokens, its estimated cost and your plan's limits, and /context to see what fills the context window.1 Most tokens go to re-reading the conversation on every request, so /clear between tasks, a Sonnet or Haiku default and a short CLAUDE.md cut usage most.1 In our own review agent, trimming the prompt by 61% saved only 2–5%, while caching cut a planner's cost by 46%.6
How do I see token usage in Claude Code?
You see token usage in Claude Code with /usage, which shows the session's input, output and cached tokens, a local cost estimate at list price, a prompt-cache line, and for subscribers how much of the five-hour and weekly limits is left.1
| Where | What it shows |
|---|---|
/usage | Session tokens and estimated cost, plan limit bars, prompt cache hit line; press d or w for 24 hours or 7 days, f to fix a flagged cause |
/context | What fills the context window: system prompt, tools, MCP servers, CLAUDE.md, messages |
/status | Model, account and connection |
| Status line | Any field you choose, such as cost.total_cost_usd and context_window.used_percentage, after every turn |
/insights | A report on your sessions and habits |
| Claude Console | API spend per workspace, with workspace spend limits |
The status line runs locally and uses no tokens; its cost field is an estimate computed at list price.3 For a team, Claude Code can export per-user usage through OpenTelemetry.1
What uses the most tokens in Claude Code?
The conversation itself uses the most tokens in Claude Code, because every request sends the whole history again; when the prompt cache is warm that history bills at the cheap cache-read rate, and after a break longer than the cache lifetime it bills at full price.12
- Long sessions: a session never cleared keeps growing, and each turn re-reads all of it.1
- Opus as the default: the same tokens cost twice as much as on Sonnet.14
- Agent teams: about 7x the tokens of a normal session when teammates run in plan mode.1
- Subagents and scheduled tasks: each runs its own requests.1
- Big tool output: a full test log or
git difflands in context and is re-read every turn.1 - Model and settings switches: switching models, connecting an MCP server or enabling a plugin mid-task forces one uncached turn.2
- Compaction:
/compactis itself a large request.1
How do I reduce token usage in Claude Code?
You reduce token usage in Claude Code by keeping context small and the model cheap: clear between tasks, default to Sonnet, give subagents Haiku, and stop large output and unused tools from entering the context.1
- Run
/clearbetween tasks. It costs nothing; use/renamefirst if you want to/resumelater.1 - Compact with instructions:
/compact keep the API design decisionskeeps what matters when you can't clear.1 - Default to Sonnet:
/model sonnet, and keep Opus for architecture. See changing the model.15 - Give subagents Haiku:
model: haikuin the subagent's frontmatter.1 - Lower effort for routine work with
/effort low; thinking bills as output.5 - Keep CLAUDE.md under about 200 lines and move rules for one area into skills that load only when needed.1
- Turn off MCP servers you aren't using with
/mcp, and prefer CLI tools such asgh, which cost tokens only when called.1 - Filter output with a hook, for example keep only the last 100 lines of a test run.1
- Use plan mode first on big changes, so Claude doesn't build the wrong thing and redo it.7
- Point at files with
@pathinstead of pasting them, and send one message with all the details instead of several.7 - Pick the model at the start of a task; a mid-task switch re-reads everything uncached.2
- Don't leave a big session idle past the cache lifetime; the next turn after a long break re-reads everything at full price.2
- Use Sonnet for agent-team teammates and keep teams small.1
- Keep dependencies and build output out of reach with permission deny rules, so Claude doesn't read them.7
- Run cheaper models for bulk work through DeepSeek or a GLM coding plan.
Does /clear or /compact save more tokens?
/clear saves more tokens: it starts an empty context at no cost, while /compact sends the whole conversation to be summarized, which is itself a large request.1 Compact when the next step still needs the earlier work; clear when it doesn't.
How much does each token cost in Claude Code?
Each token costs what the model charges: on the API, Opus 5.5 is $4 per million input tokens, $0.20 per million cached tokens and $20 per million output tokens, and Sonnet 5.5 is half that.4
| Model | Input | Cache read | Output |
|---|---|---|---|
| Opus 5.5 | $4.00 | $0.20 | $20.00 |
| Sonnet 5.5 | $2.00 | $0.10 | $10.00 |
| Haiku 5.5 (prompt up to 100K) | $0.10 | $0.01 | $0.50 |
A cached token on Opus costs a twentieth of a fresh one, so the cache hit rate matters more than the size of the prompt.4 Anthropic's enterprise average is about $13 per developer per active day.1 Our Claude Code pricing guide compares that with the flat plans.
What did cutting tokens save in our own coding agent?
In our own PR-review agent, cutting tokens from the prompt saved little, while caching and model choice saved a lot; 82% of its input tokens already came from cache.9 These runs are from Winding AI's IonWarp review agent, logged between September and November 2026.6
| Change | Effect on tokens or time | Effect on cost or quality |
|---|---|---|
| Stopped loading the reviewed repo's AGENTS.md | First-turn tokens −61% | Total cost −2% to −5% |
| Capped turns per reviewer | Review time −49% | No loss in findings |
| Cut the cap from 32 turns to 16 | Fewer turns | Significant findings fell to 0.72x, so we didn't ship it |
| Re-sent the planner's prefix so it cached | 166,519 of 223,554 tokens cached | Cost per call −46% ($0.0276 to $0.0148) |
| Security review moved from GPT-5.6 Terra to DeepSeek V4 Pro | Same task | $0.166 to $0.011 per run |
The lesson for Claude Code: a smaller CLAUDE.md helps, but a warm cache and a cheaper model do more, and capping work too hard costs quality.
Why does Claude Code hit my limit so fast?
Claude Code hits a plan's limit fast because the limit counts every token each request re-reads, it is shared with Claude chat, and it resets on a rolling five-hour window and a weekly one.1 Check /usage for the cause; if you hit an Opus limit, switching to Sonnet with /model keeps you working.1
Does saving tokens lower my bill on a subscription?
Saving tokens on a subscription doesn't lower the monthly price; it leaves more of the five-hour and weekly limits for later work.1 On the API, fewer tokens is a smaller bill. Tokens, cost, usage limits and the subscription price are four different measures, so check which one you are trying to move.8
Sources
- Claude Code docs: manage costs effectively · checked
- Claude Code docs: how Claude Code uses prompt caching · checked
- Claude Code docs: status line · checked
- Claude API docs: pricing · checked
- Claude Code docs: model configuration · checked
- Winding AI: IonWarp review-agent cost log, September to November 2026 (our own runs, internal) · checked
- Henrique Siebert Domareski: Claude Code, how to reduce token consumption · checked
- Halv: how to save tokens in Claude Code · checked
- Griffin: prompt caching costs, with our own cache hit rate · checked
FAQ
How do I check token usage in Claude Code?
Run /usage for the session's tokens, estimated cost and plan limits, /context for what fills the context window, and add cost.total_cost_usd to your status line to see cost after every turn.
Does Claude Code count cached tokens?
Yes. Cached tokens count toward usage and cost, but on the API they bill at the cache-read rate: $0.20 per million on Opus 5.5 against $4 for fresh input. /usage shows a prompt cache line.
Does /compact use tokens?
Yes. Compaction sends the conversation to be summarized, which is a large request. /clear costs nothing.
Why is Claude Code using so many tokens?
Usually a long session that was never cleared, Opus left as the default, large tool output in context, or agent teams, which use about 7x the tokens of a normal session.
Is there a token limit per session?
The context window is the limit for one session; Claude Code compacts automatically as it nears it. Plans also have five-hour and weekly usage limits shared with Claude chat.
See token spend per feature.
Griffin does for the AI in your app what /usage does for Claude Code: tokens and dollars per feature, every day. Watching is free.