Real-time token and cost monitoring overlay for Claude Code CLI with session tracking
Project description
simple-usage-monitor
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.
- 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
- Opus 4.6
- Sonnet 4.6
- Opus 4.5
- Sonnet 4.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
-
Clone the repo
git clone https://github.com/SrivathsanSivakumar/simple-usage-monitor -
Then install the tool
cd path/to/simple-usage-monitorpip 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:
- Auto-detect your Claude Code installation
- Start Claude Code with the monitoring overlay
- 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 limitsmax5: Max 5 plan limitsmax20: 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9700d0c00485644e6c49302fcbbbbc32d0f7b8fcead36d8074ed12214b8842aa
|
|
| MD5 |
7a627e15c6473f6bd3d18bdcecb97eee
|
|
| BLAKE2b-256 |
23cff926c3d3e6596727651e6368127d37523df42677362468b2e59abb020882
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef7d6a640facf2e9fda1ca65dfa008666da3d33d6458b7fb89d5f2edd105ff82
|
|
| MD5 |
b780685c419567b264dbe9081a6e09a0
|
|
| BLAKE2b-256 |
c5fbafeee7ac38fdc06c0baaadfae2d403332b31e64d221dbdc4fd24a4341e39
|