How to check Claude Code usage: tokens, cost and plan limits

Type /usage inside Claude Code. It shows this session's tokens per model, a dollar estimate at list price and, on Pro and Max, how much of the five-hour and weekly windows you have used. It sees this machine only, and its breakdown reaches back 7 days at most; older sessions and cost per project need a tool that keeps the record.

Dmitriy Solodukha · checked against Caprock v0.157.0

the one built-in command
/usage
the one built-in command
/cost and /stats open the same screen
the plan windows it shows
5 h · 7 d
the plan windows it shows
Pro and Max
the longest window in the /usage breakdown
7 days
the longest window in the /usage breakdown
the other is 24 hours
until Claude Code deletes a transcript
30 days
until Claude Code deletes a transcript
the default cleanup

From Claude Code's docs, read 24 October 2026.

Usage monitors and trackers

Six ways to check Claude Code usage

What each one shows. The built-in two cost nothing to set up; the rest read the transcripts already on your disk.

Ways to check Claude Code usage and what each shows, read 3 October 2026
WayTokensDollarsPlan windowsPast sessionsPer projectRuns in background
/usage (built in)✓estimatePro, Maxup to 7 days——
Claude Console✓the billno planby day—hosted
Status linecontext %estimatePro, Max——on screen
ccusage✓✓own estimate✓✓—
Claude-Code-Usage-Monitor✓✓official, else estimatedaily, monthlyopt-inwhile open
Caprock✓list pricePro, Maxpast 30 daysrepo and folder✓
✓ shown · —not shown. “Estimate” is Claude Code's own figure at list price, not what Pro or Max bills. “Own estimate” means the tool works out the five-hour window from your transcripts instead of reading Claude Code's percentage. Each row is explained in the guide below; five monitors, with what each is best for, are compared in Claude Code usage monitors.

Your plan

Which number is your bill?

The dollar figure in /usage is an estimate on every plan. Where the real figure lives depends on how you pay.

Where each way of paying for Claude Code shows what you owe, per Claude Code's docs, read 24 October 2026
How you payBilledShown in
Pro or Maxthe plan fee/usage plan bars
Claude Console (API key)per tokenConsole usage page
Team or Enterpriseseat, plus usage creditsspend report in org analytics
Bedrock, Google Cloud, Foundryper token, to your cloudyour cloud's billing console

Commands

Check usage from the terminal

  1. 1

    Inside Claude Code: tokens, cost estimate, plan bars

  2. 2

    ccusage: daily report from your transcripts, nothing left running

  3. 3

    ccusage: the five-hour blocks

  4. 4

    Claude-Code-Usage-Monitor: install, then run the live view

  5. then run it

  6. 5

    Caprock: put the plan windows on its Cost screen

  7. 6

    Caprock: the same totals as text, to paste

Caprock

Every session, per repository

Caprock is a free desktop app that runs your coding agents in tabs per project. Its dashboard reads every Claude Code session on the machine, including the ones you start in your own terminal, and keeps the record past the 30-day cleanup. Its Cost screen covers any range, every model and every project.

It also reads Codex, OpenCode, DeepSeek Harness and Hermes Agent, and the Gemini CLI sessions it starts. It does not read Cursor or Copilot, and like /usage it sees this machine only.

The Cost screen. Example figures: a demo week of made-up sessions against a $20 Pro plan.

Cost per repository

Tokens and dollars for each project, today, 7 days, 30 days or everything recorded.

Per model, and what the work was

Every model's cost and tokens side by side, and the tools the sessions called most.

Plan limits

The five-hour and seven-day windows, as Claude Code reports them, once its status line is installed.

Free, Apache-2.0, macOS, Windows and Linux

Download for Mac

Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.

Or run it yourself:

curl -fsSL https://caprock.dev/mac.sh | sh

Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app

The full guide

Check usage, step by step

Run /usage inside Claude Code. It shows this session's tokens and estimated cost, your plan's usage bars, and what has been eating them. That answers "how much right now", not "how much this month, on which project".

Check usage inside Claude Code

/usage is the one command; /cost and /stats open the same screen. What it shows depends on how you pay:

  • Session block — tokens per model, cache reads and writes, and a dollar figure Claude Code computes locally at list price. Anthropic's docs say it is "intended for API users": on Pro and Max the dollar figure is not what you are billed. It resets when /clear starts a new session.
  • Plan usage bars (subscription plans) — how much of your five-hour and weekly windows is used.
  • Breakdown (same plans) — what counted against the limits: skills, subagents, plugins, MCP servers, scheduled loops, and behaviours such as long context or cache misses. d and w switch between 24 hours and 7 days.

The breakdown is "computed from local session history on this machine", so another laptop or claude.ai is not in it. /status is not a usage command — it shows version, model and account.

See token usage per session and per model

The session block lists tokens per model for the session you are in. For older sessions there is no built-in token or cost view: /usage covers the current session and a 24-hour or 7-day window, not a session from last Tuesday. /insights reviews recent sessions, but it reports how you work, not what they used. And the transcripts all of this is read from are deleted after 30 days by default.

