Live Claude usage limits (session & weekly) on your taskbar / menu bar — so you never hit a limit by surprise.
Project description
Claudometer
Your Claude usage limits, always visible — right on your taskbar.
A tiny desktop widget that shows your live session & weekly usage, so you never hit a limit by surprise.
Unofficial — not affiliated with, or endorsed by, Anthropic. Details ↓
Why
Claude's Pro / Max / Team plans enforce a rolling 5‑hour session limit and weekly limits. Use Claude Code heavily and it's easy to burn through them mid‑task — then get rate‑limited at the worst moment. Checking today means opening the /usage panel and remembering to look.
Claudometer keeps that number on‑screen all the time, as clean floating text that sits on your taskbar by default — sampling its color so it blends right in:
🖱️ Put it anywhere
The strip is a free‑floating, always‑on‑top widget — not locked to the taskbar. Drag it to a screen edge, over a window, or onto a second monitor, and it remembers the spot. (On macOS the native menu‑bar item is the default; the same floating widget is available with
app.py bar— see Platform support.)
Session 61%— your current 5‑hour window, with a live countdown to reset.Weekly 18%— your 7‑day, all‑models usage.- A color dot (🟢 <50% · 🟡 50–80% · 🔴 >80%) that flips to a clear "limit reached" when you're maxed out, plus a graceful offline state:
Click it for the full breakdown — per‑meter reset times, per‑model usage, light/dark:
What you get
- 🎯 Pace yourself — spot a limit before you hit it.
- ⚡ Zero context‑switch — the number's already there; no panel to open.
- 🔒 Zero setup — reuses your existing Claude login. Nothing to configure.
- 🪶 Featherweight — ~0.03% CPU idle, ~50 MB RAM. You won't notice it.
- 🔔 Alerts — optional desktop toast when you cross 80% / 90%.
- ⏭️ Resume — one click picks up interrupted work when your limit resets (auto‑resume optional).
- 🖥️ Out of the way — auto‑hides over fullscreen movies/games (or set it to always show).
- ⚙️ Tunable — a built‑in settings panel (no file editing) for theme, meters, alerts, accent, cost view, and more.
More screenshots
Windows — the strip on the taskbar with the details popover open:
macOS — native menu‑bar item with a dropdown breakdown:
Threshold alerts — a desktop toast the moment you cross a limit you set:
Estimated cost (opt‑in) — today's tokens + a rough dollar figure in the popover (a local estimate, not a bill):
Always‑visible mode — keep it readable even over a fullscreen movie or game:
Install
Requires a Claude Pro / Max / Team subscription, signed into Claude Code at least once (that's where the login lives).
Easiest — one command, any OS:
pipx install claudometer # no pipx? → python -m pip install --user pipx
claudometer
Update later with pipx upgrade claudometer.
Windows:
scoop install https://raw.githubusercontent.com/ali-dev178/claudometer/main/packaging/scoop/claudometer.json
…or download the installer (ClaudometerSetup.exe, offers "start on sign‑in") or the portable Claudometer.exe from Releases.
macOS:
brew install --cask ali-dev178/claudometer/claudometer
…or download Claudometer.dmg from Releases and drag it to Applications.
From source (Python 3.9+):
git clone https://github.com/ali-dev178/claudometer.git && cd claudometer
pip install -r requirements.txt
pythonw.exe app.py bar # Windows (no console) · python3 app.py # macOS
Unsigned downloads: on first launch, Windows ("More info → Run anyway") or macOS (right‑click → Open) may ask you to confirm. Installing via
pipx/scoop/brewskips that.Windows 11 tip: new taskbar items can get tucked away — drag Claudometer where you want it; it remembers the spot.
Resume when your limit resets
Hit the session limit mid‑task and everything stalls? Claudometer watches your usage recover and helps you pick right back up.
- Tier 1 — notify + one click (default, safe). On reset, a notification appears; click Resume to open a terminal in the interrupted session's folder running
claude --resume— you stay in control. - Tier 2 — auto‑resume (opt‑in, off by default). After a "resuming in 20s — click to cancel" window, it resumes unattended so work continues while you're away.
⚠️ Tier 2 runs Claude Code with nobody watching. It's off unless you set
resume_auto = true, and it's guard‑railed: a turn cap plus the saferacceptEditsmode by default (full--dangerously-skip-permissionsonly if you also opt in). Enable it only for work you trust to run on its own.
Configure
In‑app (recommended): click ⚙ Settings in the popover (or right‑click the strip → Settings…). Adjust theme, meters, accent, poll interval, alerts, cost view, fullscreen behavior, and resume — changes apply instantly and save to ~/.claudometer.toml for you.
Or edit the file by hand — copy claudometer.example.toml to ~/.claudometer.toml:
poll = 90 # seconds between polls (60–300)
theme = "auto" # auto | light | dark
metrics = ["session", "weekly"] # which meters on the strip
hide_on_fullscreen = true # false = stay visible, even over fullscreen apps
alerts = true # desktop toast on threshold crossings
alert_thresholds = [80, 90]
show_cost = false # estimated token/$ line in the popover
# accent = "#d97757" # override the accent color
resume_notify = true # one-click resume when the session limit resets
resume_auto = false # Tier 2: unattended auto-resume (opt-in, risky)
resume_prompt = "Continue where you left off."
resume_max_turns = 30 # Tier 2: cap agentic turns
# resume_skip_permissions = false # Tier 2: --dangerously-skip-permissions (else acceptEdits)
Optional environment overrides:
| Env var | Purpose |
|---|---|
CLAUDOMETER_CONFIG |
Path to the config file (default ~/.claudometer.toml). |
CLAUDE_CONFIG_DIR |
Where to read Claude credentials (default ~/.claude). |
CLAUDE_WIDGET_POLL |
Poll interval in seconds (60–300), for the tray/menu‑bar. |
CLAUDE_WIDGET_FAKE |
Testing: "95,40,0" = session,weekly,scoped % (skips the network). Try $env:CLAUDE_WIDGET_FAKE="95,40,0"; py app.py bar to preview the red state. |
On macOS / Linux the default menu‑bar / tray shows live usage; the full feature set (alerts, cost, resume, themes, settings panel) runs in the floating widget —
app.py bar(see Platform support).
Run modes: app.py bar (Windows taskbar strip — default & recommended) · app.py tray (tray icon) · app.py both · app.py (auto per platform). Strip: left‑click = popover · drag = move it anywhere on screen (remembered) · right‑click = menu.
▶ Try a demo
Want to see every feature without waiting to hit a real limit? Click Settings → ▶ Try a demo (or right‑click the strip → Try a demo, or run
app.py demo). Your widget switches in place (one window, not a second) into a ~50‑second offline tour covering every state — all clearly badged DEMO:
- the color dot cycling green → amber → red
- session and weekly threshold alerts (80% / 90%)
- the limit‑reached and rate‑limited states
- resume‑on‑reset — both Tier 1 (notify + one click) and Tier 2 (auto‑resume countdown)
- the estimated cost line (click the strip to see it) and the graceful offline state
Pick ◼ Exit demo to snap back to your real usage. No network, no credentials, nothing real touched.
Start on login: flip the Start on login toggle — in Settings → Display on the Windows/floating widget, or Settings → Start at login in the macOS menu bar. It wires up the native per‑user autostart for you (Windows Run key · macOS LaunchAgent · Linux XDG autostart) and reproduces however you launched the widget, so there's nothing to hand‑edit. To do it manually instead:
Manual auto-start (advanced)
Windows: add a shortcut to pythonw.exe "…\app.py" bar in shell:startup.
macOS: add the standalone Claudometer.app to System Settings → Login Items, or use a LaunchAgent for a source install —
~/Library/LaunchAgents/com.claudometer.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
<key>Label</key><string>com.claudometer</string>
<key>ProgramArguments</key>
<array><string>/usr/bin/python3</string><string>/absolute/path/to/claudometer/app.py</string></array>
<key>RunAtLoad</key><true/>
</dict></plist>
Then: launchctl load ~/Library/LaunchAgents/com.claudometer.plist
How it works
Claudometer reads the OAuth token Claude Code already stores locally (~/.claude/.credentials.json, or the macOS Keychain) and polls Anthropic's server‑reported usage endpoint — the same source the /usage panel uses:
GET https://api.anthropic.com/api/oauth/usage
So it shows true plan % from Anthropic's backend — not a local token‑cost guess (unlike tools that tally *.jsonl transcripts). Tokens refresh automatically when they expire.
- Privacy — your token is read locally; the only network call is the authenticated request to
api.anthropic.com. No third‑party servers, no telemetry, no analytics. - Footprint — ~0.03% CPU idle, ~50 MB RAM. The strip only redraws when a value changes; the popover only while it's open.
Troubleshooting
It shows offline right after I start it, then starts working once I open Claude Code in a terminal.
Expected. Claudometer has no login of its own — it reads the OAuth token Claude Code stores in ~/.claude/.credentials.json on every poll. If that token has expired and Claudometer can't refresh it at that moment (or the first poll hits a brief network blip at login), it degrades to a graceful offline state instead of nagging you to re‑login. Opening Claude Code refreshes the token and rewrites the credentials file, so Claudometer's next poll picks up the fresh token and stats appear. It also self‑heals on its own — it proactively refreshes a soon‑to‑expire token — so you don't strictly need to open a terminal.
How soon do stats appear? Within one poll interval — up to ~90s by default (CLAUDE_WIDGET_POLL, clamped 60–300s) — once a usable token is on disk and the account has active limit windows. A grey - (no data) means the token is fine but there's no usage to show yet; that's different from offline.
It says offline and never recovers. Confirm Claude Code itself works (claude in a terminal), check your internet connection, and make sure ~/.claude/.credentials.json exists (or CLAUDE_CONFIG_DIR points at the right folder). If Claude Code has fully logged out, re‑login there and Claudometer will follow.
Platform support
| Platform | UI | Status |
|---|---|---|
| Windows 10/11 | Taskbar strip + click‑to‑open popover — full feature set | ✅ Full |
| macOS | Menu‑bar item (default) or the full floating widget via app.py bar |
✅ Full |
| Linux | Tray icon (default) or the floating widget via app.py bar |
🧪 Experimental |
The floating widget is one cross‑platform codebase — the same strip, drag, popover, alerts, resume, settings panel, cost and demo run on every OS. On macOS the default is the native menu bar; python3 app.py bar gives you the full floating widget.
Roadmap
Shipped: desktop alerts · config file + in‑app settings panel · estimated‑cost view · standalone binaries + release CI · pipx / Scoop / Homebrew installs · cross‑platform floating widget (macOS/Linux) · one‑click Check for Updates · Start on login toggle.
Next: usage sparkline over the session · per‑model cost breakdown · published winget listing.
Ideas and PRs welcome — open an issue.
Contributing
pip install -r requirements.txt && py app.py bar # run it
pip install -r requirements-dev.txt && pytest # run the tests (also in CI)
usage_core.py = data/auth (no UI deps) · render.py = all the Pillow drawing · settings.py / cost.py / resume.py = config, cost estimation, session‑resume · the platform adapters (widget_bar.py, menubar_mac.py, tray_windows.py) are thin. The tests/ suite (~385 checks on the core logic) runs on every push via CI; regenerate the README images with py assets/make_assets.py (stills), py assets/capture_settings.py (the Settings window) and py assets/make_hero_gif.py (the animated hero).
⚠️ Disclaimer
Claudometer is an independent, unofficial tool — not affiliated with, authorized, or endorsed by Anthropic. It relies on an undocumented usage endpoint that may change or break at any time, and reads your local Claude Code credentials on your own machine. Use at your own risk and in accordance with Anthropic's Terms of Service. "Claude" is a trademark of Anthropic, PBC.
License
MIT © 2026 Muhammad Ali
Project details
Release history Release notifications | RSS feed
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 claudometer-1.1.9.tar.gz.
File metadata
- Download URL: claudometer-1.1.9.tar.gz
- Upload date:
- Size: 77.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3891dc26b58478050d0dd3d816a37d8e23af8047c66b72d479994cd3f06c3d79
|
|
| MD5 |
d887f128857e4638ea39b02b9e03d017
|
|
| BLAKE2b-256 |
4351227dd4d2569ddba0c8ab434705b599fb70450a4a8a878847fa9a784fc30f
|
Provenance
The following attestation bundles were made for claudometer-1.1.9.tar.gz:
Publisher:
release.yml on ali-dev178/claudometer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claudometer-1.1.9.tar.gz -
Subject digest:
3891dc26b58478050d0dd3d816a37d8e23af8047c66b72d479994cd3f06c3d79 - Sigstore transparency entry: 2144373715
- Sigstore integration time:
-
Permalink:
ali-dev178/claudometer@12c98c3827729d00abc6dd84fddf846013642bf8 -
Branch / Tag:
refs/tags/v1.1.9 - Owner: https://github.com/ali-dev178
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@12c98c3827729d00abc6dd84fddf846013642bf8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file claudometer-1.1.9-py3-none-any.whl.
File metadata
- Download URL: claudometer-1.1.9-py3-none-any.whl
- Upload date:
- Size: 56.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
163169eb9234dd48cbb4fd92272883d1be3d4d559a8a467e2cf69b70300909bf
|
|
| MD5 |
0babb6912f0d4d00069fd5ba3af53954
|
|
| BLAKE2b-256 |
74d3023ba60dbdcf2d20aff12ba8886f34cf65c72825b568eff6de46360d578d
|
Provenance
The following attestation bundles were made for claudometer-1.1.9-py3-none-any.whl:
Publisher:
release.yml on ali-dev178/claudometer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claudometer-1.1.9-py3-none-any.whl -
Subject digest:
163169eb9234dd48cbb4fd92272883d1be3d4d559a8a467e2cf69b70300909bf - Sigstore transparency entry: 2144373788
- Sigstore integration time:
-
Permalink:
ali-dev178/claudometer@12c98c3827729d00abc6dd84fddf846013642bf8 -
Branch / Tag:
refs/tags/v1.1.9 - Owner: https://github.com/ali-dev178
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@12c98c3827729d00abc6dd84fddf846013642bf8 -
Trigger Event:
push
-
Statement type: