Clawmeter Tim Nunamaker
winget install --id=tnunamak.Clawmeter -e Clawmeter shows AI coding quota status in a system tray icon and command line interface.
winget install --id=tnunamak.Clawmeter -e Clawmeter shows AI coding quota status in a system tray icon and command line interface.
Clawmeter is a system tray and CLI quota meter for AI coding tools.
It answers the questions that matter while you are working: am I on track, what is most likely to run out, and when does it reset?
macOS:
brew install tnunamak/clawmeter/clawmeter
brew services start clawmeter
Linux:
curl -fsSL https://raw.githubusercontent.com/tnunamak/clawmeter/main/install.sh | sh -s -- --start
Windows:
Download ClawmeterSetup.exe from the latest release, verify it with SHA256SUMS.txt, then run the installer. It creates a Start Menu tray shortcut, adds clawmeter to your user PATH, and includes an uninstall entry.
Windows artifacts are currently unsigned. The future signing path is documented in the Code signing policy and SignPath readiness checklist.
clawmeter providers
WinGet will install that same setup exe once the package is accepted:
winget install --id tnunamak.Clawmeter -e
Advanced/manual fallback: download clawmeter-windows-amd64.exe from the same release if you only want the portable binary.
.\clawmeter-windows-amd64.exe providers
You can also download .deb, .rpm, macOS, Linux, and Windows binaries from the latest release.
Then run:
clawmeter setup --all
clawmeter doctor
Setup installs the mainstream local surface Clawmeter can verify today: a Claude Code statusline. Every agent can also pull the same cheap quota summary with clawmeter status --agent.
The provider logo stays in the circular center chip. The text names the quota window: 5H, 7D, 7A, 7S, or MO.
The radial meter compares actual burn with expected pace. Gray shows the shared baseline; a solid green segment means you are under pace, and a solid red segment means you are over pace.
Refresh Now when you want an immediate quota/update check.clawmeter
PROVIDER WINDOW USAGE PCT resets IN PACE
Claude 5h ██░░░░░░░░░░░░░░░░░░ 11% resets 4h00m est. 55% at reset
7d All ██████████████████░░ 89% resets 1d10h est. 112% at reset · runs out in 16h
7d Sonnet ░░░░░░░░░░░░░░░░░░░░ 2% resets 4d23h est. 7% at reset
Useful commands:
clawmeter providers # detected providers and auth status
clawmeter claude # one provider
clawmeter --json # machine-readable output
clawmeter statusline # compact Claude/statusline segment
clawmeter status --agent # token-efficient all-quota summary for AI agents
clawmeter setup --all # install mainstream local integrations
clawmeter doctor # provider and integration readiness
clawmeter --check # monitoring exit code
clawmeter update # self-update
clawmeter tray # run the tray in this session
| Provider | Tracks |
|---|---|
| Claude | 5h, 7d, model-specific windows |
| OpenAI/Codex | 5h and weekly rate limits; banked reset-credit expiry when available |
| Gemini | 24h Pro and Flash quotas |
| GitHub Copilot | Premium and chat interactions |
| Kimi | Daily and hourly limits |
| OpenRouter | Credit balance |
| JetBrains AI | Monthly credits |
| Kimi K2 | Credit balance |
Unavailable providers stay hidden by default. Use clawmeter --all to see everything Clawmeter checked.
Codex reset-credit visibility is read-only. Clawmeter shows available count and earliest expiry when Codex exposes banked resets locally, but it never redeems resets. Design notes and provider coverage are in Reset awareness.
Agent integrations
clawmeter setup --all
clawmeter setup --claude-statusline
clawmeter setup --dry-run --all
clawmeter doctor
clawmeter statusline is cache-only, so Claude Code can call it frequently without refreshing provider APIs or burning quota. clawmeter status --agent is the high-precision pull command for Codex, Claude, Gemini CLI, or any other agent when quota context is useful.
tmux users can opt in explicitly:
clawmeter setup --tmux
Install options
Linux installer defaults to a user install: binary in ~/.local/bin, app launcher entry, no tray start, no launch-at-login, and no system package install. Pass --start to launch the tray now, or --autostart to enable launch-at-login.
curl -fsSL https://raw.githubusercontent.com/tnunamak/clawmeter/main/install.sh | sh -s -- --dry-run
curl -fsSL https://raw.githubusercontent.com/tnunamak/clawmeter/main/install.sh | sh -s -- --start --autostart
curl -fsSL https://raw.githubusercontent.com/tnunamak/clawmeter/main/install.sh | sh -s -- --uninstall
Windows users should prefer ClawmeterSetup.exe. WinGet is the package-manager path after acceptance. clawmeter-windows-amd64.exe is the portable fallback. install.ps1 remains an advanced scripting fallback with -LocalBinary, -Start, -Startup, and -Uninstall; if you use it directly, download the script first and run it from a folder you trust. Avoid copy-pasting download-and-execute one-liners.
macOS Homebrew installs a local app wrapper. To show it in Applications/Launchpad:
mkdir -p ~/Applications
ln -sfn "$(brew --prefix clawmeter)/Clawmeter.app" ~/Applications/Clawmeter.app
Configuration
Config file: ~/.config/clawmeter/config.yaml
clawmeter config show
clawmeter config enable openai
clawmeter config disable copilot
clawmeter config set poll_interval 600
clawmeter config set warning_threshold 80
clawmeter config set critical_threshold 95
Launch at login
clawmeter tray --install
clawmeter tray --uninstall
clawmeter tray starts the tray for the current desktop session. For a persistent desktop tray, use the installer/Start Menu shortcut or clawmeter tray --install.
On macOS with Homebrew, you can also use:
brew services start clawmeter
brew services stop clawmeter
Provider credential sources
| Provider | Source |
|---|---|
| Claude | Claude Code OAuth token |
| OpenAI/Codex | ~/.codex/auth.json |
| Gemini | ~/.gemini/ OAuth credentials |
| GitHub Copilot | ~/.config/github-copilot/hosts.json |
| Kimi | ~/.kimi/credentials/kimi-code.json |
| OpenRouter | OPENROUTER_API_KEY or config |
| JetBrains AI | IDE config files |
| Kimi K2 | KIMI_K2_API_KEY or config |
Build from source
git clone https://github.com/tnunamak/clawmeter.git
cd clawmeter
make install # CLI only
make install-tray # with system tray support
Tray builds require CGO. Linux also needs libayatana-appindicator3-dev.
Clawmeter reads existing credentials from your AI coding tools and queries their usage APIs. Results are cached at ~/.cache/clawmeter/usage.json for 60 seconds, so the CLI and tray do not hammer provider APIs. See Privacy Policy, Security Policy, and Third-party components.