Last updated: November 22, 2026
TL;DR
Claude Code token usage scales with context: "the more context Claude processes, the more tokens you use," and every request carries the whole conversation (Anthropic's cost docs). So check usage with /usage, see what fills the window with /context, and cut the context, not the work:
- 📊 Read
/usage: the Session block shows tokens and an estimated cost; on a subscription it also shows plan bars and a breakdown of what used them. - 🔍 Read
/context: see what is taking space before you trim anything. - 🧹 Clear between tasks:
/clearcosts nothing; stale context costs tokens on every message. - ⚙️ Match model and effort to the task: Sonnet for most coding, a lower
/effortfor simple work.
Check your token usage
Three places show it, each answering a different question.
/usagefor the session total. Run it and look under Session. It lists total cost, duration and usage by model, split into input, output, cache read and cache write tokens. The dollar figure is computed locally at list price, so it is an estimate. The totals reset when/clearstarts a new session./usagefor your plan, on Pro, Max, Ultra, Team or Enterprise. The same screen shows plan usage bars and a breakdown: usage attributed to skills, subagents, plugins and individual MCP servers, plus recommendations, each with the share of recent usage it applies to, such as25% Trim ~/code/api/CLAUDE.md · 49k tokens per request. Pressdorwto switch between the last 24 hours and the last 7 days.- The status line, continuously. Anthropic's docs suggest configuring your status line to show context usage, so you don't have to ask.
On a subscription, the Session block's cost isn't what you're billed: "Claude Pro, Max, and Ultra subscribers have usage included in their subscription, so the session cost figure isn't relevant for billing purposes." Read the plan bars instead.
Let /usage fix what it can
When the /usage footer shows a hint such as f to fix 2 of 3, pressing f has Claude Code act on the recommendations it can: it runs any suggested /effort command, then asks Claude to show you each other change before making it. Rows that end in run /compact are yours to run. The shortcut needs Claude Code v2.1.305 or later.
Read /context before you trim
/usage tells you how much; /context tells you what. Anthropic's advice for MCP overhead starts there: "Run /context to see what's consuming space." The usual suspects, and what to do about each:
| What fills the window | What to do |
|---|---|
| A long conversation on finished work | /clear before the next unrelated task |
A large CLAUDE.md loaded every session | Keep it under 200 lines; move workflow detail into skills, which load only when invoked |
| MCP servers you aren't using | Disable them in /mcp; prefer CLI tools such as gh where one exists |
| Verbose test runs and logs | Hand them to a subagent, or filter them with a hook |
Our CLAUDE.md context diet covers trimming the memory file in detail.
Why a long session costs more
A session open all day can use far more than its activity suggests. The cost docs give the reason plainly: "Claude Code sends your full conversation with every request," so "a one-line question in a session that has been open all day still draws usage for the whole conversation." Prompt caching keeps that history at the cheaper cached rate, but other things add requests:
- Cache misses. The first message after a break longer than the cache lifetime reprocesses your full context.
- Scheduled tasks. A session-scoped task such as
/loopfires on its interval even while you're idle, sending the full context each time./usagelists the heaviest loops by tokens. - Subagents and teammates. Each sends its own requests, and each active teammate keeps consuming tokens until it exits.
- Compaction itself. "
/compactreads the conversation it summarizes," so compacting a large context is a large request. "When you want a fresh start instead of continuity,/clearcosts nothing."
Our /compact guide covers when compacting is worth it.
Reduce token usage
These are the habits the docs list, in the order they usually pay off:
- Clear between unrelated tasks. Run
/renamefirst so you can find the session,/clear, and/resumelater if you need it back. - Choose the right model. "Sonnet handles most coding tasks well and costs less than Opus." Switch with
/model; for simple subagent tasks, setmodel: haikuin the subagent's configuration. - Lower effort for simple work. Thinking tokens are billed as output tokens. Lower the effort with
/effortfor routine tasks; our effort levels guide covers which level fits which task. Opus 5.5, Sonnet 5.5, Haiku 5.5 and the Fable models always use extended thinking, so effort is the lever there. - Write specific prompts. "Add input validation to the login function in auth.ts" reads far fewer files than "improve this codebase."
- Plan before big changes. Plan mode (Shift+Tab) has Claude propose an approach first, which avoids paying for work in the wrong direction. Press Escape early if it heads off course.
- Offload verbose work. A hook that greps a 10,000-line log for
ERRORcan cut tens of thousands of tokens to hundreds, and a subagent keeps test output out of the main conversation.
For teams on the API, the same page reports an average of "around $13 per developer per active day," with costs "below $30 per active day for 90% of users." Long sessions never cleared and Opus left as the default are the two causes it names for unexpectedly high spend.
Frequently asked questions
How do I check token usage in Claude Code?
Run /usage and look under Session for input, output and cache tokens and an estimated cost. On Pro, Max, Ultra, Team or Enterprise, the same screen shows plan usage bars and a breakdown of what used them. Run /context to see what fills the context window.
Why is my Claude Code token usage so high?
Usually long context. Claude Code sends the full conversation with every request, so a session open all day draws usage for the whole conversation even on a one-line question. Cache misses after breaks, scheduled tasks, subagents and compaction add more.
How do I reduce token usage in Claude Code?
Clear between unrelated tasks, use Sonnet for most coding, lower /effort for simple work, write specific prompts, keep CLAUDE.md under 200 lines, disable unused MCP servers, and send verbose tests and logs to a subagent or a filtering hook.
Does /compact save tokens?
It shrinks later requests, but the compaction itself reads the whole conversation it summarizes, so on a large context it is a large request. When you don't need continuity, /clear costs nothing.
Is the cost in /usage what I pay on a subscription?
No. Pro, Max and Ultra include usage in the subscription, so the session cost figure isn't relevant for billing. Read the plan usage bars on the same screen instead.
Keep the context on disk, not in chat
Most token savings come from a smaller conversation, and the conversation stays small when what matters lives in files Claude can reload. Writing a rule into CLAUDE.md once, instead of repeating it in chat, is the habit behind our guide to compound engineering for Claude Code. For the full picture of what fills the window, see our Claude Code context window guide.
Stop guessing. Score your first workflow.
Score one workflow in about five minutes. Nine questions, a grade, and the specific gap holding it back - no call required.
Related Posts

/compact in Claude Code: when to compact, and what auto-compact keeps
/compact replaces the conversation with a summary so a Claude Code session keeps going. When to run it with a focus, when to /clear instead, what survives compaction, and how to set when auto-compact fires.

Claude Code effort levels: which one for which task
Claude Code has five effort levels, from low to max, and the newest models start at medium. What each level is for, the default on each model, which setting wins when several apply, and how ultrathink raises a single turn.

Claude Code on GitLab: pipelines, merge requests and @claude
Claude Code runs on GitLab as a CI/CD job you add yourself: one job, one masked API key, and Claude opens merge requests from your runners. How to set it up, wire @claude mentions, run it on Bedrock or Google Cloud, and cap what each run can touch and spend.
