A minimal macOS menu bar app that shows your Claude Code usage at a glance.
Claude Code doesn't expose a persistent usage indicator. The only way to check is to open a session and type /usage. When you're running multiple Claude Code sessions across different terminal windows, checking your usage means either interrupting a running agent mid-task or opening a new terminal just to see a number. Both are disruptive.
Many community tools solve this by reading the OAuth token from the macOS Keychain and calling Anthropic's usage API directly. But macOS will prompt you every time a third-party app tries to access that Keychain item — not a smooth experience, and handing your OAuth token to another process is a legitimate security concern.
This project was entirely vibe-coded using Claude Code itself — which is also how I ran into the problem in the first place.
CC Usage Bar takes a different approach. It doesn't touch your Keychain or make any network calls itself. It simply runs claude the same way you would, captures the /usage output, and displays it in your menu bar — one click away, always accurate.
When you click the menu bar icon, CC Usage Bar opens a popover containing an embedded terminal. Behind the scenes it:
- Spawns a real Claude Code session in a pseudo-terminal (PTY)
- Sends the
/usagecommand automatically - Captures the output and renders it with full ANSI color fidelity — exactly as it appears in your terminal
- Terminates the session immediately after
There is no API scraping, no token parsing, no reverse engineering. The data comes straight from Claude Code itself, so it is always 100% accurate and reflects the latest state.
- 🪶 Minimal — a single menu bar icon, one popover, no windows
- 🎯 Accurate — reads directly from Claude Code's own
/usageoutput - 🔒 Safe — no API calls, no credentials stored, no hacks; just runs
claudethe same way you would - ⚡ Zero setup — install, open, click the icon (requires Claude Code already configured on your machine)
- 🍎 Native — built in Swift with SwiftUI, runs as a lightweight menu bar agent
- macOS 14 Sonoma or later
- Claude Code installed and logged in (
claudemust be on your PATH)
- Download the latest
CCUsageBar.zipfrom the Releases page - Unzip and move
CCUsageBar.appto your/Applicationsfolder
Note: Since this app is not notarized, macOS Gatekeeper will block it on first launch. To open it, either:
- Right-click the app → Open → Open
- Or run in Terminal:
xattr -d com.apple.quarantine /Applications/CCUsageBar.app
- Clone the repository
- Open
CCUsageBar/CCUsageBar.xcodeprojin Xcode - Build and run (Cmd+R)
The app runs as a menu bar agent — there is no Dock icon. Look for the chart icon in your menu bar.
- Left-click the menu bar icon to open the usage popover
- Click anywhere outside the popover to dismiss it
- Right-click the menu bar icon to quit
Each time you open the popover, it fetches fresh usage data.
MIT
⭐ If this tool helps you avoid hitting Claude limits, consider giving it a star!
