Claude Code Token Meter — Development skill for Claude Code
Local-first dashboard for Claude Code token usage.
How to install Claude Code Token Meter
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open itchernetski/claude-code-token-meter and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Token Meter does
Local-first dashboard for Claude Code token usage. Parses ~/.claude/projects/*.jsonl and serves an interactive viewer on localhost. No API calls.
Alternatives in Development
- Ccusage — CLI for analyzing Claude Code/Codex usage from local JSONL files 11.8k ★
- Doctor — Environment diagnostics with interactive fixes — providers, auth, RTK, hooks, token optimization 2.8k ★
- Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
README
claude-code-token-meter
Local-first dashboard for [Claude Code](https://claude.com/claude-code) token usage. Parses your local session logs (`~/.claude/projects/*/*.jsonl`) and serves an interactive viewer on `localhost`. **No API calls. Zero tokens spent on viewing.**

Why
Claude Code writes a JSONL log per session under `~/.claude/projects/`. Those files contain everything you need to understand your usage — input, output, cache-read and cache-create tokens per message — but there's no built-in way to explore them.
This tool parses them, aggregates per session, and exposes:
- Daily breakdown — weighted tokens per day
- Project breakdown — share of usage by project
- Model share — opus / sonnet / haiku split
- Top 30 sessions — biggest individual sessions, with the rest collapsed into a single "other sessions beyond top 30" line
- Date filter — 24h / 3d / 7d / 14d / 30d, switched without page reload
- Burn rate — rolling 5h / 24h / 7d weighted totals + 24h hourly sparkline
- Quota calibration — anchor the dashboard to your plan via the
/usage% you see in Claude Code (see below); also auto-calibrates from clustered rate-limit hits stored locally - Theme + lang — light / dark, EN / RU, persisted in localStorage
The "weighted" number uses Anthropic's published cost ratios as a proxy:
weighted = input × 1 + output × 5 + cache_create × 1.25 + cache_read × 0.1
It's not a literal subscription-quota percentage (Anthropic doesn't publish that formula), but it gives the right *relative* ranking of sessions and days.
Install
Requires Python 3.10+.
pipx install claude-code-token-meter
Or from source:
git clone https://github.com/itchernetski/claude-code-token-meter.git
cd claude-code-token-meter
python -m venv .venv
source .venv/bin/activate
pip install -e .
Run
claude-code-token-meter
claude-code-token-meter --port 8000
PORT=8000 claude
Related Skills
Tokens Gone
Local dashboard for Claude Code token usage and costs. Reads ~/.claude/projects//.jsonl, aggregates spend, sli
Claude Code Token Dashboard
Self-hosted dashboard for Claude Code token usage and API-equivalent cost. Reads your local transcripts, runs
AgentsUsage
A lightweight Windows system tray application that parses local Claude CLI and Codex usage logs, hosting an em
Codex Token Meter
Native macOS menu bar apps for tracking Codex and Claude Code token usage, quota, cache efficiency, cost, and
Token Meter
macOS menu bar app for monitoring Claude Code and Codex usage at a glance
Agentic Coding Harness
Run, watch, and meter Claude Code, Codex CLI, Gemini CLI, OpenCode, and Kiro from one CLI. Normalized events,
Related Agents
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
Stats Analyzer
Analyzes ~/.claude/stats-cache.json and history.jsonl to produce a concise usage report with model token break
Nay
Agentistics intelligence agent. Use Nay when you need to query Claude Code usage metrics, analyze costs and pa