How to track your Claude Code token usage
Tokens are the small pieces of text an AI reads and writes. There are two easy ways to see how many Claude Code used.
Inside Claude Code
Type this at the Claude Code prompt:
/usage
On a paid Claude plan it shows bars for your plan limits. The cost shown for a session is meant for people who pay by API key. It isn't your bill on a subscription. Anthropic explains this in its documentation.
From the log files
Claude Code writes its conversations to files on your computer, normally below ~/.claude/projects. They also hold the token counts. If you use CLAUDE_CONFIG_DIR, look in that folder instead.
Be careful when you add the numbers up yourself:
- One answer can appear several times while it is being written. Count it once.
- A continued session can copy older answers into a new file.
- Tokens read from the cache are counted apart from normal input.
- Deleted files are missing from the total.
For several accounts at once
AI Account Hub reads these files on your computer and adds them up per account, model and day. It does the same for Codex and Gemini CLI. It leaves out the copies described above. The text of your conversations isn't kept or sent for this.

What it can't show
Chats on claude.ai, ChatGPT and other websites don't share their token counts, so they are missing. The totals also don't tell you how much of your plan limit is left.
Try AI Account Hub. Free while in beta, for Windows, Mac and Linux.
Download