claude-meter
Display your Claude.ai plan usage as ASCII meters in the terminal.
Installation
pip install claude-meter
Authentication
claude-meter needs an OAuth token to query your Claude.ai usage. It looks for
credentials in the following order:
CLAUDE_CODE_OAUTH_TOKENenvironment variable — if set, this value is used directly as the Bearer token.~/.claude/.credentials.json— the file created automatically when you log in with Claude Code. The tool reads theclaudeAiOauth.accessTokenfield from this file.
Using Claude Code credentials (recommended)
If you already use Claude Code, no extra setup is needed — just make sure you are logged in:
claude # log in if prompted
The credentials file is created at ~/.claude/.credentials.json and
claude-meter will pick it up automatically.
Using an environment variable
If you prefer to supply the token yourself, export it before running the command:
export CLAUDE_CODE_OAUTH_TOKEN="your-token-here"
claude-meter
This is useful in CI, scripts, or environments where Claude Code is not installed.
Usage
Show usage and refresh every 30 seconds (default):
claude-meter
Show usage once and exit:
claude-meter --update-period 0
Refresh every 5 seconds:
claude-meter --update-period 5
Example Output
Claude Meter
--------------------------------------------------
5-Hour Session
[========> ] 27.0% (resets in 3h 42m)
7-Day Weekly
[===========> ] 35.0% (resets in 4d 2h)
7-Day Opus
[ ] 0.0% (no reset scheduled)
Options
| Option | Default | Description |
|---|---|---|
--update-period |
30 |
Refresh interval in seconds. Use 0 to display once and exit. |
--no-color |
Disable colors and emojis. | |
--filter TEXT |
Show only limits whose name contains TEXT (case-insensitive). | |
--sort |
Sort limits by utilization descending. | |
--json |
Output limits as JSON. | |
--version |
Show version and exit. | |
--help |
Show help and exit. |
Source
GitHub: https://github.com/breed/claude-meter
License
MIT
Metadata
Release files for claude-meter 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| claude_meter-0.2.0.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_meter-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / claude_meter-0.2.0.tar.gz
| Download URL | claude_meter-0.2.0.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d85fd576bb5c1e0be50777873413c8bac291e2932929498b2542083165cdd7fe
|
|
BLAKE2b-256 checksum How to use checksums |
6adb472d61be341f08cd773ac00da9175d706d457a9a3254bb9296bc97660ed6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / claude_meter-0.2.0-py3-none-any.whl
| Download URL | claude_meter-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a17c19c5e0655fbd51a1d36855ac587f086c9018b0e9a428cba122c2c47c9d3
|
|
BLAKE2b-256 checksum How to use checksums |
40c96e87123616e531e978e12ab72fc310e103cc82fae53d39dccf3fbac7d6b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|