Guide
Claude Code usage: how it works and how to check it
There are really two questions hiding here: what did this session cost, and how much of my plan have I burned through this month. The first is answered inside Claude Code with /usage. The second is answered by ccusage, an open-source CLI that reads the session files already on your disk, or by your account settings. Here is which tool answers which question.
What counts as usage
Claude Code usage is measured against your plan in two rolling windows at once, and both have to have room for the agent to keep working.
- A session window, the short one. It opens with your first message and covers a few hours of work from that point, then resets.
- A weekly window, the long one. It is the ceiling on how much you can get through across a whole week, and it is the one that usually catches people out, because you can be well inside the session window and still be stopped.
What consumes them is tokens, and the largest consumer is usually not the message you typed. It is the context resent on every turn: a long conversation, large files read in full, and subagents doing work of their own all multiply what each reply costs. This is why two people on the same plan can hit the wall at very different points in the day.
When a window fills, Claude Code stops and tells you when it resets. Nothing is lost, and you do not need to do anything except wait or switch to a plan with more room. The exact allowances belong to your plan rather than to the CLI, so the authoritative statement of what you get is in your Anthropic account, not in any tool that reads your disk.
Work out which question you are asking
- What is this session costing me right now? Use the built-in command. It is one keystroke and it is already there.
- What have I used across every project this month? Use
ccusage. It reads your local history, so it can go back as far as your session files do. - Am I about to hit my subscription limit?
/usageshows your plan usage limits, and your account settings hold the authoritative record. - What is this API key spending? The Anthropic Console, not the CLI.
The built-in commands
Inside a running session, /usage reports what that session has cost, your plan usage limits and activity stats; /cost and /stats open the same screen. /status gives you the session's current state, including the model and the working directory, which is useful when you have several sessions open and have lost track of which is which.
# inside a Claude Code session
/usage # session cost, plan limits, activity
/status # what this session currently isThese are fast and accurate for the here and now. What they will not do is aggregate: close the session and the number goes with it.
ccusage, for everything historical
Claude Code writes a JSONL transcript for every session under ~/.claude/projects, one directory per project and one file per session. Those files record the token counts. ccusage is an open-source CLI that parses them and prints reports.
Two things make it the standard answer. It needs no account, API key or network call, because the data is already on your machine. And it runs straight from npx, so there is nothing to install:
# totals per day, across every project
npx ccusage@latest
# the other views
npx ccusage@latest monthly
npx ccusage@latest session
npx ccusage@latest blocks
# figures for Claude Code's status line (beta);
# the old blocks --live view was removed in version 18
npx ccusage@latest statuslineThe daily view is the one most people leave running in a spare tab. The session view is the one that answers "which project is eating my quota", because it breaks the total down per session rather than per day.
Two caveats worth knowing. The costs are computed from token counts and published model pricing, so they are an accurate reconstruction rather than a bill: on a subscription plan they tell you what the same work would have cost on the API, which is a useful number but not one you are being charged. And the reports only reach as far back as the session files you still have.
Subscription limits and API spend
Plan limits are enforced by the account, not by the CLI, so no tool that only parses your local session files can authoritatively tell you how close you are; the account's own record is the one that counts. Check your Anthropic account settings for the plan you are on and what it allows. If you are running Claude Code against an API key rather than a subscription, the Anthropic Console is the place: it shows actual spend and the rate limits attached to the key, and it is the only number that matches your invoice.
If you are being cut off sooner than you expect, the usual causes are worth ruling out before blaming the limit: a very large context being resent on every turn, subagents multiplying the work, and large files read in full when a search would have done.
Where CrewTower fits, and where it does not
CrewTower shows how much of your window is left. It keeps no token or cost history. There is no spending history by day, session or model in it; the most it shows is the current session's running cost, with the beta Tell Claude plugin on. If a number in dollars or tokens is what you came for, everything you need is above, and ccusage is the tool.
What it does show is the other half of the question this page opened with. CrewTower has a usage meter, on by default and switchable off in settings, that reports how much of your session window and your weekly window you have used, as a percentage with a countdown to the reset, alongside how much context each running session has left. For Claude Code that reading is not parsed from your local session files: the app calls Anthropic's own usage endpoint with your existing Claude Code login, about every five minutes, so the figure is the provider's own rather than a reconstruction. That is the same distinction this guide draws above, where a local parser can only estimate what the account knows for certain.
What it is not is a cost tracker. CrewTower is primarily a native macOS app that shows every running agent session in the MacBook notch: what each one is doing, how long it has been going, and which ones are stopped waiting for a human. You approve or deny permission requests from there, without focusing the terminal, and jump to the exact tab when you do want to be in it.
So the two sit alongside each other rather than competing: ccusage answers what it cost and what you spent over time, CrewTower answers how much window is left and whether anything needs you right now. If you are weighing them up directly, there is a page on exactly that comparison.
Questions
How do I see how much Claude Code has used?
Inside a session, /usage shows what the current session has cost, your plan usage limits and activity stats, and /status shows the session's current state. For history across every session, ccusage is the open-source CLI most people use: it reads the JSONL transcript files Claude Code already writes under ~/.claude/projects and reports totals by day, month, session or billing block.
What is ccusage?
An open-source command line tool that parses the local Claude Code session files and prints usage and cost reports. It runs with npx and needs no account or API key, because all the data is already on your machine. Its live mode was removed in version 18; ccusage statusline now puts its figures in Claude Code's status line instead.
How do I see my subscription plan limits?
Plan limits are an account matter rather than a Claude Code matter, so the authoritative place is your Anthropic account settings. If you are using an API key instead of a subscription, the Anthropic Console shows the spend and rate limits for that key.
Does ccusage send my data anywhere?
It reads local files and prints to your terminal. Nothing about your sessions needs to leave the machine for it to work.
Why does ccusage show a cost when I am on a subscription?
It reconstructs cost from token counts and model pricing. On a subscription that figure is a comparison, not a charge.
Can I see usage for one project only?
Yes. The session view groups by session, and sessions are stored per project directory, so a single project's consumption is visible there.
Does CrewTower track token usage or cost?
No, neither. Its usage meter shows how much of the session and weekly window you have used and when each resets, read for Claude Code from Anthropic's own usage endpoint with your existing login, plus how much context each session has left. It keeps no token or cost history; with the beta Tell Claude plugin on, a card can show what the current session has cost so far. For tokens and dollars over time, ccusage remains the tool.
A different problem, solved
CrewTower will not tell you what you spent. It will tell you how much of your window is left, which session is stopped waiting for you, and let you answer it from the notch.
Get CrewTower for Mac$9.99 once · macOS 15 or later