Claude Code Usage Tracking: /usage, /cost, Plan Limits
Claude Code usage tracking in 2026: what /usage and /cost show, how to put 5-hour and weekly plan limits in your status line, and tools for usage history.
The fastest way to track Claude Code usage is the built-in /usage command (/cost is now an alias for it). On a Pro, Max, Team, or Enterprise plan it shows your plan usage bars and what is eating them; on an API key it shows a dollar estimate for the current session. For a number you can see all the time, put your 5-hour and weekly limit percentages in the status line. For history across days, use the Claude Console on API billing, or a local tool like ccusage. Here is how each one works in 2026 and which to use.
Two kinds of "cost"
Claude Code is billed one of two ways, and the tracking tools differ for each:
- Subscription (Pro, Max, Team, Enterprise). You pay a flat price. What you track is how much of your usage windows you have consumed: a rolling 5-hour window and a weekly window. Dollar figures do not apply to your bill unless you turn on usage credits.
- API billing (Claude Console, or a cloud provider). You pay per token. What you track is dollars.
Mixing these up is the most common source of confusion. A subscriber who sees "$4.12" in /usage has not been charged $4.12; that figure is an estimate at list price, intended for API users.
Tracking tools compared
| Tool | Shows | Best for | Where data comes from |
|---|---|---|---|
/usage (or /cost) |
Session cost estimate, plan bars, usage breakdown | Quick check in any session | Current session plus local history |
Status line rate_limits |
5-hour and weekly percentages, live | Never being surprised by a limit | Each API response |
Status line cost fields |
Running session cost and duration | API users watching spend | Current session |
/context |
What is taking up context space | Finding why usage is high | Current session |
| Claude Console usage page | Authoritative API spend | API billing | Anthropic billing |
| ccusage (community tool) | Daily, monthly, per-session, 5-hour blocks | History on one machine | Local Claude Code logs |
Using /usage
Run /usage in any session. The top Session block shows total cost, API duration, wall-clock duration, lines changed, and usage by model. Claude Code computes the dollar figure locally from token counts at list price, so it is an estimate. The totals reset when /clear starts a new session.
On a subscription plan the same screen adds what you actually care about:
- Plan usage bars for your current windows.
- Attribution, showing recent usage by skills, subagents, plugins, and individual MCP servers as a percentage.
- Behavior flags for things like long context or cache misses when they account for 10% or more of recent usage.
- Loops, listing the heaviest
/loopor scheduled tasks that ran recently.
Press d or w to switch between the last 24 hours and the last 7 days. These figures come from session history on that machine, so usage from another laptop or from claude.ai is not included.
If you have usage credits turned on, /usage also shows a usage-credits row with this month's spend. /usage-credits opens the settings page where you turn credits on or off and set a monthly spend limit.
Put your limits in the status line
Checking /usage works only if you remember to. The status line is always visible. Claude Code passes JSON to your status line script on each update, and for Pro and Max subscribers that JSON includes:
rate_limits.five_hour.used_percentageandrate_limits.seven_day.used_percentagerate_limits.five_hour.resets_atandrate_limits.seven_day.resets_at(Unix epoch seconds)
API users get cost.total_cost_usd and cost.total_duration_ms. Everyone gets context_window.used_percentage.
The easy setup is to ask Claude Code to write it for you:
/statusline show model, context percentage, and my 5-hour and weekly usage
That generates a script in ~/.claude/ and adds the statusLine entry to your settings. The rate_limits object appears only after the first API response in a session, so a script should handle it being absent, for example with jq -r '.rate_limits.five_hour.used_percentage // empty'. Our status line customization guide has full examples.
Why usage climbs faster than you expect
When a limit arrives early, it is usually one of these:
- Long context. Claude Code sends the conversation with every request. A one-line question in a session that has been open all day still carries all that history.
- Cache misses. Coming back after a long break can mean the cached context has expired and gets reprocessed.
- Subagents and agent teams. Each one makes its own requests on top of the main conversation.
- Scheduled tasks and loops. They fire on their interval even while you are idle.
- Compaction.
/compactreads the whole conversation to summarize it, which is itself a large request./clearcosts nothing.
The habits that help most are boring: /clear between unrelated tasks, run /context to see what is taking up space, use Sonnet for routine work, and disable MCP servers you are not using.
History across days with ccusage
/usage is about now. For a daily or monthly view, the community tool ccusage reads Claude Code's local usage data and prints reports. Run npx ccusage@latest for a daily summary, or use its daily, monthly, session, and blocks reports. The blocks view groups usage into 5-hour windows, which maps well to how subscription limits work. It is unaffiliated with Anthropic and only sees the machine it runs on, so treat its dollar numbers as estimates.
For teams, Anthropic's own reporting is the authority: the spend report in org analytics on Team and Enterprise plans, and the Console usage page plus workspace spend limits on API billing. The Claude Code docs put the average enterprise cost at around $13 per developer per active day.
Where MOLTamp fits
MOLTamp does not change how Claude Code counts usage, and it does not replace /usage. What it adds is room to keep the numbers in view. Its customizable status line and session monitoring sit alongside the Claude Code status line, and with up to 50 tabs, attention badges tell you which agent session finished or needs you, which helps when several sessions are drawing on the same weekly window. Our MOLTamp status line guide shows the setup, and the round-up of the best terminal for Claude Code compares it with Ghostty, iTerm2, and others.
Verdict
- Subscriber: add the 5-hour and weekly percentages to your status line, and open
/usagewhen the bars move faster than expected. - API user: watch
cost.total_cost_usdin the status line, and set a workspace spend limit in the Console. - Want history: ccusage on your own machine, org analytics for a team.
If you want a terminal that keeps that status line and your sessions organized, download MOLTamp. It is free to use with every feature working.
FAQ
What does /cost do in Claude Code?
In current versions /cost is an alias for /usage. It opens the same screen: a session cost estimate at the top, plus plan usage bars and a usage breakdown if you are on a subscription.
Is the dollar figure in /usage what I am charged? Not on a subscription. Pro and Max usage is included in your plan, so the session cost is an estimate meant for API users. On API billing it is still an estimate at list price; the Claude Console usage page is the authoritative number.
How do I see my Claude Code weekly limit?
Run /usage to see your plan bars, or add rate_limits.seven_day.used_percentage to your status line so it is always visible. The resets_at field tells you when the window resets.
Does /usage include usage from my other computers? The breakdown and history come from session data on the machine you are using, so usage from other devices and from claude.ai is not included. Your plan usage bars reflect your account.
Is Claude Code free? The CLI is free to install, but the model usage behind it comes from a Claude subscription or API billing, which is why tracking matters. Our guide on whether Claude Code is free covers the options.