Which number is your bill

  • On an API key, the Claude Console's usage page is the authoritative bill, in tokens and spend; its Claude Code dashboard shows spend and accepted lines per member, and the Claude Code Analytics API returns the same per day. An API key has no plan, so there are no plan windows.
  • On Team and Enterprise, owners get a spend report in org analytics: spend per user and per model for usage credits, updated daily. Usage inside the seat allowance is not metered in dollars, and nothing is per project.
  • On Bedrock, Google Cloud or Microsoft Foundry, your cloud's billing console is the bill.

How much of my Claude Code usage limit is left?

The bars in /usage show how much of the five-hour and weekly windows is used and when each resets, Settings > Usage on claude.ai shows the same for the account, and the status line gets rate_limits.five_hour and rate_limits.seven_day on Pro and Max.

The /usage bars are the official answer. They are your account's windows: Claude Code, claude.ai and Claude Desktop draw from the same allowance. To watch them without opening anything, put them on the status line: Claude Code passes the five-hour and seven-day windows to it on Pro and Max, next to how full the context is and the session's cost at list price. The line is on screen for as long as the session runs and keeps nothing after it. The status line guide shows how. What each plan allows, and what it costs, is in Claude Code pricing. How the windows work and reset is in Claude usage limits.

Usage monitors and trackers compared

Three tools read the same local transcripts and keep going where /usage stops. The table at the top of this page lines them up; read 7 October 2026:

  • ccusage runs through npx or bun x and leaves no background process. It prints daily, weekly, monthly, per-session and five-hour-block reports in tokens and dollars, for Claude Code and most other coding agents, and --instances groups Claude Code by project. Its five-hour blocks are worked out from your transcripts, not read from Claude Code.
  • Claude-Code-Usage-Monitor is a live terminal view of the current five-hour window — tokens, cost, burn rate and a forecast of when you will run out — for as long as its terminal is open. It has daily and monthly views, and an opt-in local warehouse that keeps history by project and model past the 30-day cleanup. It uses the status line's plan figures when they are fresh and its own estimate otherwise.
  • phuryn/claude-usage is a local web dashboard of token use, cost and session history for Claude Code.

Five monitors, each with what it is best for and its limits, are compared in Claude Code usage monitors.

Every session's usage, in a desktop app

Caprock is a free desktop app for macOS, Windows and Linux that records every Claude Code session on the machine, whether or not it started it — and Codex, OpenCode and DeepSeek Harness next to them, plus the Gemini CLI sessions it starts; not Cursor or Copilot. It keeps the record past the 30-day cleanup, and every dollar it shows is a list-price estimate, as /usage is, beside the plan's dollars and the share of the weekly limit the work used. Its Cost screen answers what /usage cannot:

  • Any range — today, 7 days, 30 days or everything recorded.
  • Per project — cost and tokens for each repository, and per directory inside a monorepo.
  • Per model — every model's turns, tokens and cost, Claude and GPT side by side, priced at list price.
  • What the money went on — running commands, writing code, reading and searching, MCP tools, and turns with no tool call, with a note when tool calls could not be matched to a turn.
  • Plan value — on a flat plan, what the same work would cost at API list price, with a caveat beside it that this is not a bill and not money saved.

The plan windows are on the same screen once caprock statusline install is set up. caprock report prints the same totals as text you can paste into an issue or a post, with the caveat attached.

What it cannot show: an absolute token ceiling for your plan, because Claude Code does not report one — only the percentage used. And like /usage, it sees this machine only.

Questions people ask

How do I check my Claude Code usage?
Run /usage inside Claude Code. It shows this session's tokens and a cost estimate, and on Pro and Max how much of the five-hour and weekly windows you have used.
How do I check how much of my Claude Code usage limit is left?
The bars in /usage show how much of the five-hour and weekly windows is used and when each resets, Settings > Usage on claude.ai shows the same for the account, and the status line gets rate_limits.five_hour and rate_limits.seven_day on Pro and Max.
Is the cost in /usage what I pay?
Not on Pro or Max: it is a list-price estimate that Anthropic says is meant for API users. On an API key, the Claude Console usage page is the bill.
Can I see Claude Code usage for past sessions?
Not built in: /usage covers the current session and a 24-hour or 7-day breakdown. ccusage, Claude-Code-Usage-Monitor and Caprock read the transcripts on disk, which Claude Code deletes after 30 days by default.
How do I see Claude Code usage per project?
Claude Code has no per-project view. ccusage groups Claude Code by project with --instances; Caprock shows cost and tokens per repository and per directory inside one.
Does /usage include claude.ai or my other computer?
The breakdown does not: it is computed from session history on this machine. The plan bars are your account's windows, which Claude Code, claude.ai and Claude Desktop share.
Which Claude Code usage tracker should I use?
ccusage for reports on demand with nothing left running, Claude-Code-Usage-Monitor for a live view of the current window, and Caprock, a free desktop app, for every session on the machine whether or not it started it, live, with history, limits and cost per repository.

Sources

Try it

The record of every coding agent you run, the sessions it did not start included. Free, open source; nothing leaves your machine.

Download for Mac

Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.

Or run it yourself:

curl -fsSL https://caprock.dev/mac.sh | sh

Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app