Skip to main content

Real-time token and cost monitoring overlay for Claude Code CLI with session tracking

Project description

simple-usage-monitor

PyPI version License codecov Python PRs Welcome

In-terminal (HUD) usage monitoring for Claude Code - see your costs without leaving your workflow

Unlike other monitoring tools that require opening separate dashboards or browsers, sumonitor displays your usage data right in your terminal in real-time as you work. No context switching.

sumonitor usage

  • Live token counts (input, output, cache)
  • Cost tracking with tiered pricing
  • Session limits based on your plan
  • Time until session reset

All processing happens locally on your device - your sessions remain completely private.

Supported Models

  1. Opus 4.5
  2. Sonnet 4.5
  3. Haiku 4.5

Other models will still have accurate token counting, just not dollar cost.

Installation

Install from PyPI (Recommended)

pip install sumonitor

Install from source

  1. Clone the repo

    git clone https://github.com/SrivathsanSivakumar/simple-usage-monitor

  2. Then install the tool cd path/to/simple-usage-monitor

    pip install .

Uninstallation

pip uninstall sumonitor

Troubleshooting

PATH not found: If you see WARNING: The script sumonitor is installed in '/home/username/.local/bin' which is not on PATH, add to your shell config:

export PATH="$HOME/.local/bin:$PATH"

externally-managed-environment error: On modern Linux (Ubuntu 23.04+, Debian 12+, Fedora 38+), use one of these alternatives:

  • pipx (recommended):

    pipx install sumonitor
    
  • Virtual environment:

    python3 -m venv myenv && source myenv/bin/activate
    pip install sumonitor
    

Usage

Simply run:

sumonitor

This will:

  1. Auto-detect your Claude Code installation
  2. Start Claude Code with the monitoring overlay
  3. Show real-time usage at the bottom of your terminal

Command Line Options

sumonitor [OPTIONS]

Options:

  • --plan {pro,max5,max20} - Your Claude subscription plan (default: pro)

    • pro: Claude Pro plan limits
    • max5: Max 5 plan limits
    • max20: Max 20 plan limits
  • --path PATH - Custom path to Claude Code binary (default: auto-detect)

  • --version - Show version information

  • -h, --help - Show help message

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Areas for contribution:

  • Support for additional Claude models
  • Enhanced error handling
  • Additional export formats for usage data
  • UI improvements
  • Overlay functionality improvements

Changelog

See CHANGELOG.md for version history and release notes.

Acknowledgments

Big thanks to Claude Code Usage Monitor for the inspiration and awesome work!

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

sumonitor-0.1.1.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

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

sumonitor-0.1.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file sumonitor-0.1.1.tar.gz.

File metadata

  • Download URL: sumonitor-0.1.1.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for sumonitor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 49f260a8214388e669a03c35cf573192eafcd885fcc35d7bb9aee63e0f6ef9e0
MD5 d13638175f40130a212c58f84ed7993c
BLAKE2b-256 b7f4f37059b47520386f49e6c109932e615f26a5c14febfb4b712084cc172d7e

See more details on using hashes here.

File details

Details for the file sumonitor-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sumonitor-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for sumonitor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 355031ff8b309d2071139845ca86e185fd2e14e775fee57024ebad90283826b8
MD5 2681e4339a94e00fa46bd5208c0095ef
BLAKE2b-256 42c600163b6443ac80403ff01e78180bb723f495f96d6954014d161b647e958e

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