# Claude Code last 30 days: how to see a full month of usage

> Claude Code's own view stops at 7 days and its transcripts expire at 30. Here is the direct way to see the whole month.

URL: https://claudegpt.si/news/claude-code-last-30-days-usage  
Published: 2026-10-26T15:17:46.184Z  
Author: ClaudeGPT Si Newsroom  
Section: Guides  
Topics: Claude Code, Usage history, Direct answers  
Publisher: ClaudeGPT Si

## Key takeaways

- Claude Code's /usage breakdown looks back 24 hours or 7 days, not 30.
- Claude Code removes transcripts older than cleanupPeriodDays, 30 days by default, at startup.
- UsageAtlas shows the last 30 days or last month of Claude usage in its History view, for free.

You cannot see the last 30 days of Claude Code usage inside Claude Code itself: its `/usage` screen looks back 7 days at most. To see a full month of tokens, requests, models and estimated cost, open the History view in UsageAtlas, a free desktop tracker, and set the range to the past 30 days or last month.

## The short answer, step by step

1. Install [UsageAtlas](https://usageatlas.com/guides/claude-usage-last-month). It is free, open source and works without an account.
2. It finds the Claude credentials already stored on your computer.
3. Open History and choose last month, or pick a custom 30-day range.
4. Filter to Claude so Codex or Cursor usage stays out of the total.

You see the month day by day, with the models you used, request counts and an estimated cost, so the heavy days stand out at a glance.

## Why Claude Code stops at 7 days

Anthropic's docs say the plan breakdown in `/usage` toggles between the last 24 hours (`d`) and the last 7 days (`w`). It is built from local session history on the current machine, and the numbers are approximate. Usage on another device or in claude.ai is not counted.

There is also a hard edge at 30 days. Claude Code saves each session as a transcript file and, at startup, removes the ones older than `cleanupPeriodDays`. The default is 30. Any tool that rebuilds your past from those files only sees a rolling 30-day window, unless you raise the setting.

## Three ways to get a month of data

| Option | What you get | The catch |
| --- | --- | --- |
| UsageAtlas History | Day-by-day tokens, models and estimated cost for any range | Cost is an estimate, and there is no export |
| ccusage monthly report | A terminal table or JSON from local transcripts | Only covers transcripts that still exist |
| Raise `cleanupPeriodDays` | Older transcripts stay on disk | More conversation data stored unencrypted |

UsageAtlas is the simplest of the three because it writes its own daily totals as you work and keeps adding to them. The command-line tool ccusage is the better fit if you want the month as a JSON file for a spreadsheet or script.

## What a 30-day view is good for

- **Picking a plan.** A month shows whether a heavy week was a one-off or your normal pace.
- **Choosing a model.** The model mix shows how much of your usage went to each one.
- **Spotting habits.** Weekday and time-of-day charts in UsageAtlas show when your long sessions happen.
- **Comparing tools.** If you also use Codex or Cursor, remove the Claude filter and see how the month split across them.

If you code on two computers, remember that each one only knows its own sessions. A free UsageAtlas account saves daily totals to the cloud, which lets you restore the history after a move to a new machine.

## When to check the bill instead

A month of history is for planning, not accounting. If the question is what you were charged, look in your Anthropic account: Settings > Usage on claude.ai for usage credits, or the Console usage page if you pay by API. Team and Enterprise admins also get a spend report with CSV export.

## Frequently asked questions

### Can Claude Code show usage for the last month?

Not as a month-long view. /usage covers the last 24 hours or 7 days. A tracker such as UsageAtlas keeps the longer record.

### How do I keep Claude Code sessions longer than 30 days?

Raise the cleanupPeriodDays setting. Transcripts are stored unencrypted, so keep that in mind before keeping them for months.

### Is the UsageAtlas monthly cost my actual bill?

No. It is an estimate from tokens and models. Your charges are in your Anthropic account.

## Sources

- [See Claude usage last month](https://usageatlas.com/guides/claude-usage-last-month), UsageAtlas
- [UsageAtlas full product description](https://usageatlas.com/llms-full.txt), UsageAtlas
- [Manage costs effectively](https://code.claude.com/docs/en/costs), Anthropic
- [The .claude directory](https://code.claude.com/docs/en/claude-directory), Anthropic
- [ccusage](https://github.com/ryoppippi/ccusage), GitHub
