Claude Code, Codex, Cursor, Kimi Code, z.ai, and Qwen usage limits, plus your DeepSeek balance, directly in your macOS menu bar.
A free, private, native Mac app that shows your 5-hour window, weekly cap, and when each one resets, without opening a browser.
Website · Install · Install with an agent · Quick start · Update and uninstall · How it works · Changelog · Architecture · Contributing · Security
brew install --cask betoxf/tap/usagebarUsagebar opens by itself when the install finishes. Look for it in the menu bar.
Run the command for your tool and approve the brew step when it asks. Each one starts the agent with the same request.
Claude Code
claude "Install Usagebar on this Mac: run brew install --cask betoxf/tap/usagebar (brew upgrade --cask usagebar if it is already installed) and check that it is running. If Homebrew is missing, ask me first."Codex
codex "Install Usagebar on this Mac: run brew install --cask betoxf/tap/usagebar (brew upgrade --cask usagebar if it is already installed) and check that it is running. If Homebrew is missing, ask me first."Cursor
cursor-agent "Install Usagebar on this Mac: run brew install --cask betoxf/tap/usagebar (brew upgrade --cask usagebar if it is already installed) and check that it is running. If Homebrew is missing, ask me first."Gemini CLI, Grok Build, OpenCode, and Droid
Gemini CLI
gemini "Install Usagebar on this Mac: run brew install --cask betoxf/tap/usagebar (brew upgrade --cask usagebar if it is already installed) and check that it is running. If Homebrew is missing, ask me first."Grok Build
grok "Install Usagebar on this Mac: run brew install --cask betoxf/tap/usagebar (brew upgrade --cask usagebar if it is already installed) and check that it is running. If Homebrew is missing, ask me first."OpenCode
opencode --prompt "Install Usagebar on this Mac: run brew install --cask betoxf/tap/usagebar (brew upgrade --cask usagebar if it is already installed) and check that it is running. If Homebrew is missing, ask me first."Droid
droid "Install Usagebar on this Mac: run brew install --cask betoxf/tap/usagebar (brew upgrade --cask usagebar if it is already installed) and check that it is running. If Homebrew is missing, ask me first."Kimi Code, ZCode, or any other agent: paste this into a new chat.
Install Usagebar on this Mac: run brew install --cask betoxf/tap/usagebar (brew upgrade --cask usagebar if it is already installed) and check that it is running. If Homebrew is missing, ask me first.
Download Usagebar.zip from the latest release. Quit any running Usagebar, replace /Applications/Usagebar.app, and launch the replacement. Do not keep or launch another copy from Downloads.
Note
Current release artifacts are not notarized. The Homebrew cask clears the quarantine attribute during installation. If you prefer not to do that, build from source.
- macOS 14 Sonoma or newer
- A supported provider account
- For zero-setup discovery, an authenticated Claude, Codex, or Kimi Code CLI session
- Install and launch Usagebar.
- If you already use the provider CLIs, Usagebar discovers their local credentials automatically.
- Otherwise the setup window opens. Click Sign In next to each tool you use and it shows Connected on its own when you finish. To open it again, click Usagebar Setup in the menu bar, or choose Connections… under the panel's ⋯ button. Click Connected on a row to disconnect that tool.
- Click or right-click the menu-bar item to open the usage panel, and click a provider there to show it in the bar. Settings are under the panel's ⋯ button.
The setup window runs these for you. You can also run them yourself, then click Refresh in Usagebar.
| Tool | Terminal sign-in | Without the CLI |
|---|---|---|
| Claude Code | claude auth login |
Sign In uses an in-app claude.ai session. |
| Codex | codex login |
Get Codex opens the download page. |
| Cursor | cursor-agent login |
Get Cursor CLI opens the download page. Recent Cursor apps encrypt their sign-in, so Usagebar reads the CLI's. |
| Kimi Code | kimi login |
Add Key saves a Kimi Code API key or kimi-auth web token. |
| z.ai | None | Add Key saves your API key, encrypted on this Mac. Usagebar also reads Z_AI_API_KEY or ~/.zai/config.json with {"apiKey": "..."}. |
| Qwen | None | Sign In opens a QwenCloud sign-in inside Usagebar. Token Plan API keys can't read their own limits, so Usagebar keeps the console session, encrypted on this Mac. |
| DeepSeek | None | Sign in to DeepSeek Harness, and Usagebar finds it on its own. Otherwise Add Key saves a DeepSeek API key, encrypted on this Mac. Usagebar also reads DEEPSEEK_API_KEY or api_key in ~/.deepseek/config.toml. |
Re-authenticate from the terminal — this is the reliable fix:
- Open Terminal and run
claude(orclaude login). - Complete the login it prompts for.
- Click Refresh in Usagebar. Usage appears within a few seconds.
Usagebar reads the credentials Claude Code writes locally and never rotates them itself, so a fresh terminal login is always picked up automatically.
Since Usagebar already shows your providers' usage, their own menu-bar icons are redundant. The reliable way to remove them is each app's own setting: ChatGPT and Claude both offer a "show in menu bar" toggle in their preferences. (Usagebar deliberately does not try to hide other apps' icons itself: modern macOS — especially on notched MacBooks — no longer allows the lightweight divider trick that utilities like Dozer used, and doing it properly requires the private-API machinery of a dedicated tool like Bartender or Ice.)
Click the status item to open the usage panel; its ⋯ button holds these settings.
| Control | Behavior |
|---|---|
Refresh (⌘R) |
Rediscover credentials and fetch enabled providers, subject to server retry deadlines. |
| Display mode | Show both windows, the five-hour window only, or the weekly window only. |
| Provider visibility | Choose which detected providers appear, rotate, and refresh in the background. |
| Switch cadence | Rotate providers automatically, or pick one in the panel (Manual). |
| Launch at Login | Register or remove Usagebar as a macOS login item. |
| Sign out | Reset the selected provider's Usagebar state; provider CLI sessions remain provider-owned. |
| Updates | Check for a new version, or turn Update Automatically on or off. |
Homebrew installs update themselves unless you turn off Update Automatically under the panel's ⋯ button. To update from the terminal:
brew update && brew upgrade --cask usagebarA copy installed from the zip can't update itself, so repeat the download steps or reinstall with Homebrew.
To remove Usagebar:
brew uninstall --cask usagebarTo also delete its settings and caches:
brew uninstall --cask --zap usagebarIf you installed from the zip, quit Usagebar and delete /Applications/Usagebar.app. Your sign-ins for Claude Code, Codex, and the other CLIs stay as they are.
If someone asks you to install Usagebar:
- Check that
sw_vers -productVersionis 14 or newer. Usagebar runs only on macOS. - Run
brew install --cask betoxf/tap/usagebar, orbrew upgrade --cask usagebarif it is already installed. Ifbrewis missing, ask before installing Homebrew, or offer the release zip. - Run
pgrep -x Usagebarto confirm it is running. If it isn't, runopen -a Usagebar. - Tell them to look for Usagebar in the menu bar. If it shows Setup, the setup window connects their tools.
Don't use sudo, read credential files, or ask for API keys or tokens. Usagebar finds existing sign-ins on its own, and the commands in Connect your tools are interactive, so leave them to the person. Usagebar has no command-line interface or API: usage appears only in its menu-bar item and panel.
Usage limits matter most while you are working. Usagebar keeps your Claude Code, Codex, and Cursor limits (the weekly allowance, plus the current five-hour window on plans that have one) visible in the menu bar, then gets out of the way. Click it for a panel with every provider, a meter for each limit, and its reset time.
| Capability | What it gives you |
|---|---|
| Multiple providers | Track Claude, Codex, Kimi Code, Cursor, z.ai, Qwen, and DeepSeek from one status item. |
| Prepaid balance | See the DeepSeek credits you have left, for an API key or a DeepSeek Harness sign-in. |
| At-a-glance limits | See rolling-window and weekly percentages without opening a browser. |
| Focus-aware switching | Show the provider of the AI tool you used last: the Claude, ChatGPT/Codex, Cursor or Grok Bot, Kimi Code, ZCode, or DeepSeek Harness app, or the Claude Code, Codex, Cursor, Kimi, or DeepSeek Harness CLI running in your terminal. |
| Usage panel | One card per provider with its plan, a meter per limit, and the time until it resets. Click a card to show that provider in the menu bar. |
| Local credential discovery | Reuse the Claude Code, Codex, Cursor, Kimi Code, z.ai, and DeepSeek sign-ins already on the Mac. No API keys to paste. |
| Privacy-first operation | No Usagebar account, telemetry, analytics, or intermediary backend. |
| Lightweight runtime | A native Swift menu-bar app with no web runtime or bundled service. |
How do I check my Claude Code usage limit on a Mac?
Install Usagebar and sign in to Claude Code as usual (claude login). The menu bar shows your weekly usage, plus your five-hour window when your plan has one; the panel adds the Fable limit when your plan has one, and when each resets.
Can I see my Codex or ChatGPT rate limits?
Yes. Usagebar reads the Codex CLI sign-in (codex login) and shows the Codex primary and weekly windows with their reset times.
Does it work with Cursor and Grok Bot? Yes. Cursor is picked up from the Cursor app's or Cursor Agent CLI's sign-in, and its weekly allowance is shared with Grok Bot, so the menu bar shows them together.
Is Usagebar free? Does it collect my data? It's free and open source (MIT). There is no Usagebar account, no telemetry, and no server in between: usage travels directly between your Mac and each provider.
Is there a Windows or Linux version?
One is in development in desktop/: the same panel in the system tray.
Usagebar is a local status-bar client. It discovers credentials already stored by provider tools, requests usage directly from the provider, normalizes the response, and renders it with AppKit.
Claude CLI / Keychain ───┐
Codex CLI auth.json ─────┼─> local credential discovery ─> provider API ─> menu-bar status
Kimi Code credentials ───┘
The app refreshes the provider on screen every two minutes by default, or every five minutes in Low Power Mode. Enabled providers that are not on screen refresh five times less often, and as soon as they are shown or the menu opens; new sign-ins are picked up at that slower pace or when you click Refresh. Hidden providers stop polling and refresh when re-enabled. No connection stays open between refreshes. Background requests and automatic provider rotation pause while the display or Mac sleeps; stale usage refreshes on wake. Failed providers retry less frequently, respect server cooldowns, and keep the last successful reading. Last Updates in the menu shows how fresh each provider's data is.
Credential discovery runs off the UI thread. Menu-bar rendering uses cached availability and reuses unchanged images; menus update when opened. Usagebar never refreshes Claude Code's or Codex's sign-in, so it can't sign you out of either; when one's access token expires, Usagebar asks that tool to renew it in the background, and Claude Code a few minutes before it expires. See Architecture for component boundaries, credential priority, and network destinations.
- Usage data travels directly between your Mac and the selected provider.
- Usagebar does not operate a backend and does not collect telemetry or analytics.
- CLI credential files are read locally and are never copied to a Usagebar service.
- To follow a CLI in your terminal, Usagebar reads the command line and Anthropic gateway setting of the foreground command in your terminal sessions. It keeps none of it and needs no Accessibility, Automation, or Screen Recording access.
- Claude browser-session credentials saved by the app are encrypted locally with AES-256-GCM using a device-derived key.
- Provider APIs and authentication formats can change independently of Usagebar.
Report suspected vulnerabilities privately according to the security policy. Never include tokens, cookies, session keys, or unredacted credential files in an issue.
You need Xcode 26 or newer with its bundled macOS SDK.
git clone https://github.com/betoxf/Usagebar.git
cd Usagebar
./script/build_and_run.sh --verifyCreate a distributable archive with make release. The clean archive is written to build/Usagebar.zip.
JustaUsageBar/ macOS application source and asset catalog
Models/ provider-neutral usage models
Services/ credential discovery and provider API clients
ViewModels/ refresh orchestration and persisted preferences
Views/ status item, menus, setup, and settings UI
assets/brand/ approved logo and standalone icon masters
Casks/ Homebrew cask definitions
docs/ architecture, brand, and release documentation
script/ local build and run entrypoint
.github/ CI, issue forms, and pull request guidance
| Document | Purpose |
|---|---|
| Architecture | Runtime components, data flow, credentials, and network boundaries. |
| Brand assets | Approved identity files and usage guidance. |
| Contributing | Local setup, change standards, and validation expectations. |
| Releasing | Versioning, artifact, tag, and Homebrew update checklist. |
| Security | Supported versions and private reporting process. |
| Code of Conduct | Community participation expectations. |
Issues and focused pull requests are welcome. Start with CONTRIBUTING.md, use the repository issue forms, and keep provider credentials out of logs and screenshots.
- CodexBar for authentication-flow inspiration
- Anthropic for Claude and Claude Code
- OpenAI for Codex
- Moonshot AI for Kimi and Kimi Code
Usagebar is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by Anthropic, OpenAI, Anysphere (Cursor), Moonshot AI (Kimi), Z.ai, xAI, or any other provider it works with.
Claude, Codex, Cursor, Kimi, z.ai, Grok, Gemini, OpenCode, Droid, and their logos are trademarks of their respective owners. Usagebar uses them only to identify each service.
Usagebar is available under the MIT License.

