
claude-usage
A local dashboard for tracking your Claude Code token usage, costs, and session history. Pro and Max subscribers get a progress bar. This gives you the full picture.
The Lens
Claude Usage reads the JSONL session logs that Claude Code writes to your machine and turns them into charts. Per-model token breakdowns, cache hit rates, cost estimates, and session history, all in a local browser dashboard. Anthropic's own UI gives you a progress bar. This gives you the full picture.
Zero dependencies. Standard library Python only, no pip install. Clone the repo, run the dashboard command, and it serves a Chart.js UI at localhost:8080 that auto-refreshes every 30 seconds. A SQLite database at ~/.claude/usage.db caches the parsed data for fast incremental re-scans. CLI commands cover scan, today, stats, and dashboard.
Pro and Max subscribers who want to understand their actual token consumption per session and per model need this. The cost estimates use current API pricing, which is useful even for subscription users as a proxy for understanding usage patterns.
The catch: only captures local Claude Code sessions. Cowork sessions (server-side) are not included. Cost estimates reflect API pricing, not what you actually pay on a Pro/Max subscription. Single-maintainer project, so pricing tables need manual updates when Anthropic changes models.
Free vs Self-Hosted vs Paid
fully free## Free Tier Everything. MIT licensed. Zero runtime cost, no external API calls.
## Self-Hosted Runs locally. git clone + python3 cli.py dashboard. No virtual env, no pip install, no server infrastructure.
## Paid Alternatives No direct competitor. Anthropic's built-in usage display is minimal. Third-party API cost trackers like Helicone ($0-150/mo) or LangSmith ($0-400/mo) cover API usage but not Claude Code local sessions.
Free and zero-dependency. Fills a gap Anthropic's own tools don't cover.
License: MIT License
Use freely, including commercial. Just keep the license.
Commercial use: ✓ Yes
About
- Owner
- Pawel Huryn (User)
- Stars
- 931
- Forks
- 137
Explore Further
More tools in the directory
everything-claude-code
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
156.4k ★cc-switch
A cross-platform desktop All-in-One assistant tool for Claude Code, Codex, OpenCode, openclaw & Gemini CLI.
44.9k ★career-ops
AI-powered job search system built on Claude Code. 14 skill modes, Go dashboard, PDF generation, batch processing.
33.4k ★Get tools like this delivered weekly
The Open Source Drop — the best new open source tools, analyzed. Free.