A beautiful, interactive terminal monitor for Claude AI usage — real-time quotas, burn rate, cost analytics, and ML predictions.
Project description
Claude Monitor Tool
Interactive terminal monitor for Claude AI usage — real-time quotas, burn rate, cost analytics, and ML predictions.
Install
# From PyPI
pip install claude-monitor-cli
# From source
git clone https://github.com/Mohit-Singh2003/claude-monitor-cli.git
cd claude-monitor-cli
pip install -e .
Usage
# Interactive TUI (default)
claude-monitor
# Specify your plan
claude-monitor --plan pro # Pro ($20/mo)
claude-monitor --plan max5 # Max ($100/mo)
claude-monitor --plan max20 # Max ($200/mo)
# Statusline mode (2-line output for Claude Code integration)
claude-monitor --statusline
# Export data
claude-monitor --export json
claude-monitor --export csv
# Debug mode
claude-monitor --debug
Keyboard Shortcuts
| Key | Action |
|---|---|
r |
Realtime dashboard |
d |
Daily usage table |
m |
Monthly usage table |
s |
Session history |
F5 |
Force refresh |
q |
Quit |
Features
- Real-time quota tracking — 5-hour and 7-day utilization from Anthropic's API
- Local session analysis — parses Claude Code JSONL logs for detailed token breakdowns
- Burn rate analytics — tokens/min, cost/min, pace indicator
- P90 predictions — ML-based limit detection from historical usage
- Sparkline trends — 12-hour inline token charts
- Model breakdown — per-model (Opus/Sonnet/Haiku) usage distribution
- Multiple views — realtime dashboard, daily table, monthly table, session history
- Statusline mode — compact 2-line output for Claude Code's status bar
- CSV/JSON export — dump usage data for external analysis
- Claude-native theme — purple/slate color palette matching Claude Code's aesthetic
Data Sources
This tool reads from two sources, both on your local machine:
- JSONL files at
~/.claude/projects/— Claude Code's local session logs (offline, read-only) - Anthropic OAuth API at
api.anthropic.com/api/oauth/usage— real-time quota percentages (uses Claude Code's own OAuth token)
No API key required. No data sent to third parties. See SECURITY.md for full details.
Requirements
- Python 3.10+
- Claude Code installed and logged in (for data to exist)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_monitor_cli-4.0.0.tar.gz.
File metadata
- Download URL: claude_monitor_cli-4.0.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
413c851377a52ecac1d9424a6e9d914a96e25c2422dbba59c1253f2e6528fb15
|
|
| MD5 |
7c9a23a34f763eb21b0a893c8630f705
|
|
| BLAKE2b-256 |
bfeaadc0d8f6ce5d9368ede67d3a52835f730bedbcd51a07465c66574530aebc
|
File details
Details for the file claude_monitor_cli-4.0.0-py3-none-any.whl.
File metadata
- Download URL: claude_monitor_cli-4.0.0-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36907d4834b590d229dc5b12a4e2ca10120175810b1b8dc8204506cfb09c9126
|
|
| MD5 |
084e89ae475f10f54729bff32e9bd9ec
|
|
| BLAKE2b-256 |
c5e0f0fd94afd2a065d3929e38e8f0b634aef4143e67b5e958a1c72a9c611e13
|