Claude Code Token Usage
Description
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.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11