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.6
  2. Sonnet 4.6
  3. Opus 4.5
  4. Sonnet 4.5
  5. 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.2.tar.gz (24.5 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.2-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sumonitor-0.1.2.tar.gz
  • Upload date:
  • Size: 24.5 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.2.tar.gz
Algorithm Hash digest
SHA256 9700d0c00485644e6c49302fcbbbbc32d0f7b8fcead36d8074ed12214b8842aa
MD5 7a627e15c6473f6bd3d18bdcecb97eee
BLAKE2b-256 23cff926c3d3e6596727651e6368127d37523df42677362468b2e59abb020882

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sumonitor-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7d6a640facf2e9fda1ca65dfa008666da3d33d6458b7fb89d5f2edd105ff82
MD5 b780685c419567b264dbe9081a6e09a0
BLAKE2b-256 c5fbafeee7ac38fdc06c0baaadfae2d403332b31e64d221dbdc4fd24a4341e39

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