Claude Code

See Claude usage last month

How to see Claude Code usage last month: tokens, requests, estimated cost, and which days ran hot, from local UsageAtlas history.

Quick answer

Claude does not produce a monthly usage statement. To total last month, add daily token counts from the Claude Code session files, or read the invoice if you were billed through the API. UsageAtlas rolls those local files into a calendar range and splits the total by model and project.

Why a monthly total is harder than it looks

A calendar month lines up with neither Claude window. The 5-hour window turns over several times a day and the weekly window has its own anchor, so a month is a bundle of overlapping windows rather than one budget with a start and an end.

That matters as soon as you compare months. A 31-day month with five Mondays carries more working days than a 30-day month, and a month with a holiday looks cheaper for reasons unrelated to your habits. Normalise before you conclude anything.

  • Count working days, not calendar days.
  • Separate subscription usage from API billing. They are different meters.
  • Flag any plan change that happened mid-month.
  • Keep the model mix visible; a total alone hides the reason it moved.

Total the files, not the feeling

  1. List the session files under ~/.claude/projects with their modification dates.
  2. Keep only the files that fall inside the month you are totalling.
  3. Sum input, output, cache write, and cache read separately. Do not add cache read to input, because it is already inside it.
  4. Group by model before you group by day. A month total without a model split hides the cause of a change.

If you would rather not write the script, UsageAtlas reads the same folder, holds 7, 30, and 90 days of history, and lets you choose a date range. It runs on Windows, macOS, and Linux, and local tracking needs no account.

Field definitions are in the Claude Code token usage report. Read that before comparing two months, because a change in how cache is counted can look like a change in spend.

A monthly review that takes ten minutes

Put four numbers on one line: total tokens, cache share, the model with the largest share, and the top project. Then compare each to the previous month and ask what moved.

NumberWhat a jump suggestsWhere to look first
Total tokensMore work, or longer sessionsSession count versus session length
Cache shareMore re-sending of contextHow often you restart or fork sessions
Top model shareA stronger model crept into routine workThe model set per project
Top project shareOne repository dominates spendAgent runs and context size there

The Claude usage history guide covers the day-level view when a monthly total raises a question you cannot answer. Monthly numbers tell you that something changed. Daily numbers tell you when.

Questions, answered

Can I see last month's Claude usage in the app?

Not as a monthly statement. The settings panel shows the current windows only. For a month, total the Claude Code session files or read your API invoice.

Does deleting old sessions change my history?

Yes. The session files are the history. Deleting the project folder under ~/.claude/projects removes the local record with them.

Why is my month total lower than my invoice?

Local files record what Claude Code sent and received. An invoice can include API calls from other tools, usage from a second machine, or charges outside that date range.

Browse by topic