← Back to Leaderboard
CMaciek-roboblog

Maciek-roboblog/Claude-Code-Usage-Monitor

Local Python CLI for Claude Code limits, usage forecasts, and history

View on GitHub ↗
Engineering Health (Methodology)
B · 63/100
Maintenance Activity
● Updated 5mo ago
Latest Release
v4.0.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption17/25
Release Cadence14/20
License Clarity20/20
CLI1 README badge views (30d)
Total Stars
★ 8,827
24h Growth
+2
7d Growth
+10
Forks
466

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Maciek-roboblog/Claude-Code-Usage-Monitor Star History (2025-06-17 - 2026-12-04) ALL-TIME STAR HISTORY (2025-06 – 2026-12) +8.8k in 535d · avg +16/day 9.3k 4.7k 0 2025-06-17: ★ 12025-07-26: ★ 3,2362025-08-30: ★ 4,5212025-10-04: ★ 5,1462025-11-08: ★ 5,4112025-12-13: ★ 5,6642026-01-17: ★ 6,0032026-02-21: ★ 6,4382026-03-28: ★ 7,0162026-05-02: ★ 7,7302026-06-06: ★ 8,0172026-07-11: ★ 8,3312026-08-15: ★ 8,5512026-09-19: ★ 8,6592026-10-24: ★ 8,7442026-12-04: ★ 8,827 ★ 8.8k 2025-06 2026-03 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Claude Monitor is a local Python CLI with a Claude Code statusline hook. It reads local usage records and can capture official rate_limits through --statusline. The trust layer prefers fresh official values and falls back to labeled local estimates when those captures become stale or expire. A versioned snapshot builder feeds the live terminal UI, one-shot and compact output, state files, and exports.

Rich renders the terminal UI, Pydantic and pydantic-settings handle validation and configuration, and NumPy supports statistical calculations. The integration boundary is the snapshot: external status bars, trays, and GUIs can consume --once --output json or --write-state without parsing the terminal UI. The Claude Code integration uses a statusline hook, not an MCP endpoint.

Key Capabilities & Differentiators

The CLI offers live, daily, monthly, session, entry, session-list, and burn-rate views. It tracks tokens, messages, and estimated cost, including model-specific cache creation and read costs. The v4.0.0 model distribution bar shows Sonnet, Opus, Haiku, and an Other bucket rather than dropping model families from the visualization.

Forecasting is reset-aware, and weekly utilization percentages are shown only when official figures are available. The default Custom plan uses historical P90 estimates and accepts an explicit token threshold through --custom-limit-tokens. The opt-in local warehouse keeps project-, model-, and day-level records beyond Claude's 30-day cleanup, defaults to 365 days of retention, and supports CSV and JSON reporting.

Trade-offs & Limitations

If you only need current official utilization, the native Claude Code statusline is the simpler option. Claude Monitor is useful when you also want forecasts, local fallback, historical reporting, or a scriptable interface. Those additions do not make local estimates authoritative: fixed plan thresholds and P90 estimates are planning aids, not subscription entitlements, and the Team plan has no verified local threshold.

The CLI keeps unrelated accounts out of the same five-hour window when scanning multiple sources, but it is not a centralized quota ledger. Enabling the warehouse or distributing state files adds a data-handling decision: choose what to retain and who may read project-level reports or snapshots. The MIT license permits commercial reuse of the monitor, not use of Anthropic services beyond their own terms.

Hardware & Deployment Guide

Install with uv tool install claude-monitor, or use pip in a virtual environment. The CLI requires Python 3.9+; Python 3.11+ is recommended. The local path processes usage records and renders or exports results without model inference, a GPU, or an external service. Set up the statusline hook for official limits; --api is a separate, opt-in experimental Anthropic OAuth usage path.

v3.1.0 introduced daily and monthly aggregation alongside live monitoring. v4.0.0 added the official-limit trust layer, the versioned snapshot protocol, multi-source scanning, and the opt-in warehouse. When upgrading an integration, verify that the hook produces fresh data and that the consumer handles all --once exit codes rather than treating every nonzero result as an execution error.

Source precedence: Fresh statusline rate_limits take priority; stale or expired captures fall back to labeled local estimates.
Snapshot contract: Rich output, --once, --compact, and --write-state use a shared, versioned snapshot.
Automation: --once distinguishes OK (0), near limit (10), limit hit (11), indeterminate or no active session (20), and no data or configuration error (30).
History: The opt-in warehouse retains project, model, and day dimensions beyond Claude's 30-day cleanup, with CSV and JSON reports.
Source isolation: --data-paths, CLAUDE_CONFIG_DIR, and WSL discovery support multiple data directories without merging unrelated accounts into one five-hour window.
Model coverage: The v4.0.0 distribution bar includes Sonnet, Opus, Haiku, and an Other bucket; --filter-models anthropic excludes routed non-Claude models.
Best For

Heavy Claude Code users and workstation tooling that need limit warnings, local usage history, or provenance-aware JSON snapshots for scripts and status bars.

Skip If

The native statusline already answers your questions, or you need an authoritative cross-account billing ledger or centralized quota enforcement.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
# Install directly from PyPI with uv (easiest)
uv tool install claude-monitor

# Run from anywhere
claude-monitor  # or cmonitor, ccmonitor for short

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
Claude-Code-Usage-Monitor ★8.8k+10PythonMITLocal Python CLI for Claude Code limits, usage forecasts, and history
spec-kit153.7k+1.3kPythonMITA Python CLI for spec-driven coding-agent workflows and reviewable handoffs
academic-research-skills59.6k+694Python—Claude Code plugin for human-reviewed research, manuscript writing, and peer rev
claude-plugins-official49.1k+611PythonApache-2.0Claude Code’s official marketplace for installing plugins and curated skill bund

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Maciek-roboblog/Claude-Code-Usage-Monitor.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Maciek-roboblog/Claude-Code-Usage-Monitor Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about Claude-Code-Usage-Monitor

How should a status bar or script consume the monitor?

Configure claude-monitor --statusline as a Claude Code statusline hook to capture official rate_limits. Have the consumer call claude-monitor --once --output json or read a file produced by --write-state. Check provenance and handle nonzero exit codes explicitly: a near-limit warning is not a command failure.

What hardware does it need, and what drives runtime overhead?

No GPU or VRAM is required for local monitoring. This is a Python CLI that reads usage data, computes statistics, and renders or exports a snapshot; it does not run model inference. Size for the amount of history scanned, the number of data paths, refresh frequency, and warehouse retention. Use one-shot mode if you only need periodic samples.

Can we run it internally or redistribute it with a commercial tool?

Yes. The MIT license permits commercial use and modification; retain the copyright and license notices when redistributing. The monitor license does not extend to Claude Code or Anthropic services. For local deployments, set access and retention policies for state files and warehouse exports, which can contain project-level usage data.

When is this a better fit than the native statusline or a historical usage report?

Use the native statusline if you only need Claude Code's current official limit reading. Use this CLI if you also need local fallback estimates, forecasts, structured output, or retained history. If your task is strictly historical token and cost reporting, the daily and monthly views may suffice without enabling the hook or running the live dashboard.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Maciek-roboblog/Claude-Code-Usage-Monitor? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Maciek-roboblog/Claude-Code-Usage-Monitor on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare