Skip to main content

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:

  1. JSONL files at ~/.claude/projects/ — Claude Code's local session logs (offline, read-only)
  2. 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

Metadata

Release files for claude-monitor-cli 4.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-monitor-cli 4.0.1
File Size Uploaded
claude_monitor_cli-4.0.1.tar.gz 21.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-monitor-cli 4.0.1
File Interpreter ABI Platform
claude_monitor_cli-4.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 47.8 kB

Release files / claude_monitor_cli-4.0.1.tar.gz

Download URL claude_monitor_cli-4.0.1.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
17ecf1898a1f11f7cc93dd694837133a9910f7e8f8ed897a4e7ed9c27210379e
BLAKE2b-256 checksum
How to use checksums
41d589f1da78129eac880f979b6f9a669d1e70dfdbc0a5c688e6cd8d5d517c6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / claude_monitor_cli-4.0.1-py3-none-any.whl

Download URL claude_monitor_cli-4.0.1-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68cb9cce5675c096afa5610b28fc2598b520b4ac8b0bc3e3b8014e86ddbfd4d7
BLAKE2b-256 checksum
How to use checksums
b822f04382fbc8f0f46e373c993eedb771c0ca7d5d1598e4f016bdbf65e4d88e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

4.0.1 This release

2 release files

4.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page