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.3.tar.gz (24.9 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.3-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sumonitor-0.1.3.tar.gz
  • Upload date:
  • Size: 24.9 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.3.tar.gz
Algorithm Hash digest
SHA256 d93060b12e10ec21f908fd68cd1b4ae84c4c1882fa9afbb8482f86b762964e0f
MD5 8e1e1c56cb9865f657f16f1d58e74a2d
BLAKE2b-256 d56bbf7deb46d05a735fd61418547862ebc559c5ad9952122fe21719086c2cea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sumonitor-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5fff8b67b7702aaa6d82ad3b6dc10121810c5c271201c9a0f60cd16fa540545a
MD5 506599491761c34f66a7301af803de21
BLAKE2b-256 c1f7b61b677271c3bbe705f93eb0a2b6125da098f6ab9df1a66854a6fc735183

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