Claude Token Tracker

How to make your
tokens go further.

The complete reference for staying within your Claude quota. Works for claude.ai web, Claude Code CLI, the VS Code extension, and the API. Updated for 2026.

TL;DR: the five habits that save the most
How your limits actually work

5-hour rolling window

Resets 5 hours after your first message of a session, not at midnight. Your plan sets the size: Max 5x is roughly 5x Pro, Max 20x roughly 20x. Anthropic has raised these caps several times in 2026, so exact message counts shift.

7-day weekly cap

A secondary ceiling on top of the 5h window. Newer models can also carry their own weekly cap; the tracker shows those as separate rows. Hitting any one of them stops you for that scope.

One shared budget

claude.ai web, Claude Code CLI, and the desktop app all draw from the same usage budget. There is no “switch surface to reset”.

Long chats cost more

Claude re-reads your entire conversation on every reply. Message 50 in a thread costs far more than message 1 in a fresh chat.

Context window: 200K vs 1M

claude.ai web caps each chat’s context (roughly 200K tokens). Claude Code and the API support up to 1M on the newest Opus and Sonnet models. Enterprise plans get larger windows on some models.

Cowork burns fastest

Cowork tasks (file access, multi-step autonomous work) can use 10 to 20x the tokens of a plain chat message. Use regular chat for questions; save Cowork for real tasks.

Claude.ai web: quick wins
Start a new conversation for every new topic.
High impact

Carrying a 40-message conversation into an unrelated question makes every new reply re-read all 40 previous ones. A fresh chat starts at zero cost.

Be specific. Don’t let Claude explore.
High impact

“Fix the bug in src/auth/validate.ts line 42” is up to 10x cheaper than “Fix the authentication bug”, which sends Claude searching your whole codebase.

Paste only the relevant section, not the whole file.
High impact

Claude processes everything you send. Pasting a 500-line file when you need 20 lines burns ~25x more of your quota.

Batch related questions in one message.
High impact

Three related questions in one message = Claude reads the context once. Three separate messages = three full re-reads. Group your questions before you send.

Turn off tools you don’t need.
High impact

Web search, Research mode, and MCP connectors are token-intensive. Anthropic explicitly recommends disabling them when you don’t need them. The toggles live in the message composer.

Use extended thinking and high effort sparingly.
Medium impact

Great for hard reasoning problems, expensive for simple ones. On newer models the composer’s model picker also sets a reasoning-effort level; thinking tokens count toward your quota, so keep it low for routine asks. “Rewrite this sentence” doesn’t need it. “Design this distributed system” does.

Ask for direct answers without explanation.
Medium impact

Adding “no explanation needed, just the code” can cut response length, and therefore cost, by 40 to 60% for straightforward tasks.

Mind your attachments.
Medium impact

Every PDF, screenshot, and image counts toward your tokens. Images are processed as vision tokens and add up fast. Attach only what Claude actually needs to see.

Reference earlier context instead of repeating it.
Good practice

In a long chat, “as I mentioned earlier about the auth flow” is cheaper than re-pasting the whole flow. Claude already has it in context.

Review your prompt before you send.
Good practice

One well-prepared message beats five follow-up corrections. Re-read your prompt once. Did you include all the context? Did you specify the output format you want?

Check your usage before a heavy session.
Good practice

If you’re already at 70% of your 5h window, consider waiting for the reset before a complex, multi-step task. The status bar shows your live usage.

Projects: make caching work for you
Upload reference docs once. They’re cached.
High impact

Project knowledge is indexed with retrieval-augmented generation. Each conversation pulls only the relevant chunks, not the full content. A 200-page reference doc costs almost nothing per chat once it’s uploaded.

Put your style guides and project rules in the instructions field.
High impact

Every conversation in a Project inherits its instructions automatically. Write your conventions, tone, output format, and constraints once. Stop re-explaining them in every new chat.

Remove files you no longer use.
Medium impact

