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 | Provenance | Actions |
|---|---|---|---|---|
| claude_meter-0.2.0.tar.gz | 8.8 kB | Without provenance | Details for claude_meter-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| claude_meter-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for claude_meter-0.2.0-py3-none-any.whl |
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
|
Security for claude-meter 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.