A native macOS menu bar app that shows Claude Code usage in two rolling windows: 5-hour and 7-day.
Reads server-calculated utilization directly from the Anthropic OAuth Usage API — no token counting, no estimates.
- Reads OAuth credentials from macOS Keychain (
Claude Code-credentials, written by Claude Code on login) - Calls
GET https://api.anthropic.com/api/oauth/usageevery 60 seconds - Displays server-returned utilization % and reset countdown in the menu bar
Credentials are cached in memory — Keychain is accessed only once per session (or after token expiry).
For a detailed explanation of what the app reads from Keychain and what it does with the token, see docs/guide-keychain-access.md.
-
macOS 14 or later
-
Claude Code installed and logged in (provides the OAuth token)
-
Xcode Command Line Tools or Xcode.app
xcode-select --install
-
Get the repository root.
REPOSITORY_ROOT=$(git rev-parse --show-toplevel) cd $REPOSITORY_ROOT
-
Run the app in debug mode (CLI only — no menu bar icon).
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer swift run
-
Get the repository root.
REPOSITORY_ROOT=$(git rev-parse --show-toplevel) cd $REPOSITORY_ROOT
-
Build the
.appbundle../scripts/make_app_bundle.sh
This creates
./dist/ClaudeUsageMenuBar.app. -
Install the app.
-
User-only (recommended):
cp -R "./dist/ClaudeUsageMenuBar.app" "$HOME/Applications/"
-
System-wide:
sudo cp -R "./dist/ClaudeUsageMenuBar.app" "/Applications/"
-
-
Launch the app once so macOS registers it.
- Open System Settings → General → Login Items.
- Under Open at Login, click +.
- Select
ClaudeUsageMenuBar.appfrom/Applicationsor~/Applications.
Note: If the app does not appear in the picker, open
~/Applicationsin Finder and dragClaudeUsageMenuBar.appdirectly into the Open at Login list.
The menu bar title shows current 5h utilization: ( ᐛ )σ 42.5%
Click the icon to open the popover:
5h ████████░░ 42.5%
Resets in: 2h 34m
7d ██░░░░░░░░ 18.3%
Resets in: 4d 12h
Burn rate: +0.3%/min
- Refresh — fetch immediately
- Quit — exit the app