Stale designs, old drafts, dead-end experiments stay searchable until you delete them, which means Claude can still spend tokens retrieving them. Treat your Project like a working set, not an archive.

Keep project instructions concise.
Medium impact

Project instructions are loaded into every single conversation. A 50-line ruleset is fine. A 500-line manifesto silently taxes every message you send.

Claude Code CLI & VS Code: power commands
/compact compresses history but keeps context.
High impact

Replaces your conversation history with an AI-generated summary. You keep the context you need, but the token cost of future messages drops significantly. Use it after completing a major subtask.

/clear is a full reset for a fresh start.
High impact

Wipes the entire context. Ideal when switching to an unrelated task. Unlike closing and reopening, it keeps your terminal session intact.

Create a CLAUDE.md in your project root.
High impact

Claude reads this automatically at session start. Document architecture decisions, file locations, and conventions once. No more re-explaining your project every session. Keep it under 200 lines.

Switch to Sonnet or Haiku for routine work.
High impact

The newest Opus is the most capable model, but also the most expensive per message. Use /model mid-session: Haiku for quick fixes and lookups, Sonnet for everyday tasks, Opus only for hard architectural problems.

Make your .gitignore aggressive.
Medium impact

Claude Code respects .gitignore when searching files. Add node_modules/, dist/, .next/, coverage/, log files, and any other heavy folders. Every directory it skips is tokens you don’t spend on exploratory reads.

Use Plan mode before long implementation tasks.
Medium impact

Asking Claude to plan first catches misunderstandings before expensive code generation. A 5-message planning phase avoids a 30-message correction spiral. Toggle with Shift+Tab.

Spawn subagents for isolated research.
Medium impact

A subagent (the Agent tool) runs in its own context window and returns only a summary. This keeps exploratory searches out of your main conversation, so the parent context stays small.

Commit between sessions as natural breakpoints.
Good practice

A Git commit gives you a clean checkpoint. You can start a new session with a clear context instead of continuing an expensive, sprawling one.

When you’re close to your limit
1
Try /compact first in Claude Code, or summarise what you need and start a fresh conversation on claude.ai web. You keep momentum without dragging old context into every new reply.
2
Drop to a cheaper model. Switch from Opus to Sonnet, or Sonnet to Haiku. Per-message cost drops sharply. In Claude Code use /model; on claude.ai use the model selector at the top of the composer.
3
Turn off everything you don’t need. Web search, Research, MCP connectors, Extended Thinking. They all add per-message overhead. Strip back to plain chat until the next reset.
4
Use Projects as a bridge. Shared project instructions mean a fresh conversation picks up where you left off without manual context re-pasting.
5
Wait for the 5h reset if the task isn’t urgent. Your tracker shows the exact reset time. A 30-minute wait is often better than a degraded experience right at the cap.
Common myths, busted
Myth
“Claude Code has its own quota, separate from claude.ai.”
Reality: They share one budget. Per Anthropic’s own docs, claude.ai web, Claude Code, and the desktop app all count toward the same usage limit. Switching surfaces does not reset anything.
Myth
“A bigger context window means more budget.”
Reality: The 1M context on the newest models lets Claude see more in one request, but every token in that window still counts. Bigger windows often cost more per token too. Use them when you need them, not by default.
Myth
“Reading a file is free because I didn’t type it.”
Reality: Every token Claude reads counts, whether you typed it, pasted it, attached it, or asked Claude to fetch it. Big file reads, recursive searches, and PDF attachments are all real costs.
Myth
“Opening a new chat in the same Project resets context.”
Reality: A new chat resets the conversation history, but Project instructions and files are still loaded into the new chat’s context. That’s a feature, it’s what makes Projects useful. But it also means a bloated Project taxes every fresh chat.
Myth
“If I run out, I can just upgrade and continue.”
Reality: Paid plans can buy extra usage (where available) or upgrade tiers, but you can’t cancel out of an already-hit 5h or 7d window mid-cycle. Better to spot it coming with a tracker than to discover it mid-task.