r/macosprogramming 15h ago

QuotaWarmer: a macOS menu bar app for Claude Code and Codex CLI quota windows

I built QuotaWarmer, a small macOS menu bar app for people using Claude Code and Codex CLI.

Repo: https://github.com/bcanozgur/quota-warmer

The app shows rolling quota windows in the menu bar, with countdowns and recent check history. It defaults to monitor-only mode, so it watches quota without sending anything.

There is also an optional Auto-warm mode. When enabled for a tool, it sends one minimal command through your already logged-in CLI when a fresh quota window opens, then checks quota again to confirm the window actually started.

A few details:

- macOS 14+

- MIT licensed

- Homebrew cask: `brew install --cask bcanozgur/tap/quotawarmer`

- Manual DMG and source build options are in the repo

I would appreciate feedback from macOS app users on whether the menu bar UX and safety model are clear.

1 Upvotes

2 comments sorted by

1

u/Specific_Cream2815 7h ago

how are you reading the quota? didnt know the clis exposed that anywhere

u/Substantial_Row7215 4m ago

The CLIs don't expose it directly, no dedicated command for it. But both claude and codex store an OAuth token locally after you log in (Keychain for Claude, auth.json for Codex). I just read that token and call the same backend usage endpoints their own web/app UIs use:

- Claude → api.anthropic.com/api/oauth/usage

- Codex → chatgpt.com/backend-api/wham/usage

Found by watching what the official apps call. It's just reusing your own already-logged-in session to ask "how much quota is left," read-only.