A lightweight native macOS menu bar app that displays your Claude usage limits and reset times.
- Live usage percentage in menu bar (5-hour session)
- Hover countdown - hover over the percentage to see time until reset with a typewriter animation (hours with ¼½¾ fractions, then minutes and seconds)
- 5-hour session usage with reset countdown
- Weekly limits with reset date
- Sonnet-specific weekly limit tracking
- Extra usage spending ($X/$Y format)
- Auto-refresh every 1, 5, 30, or 60 minutes
- Native Swift - no Python, no dependencies
- Lightweight - ~50 MB RAM (vs ~90 MB Python version)
- macOS 12.0+
- Claude Code installed and logged in
- Claude Pro or Max subscription
- Download
ClaudeUsage.app.zipfrom Releases - Unzip and drag to
/Applications - Double-click to run
- If macOS blocks it: System Settings → Privacy & Security → Open Anyway
git clone https://github.com/cfranci/claude-usage-swift.git
cd claude-usage-swift
./build.sh
open ClaudeUsage.appOr manually:
swiftc -o ClaudeUsage.app/Contents/MacOS/ClaudeUsage ClaudeUsage.swift -framework Cocoa
open ClaudeUsage.appThe app reads Claude Code's OAuth credentials from macOS Keychain and queries the Anthropic usage API:
- Reads token from Keychain (
Claude Code-credentials) - Calls
api.anthropic.com/api/oauth/usage - Displays utilization percentages and reset times
The usage API is free - no tokens consumed.
- Open System Settings → General → Login Items
- Click + under "Open at Login"
- Select
ClaudeUsage.app
- Make sure Claude Code is installed and logged in: Run
claudein terminal - For Pro/Max users: Your OAuth token may have expired. Follow these steps:
- Open terminal and run:
claude setup-token - This opens a browser to re-authenticate with your Claude subscription
- After authenticating, restart the app
- Open terminal and run:
- API key users: This app requires a Pro or Max subscription. API credits cannot be used to track subscription usage limits.
The OAuth token in your Keychain has expired. To fix:
- Delete old credentials:
security delete-generic-password -s "Claude Code-credentials" - Run
claude setup-tokento get a fresh token - Restart Claude Usage app
- Claude Pro or Max subscription (not API credits)
- Valid billing on your Anthropic account
- OAuth tokens come from your subscription, not API keys
- Go to System Settings → Privacy & Security
- Find "ClaudeUsage was blocked" and click Open Anyway
- Ensure Xcode Command Line Tools:
xcode-select --install
Looking for the Python version? See claude-usage-tracker.
MIT



