Reference
Command-line flags
The flags the usagebar binary accepts, for checking a build, a one-off read, a verbose log, or pinning a config folder.
usagebar is a menu bar app, but its binary accepts a few flags. Run it from inside the app bundle:
~/Applications/usagebar.app/Contents/MacOS/usagebar <flag>
| Flag | What it does |
|---|---|
--once |
Makes one endpoint read through the real credential path and prints the result as JSON: the two headline numbers and every window with its % used, % left and reset time. Exits non-zero on a rate limit or sign-in problem. Works while the menu bar app is running. |
--verbose |
Runs the menu bar app and logs activity, reads and bar updates to standard error. Only one copy of usagebar runs per user, so quit the menu bar copy first. |
--config-dir <folder> |
Uses that Claude Code config folder, and remembers it for later launches. See Which Claude config folder. |
--self-test <fixtures> |
Runs fixture and rule checks (usage parser, token handling, refresh safety, config folders, Retry-After, Start at Login, the menu’s layout) and exits. Use the repository’s Tests folder. |
None of them print tokens.
--once does not remember a --config-dir given with it, so you can try a folder without changing the app’s setting:
~/Applications/usagebar.app/Contents/MacOS/usagebar --once --config-dir ~/other-claude-config
Test builds
./build.sh --test makes a separate test build at .build/test/usagebar.app, with its own bundle ID and loopback-only test hooks compiled in. Release builds don’t contain those hooks. With a test build, Tests/credential-paths.sh drives every token path against a local mock server with scratch config folders and scratch Keychain items, never your real credential. Never ship a test build.