Claude Code Token Usage — Development skill for Claude Code
Where your Claude Code tokens and dollars go — per project, then inside a single session.
How to install Claude Code Token Usage
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pierrebelin/claude-code-token-usage and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Token Usage does
Where your Claude Code tokens and dollars go — per project, then inside a single session. Local-only, stdlib Python, ships as a Claude Code skill with a zero-JS dashboard.
Alternatives in Development
- Claude Usage — A local dashboard for tracking your Claude Code token usage, costs, and session history 864 ★
- Cavemem — Frozen — cross-agent persistent memory for coding assistants 674 ★
- Vision — Claude Code ships with a single system prompt designed to be safe and useful across all contexts 69 ★
README
Claude Code Token Usage
What your Claude Code sessions cost, project by project, then what filled the context inside each one.

Reads `~/.claude/projects/**/*.jsonl` locally. No transcript, no prompt, no filename ever leaves your machine. Python 3.10+, stdlib only.
Install as a skill
The repository *is* a Claude Code skill. Clone it into `~/.claude/skills/`:
git clone https://github.com/pierrebelin/claude-code-token-usage.git ~/.claude/skills/token-usage
Copy **everything** — `SKILL.md`, `cc-usage.py`, `cc-usage-template.html`, `README.md`. The script looks for the template in its own directory, and the folder name is what `/token-usage` resolves to.
Then ask in plain language:
> how much have I spent this month?
> which project costs me the most?
> what filled the context of session 46e2620d?
> open the usage dashboard
`SKILL.md` also tells Claude how to *read* the result: which sessions are exact and which are a floor, why a re-read after a compaction is not waste, what the carry factor means. That reading grid is why the skill install beats a bare script.
Dashboard
python3 ~/.claude/skills/token-usage/cc-usage.py --serve
`http://127.0.0.1:8787/`, loopback only, re-runs the analysis on every load (~0.8 s). Home page: counters, cost per project, daily curve, session list. Each row opens its own page (~0.1 s), showing the per-tool breakdown and every turn.

Sort and filter are GET forms: state lives in the URL, so `?days=30&sort=date-desc&q=backend` is shareable, and nothing depends on JavaScript.
A frozen, self-contained HTML file instead of a server:
cc-usage.py --days 30 --dashboard report.html
cc-usage.py --dashboard session.html --focus 420f8978 # one session
Terminal
The script is standalone:
echo "alias c
Related Skills
Claumon
Claude Code dashboard: see where your limits are headed before you hit them. Calibrated usage forecasts, live
Tokens
Show the Monomind token usage dashboard — reports spend and call counts for today, week, 30days, or month
Tokens Gone
Local dashboard for Claude Code token usage and costs. Reads ~/.claude/projects//.jsonl, aggregates spend, sli
Burnlens
Open your burnlens token-usage dashboard and summarize where your tokens went
Claude Code Token Dashboard
Self-hosted dashboard for Claude Code token usage and API-equivalent cost. Reads your local transcripts, runs
Ashlr Dashboard
Rich token-savings dashboard — per-tool bar charts, 7d/30d sparklines, projected annual savings, and cost in d
Related Agents
Ds Tokens
Use ONLY to extract design tokens (colors, spacing, radius, typography) from the Figma file's LOCAL variable c
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
Design Md Consumer
Load when the user's project ships a design contract — a .design file (schema design.v1) or a DESIGN.md (the G