Download

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:

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.

Token usage page with totals and a daily chart
AI Account Hub with sample content.

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

More guides