Skip to main content

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:

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_monitor_cli-4.0.1.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_monitor_cli-4.0.1-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file claude_monitor_cli-4.0.1.tar.gz.

File metadata

  • Download URL: claude_monitor_cli-4.0.1.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

Hashes for claude_monitor_cli-4.0.1.tar.gz
Algorithm Hash digest
SHA256 17ecf1898a1f11f7cc93dd694837133a9910f7e8f8ed897a4e7ed9c27210379e
MD5 414ad2c93463dbeb0129530c7aa794f4
BLAKE2b-256 41d589f1da78129eac880f979b6f9a669d1e70dfdbc0a5c688e6cd8d5d517c6f

See more details on using hashes here.

File details

Details for the file claude_monitor_cli-4.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_monitor_cli-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68cb9cce5675c096afa5610b28fc2598b520b4ac8b0bc3e3b8014e86ddbfd4d7
MD5 30267191db1e7a202bfa22fddb2a6e32
BLAKE2b-256 b822f04382fbc8f0f46e373c993eedb771c0ca7d5d1598e4f016bdbf65e4d88e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page