Track your Claude Code usage against 5-hour and weekly caps. A Python
script reads ~/.claude/projects/ and generates a local HTML
dashboard with rolling-window gauges, a per-turn scatter, and click-to-mark
throttle events you can use to calibrate your personal cap.
Anthropic doesn't publish exact numeric thresholds for the 5-hour and weekly limits on Claude Max plans, and the ceilings appear to vary by model mix and plan tier. Rather than hard-coding a wrong number, this tool estimates your cap two ways:
localStorage.
Two files: a Python script and an HTML template. Put them in the same
folder and run the script. Python 3.9+, stdlib only, no pip install.
mkdir ~/claude-usage-monitor && cd ~/claude-usage-monitor
curl -O https://data-centered.com/tools/claude-usage-monitor/claude_usage.py
curl -O https://data-centered.com/tools/claude-usage-monitor/dashboard-template.html
python3 claude_usage.py --days 21 --open
That writes claude-usage-dashboard.html in the current directory
and opens it in your browser. Re-run any time to refresh — the generator
is fast (single-digit seconds for a few weeks of data).
--days N lookback window in days (default: 21)
--out PATH output HTML path (default: ./claude-usage-dashboard.html)
--open open the generated file in your browser
--json-only emit JSON instead of HTML (for piping into other tools)
Paste this URL into Claude Code and say "wire this up for me". The page is structured so an agent can read it once, download both files, run the script, and open the dashboard — no additional instructions needed.
Built at data-centered.com — short feedback or issue reports via the journal page. The tool is permissively licensed (use it, modify it, ship it in your own stack).