Tool3 min read
AI Usage: Claude and Codex limits, at a glance
A small macOS menu bar app for Claude and Codex limits, with local accounts, reset countdowns and a clear path back from a broken login.
- Swift
- macOS
- Claude Code
- Codex CLI
AI-generated imageMade with an AI image tool for this post.
AI Usage sits in the macOS menu bar and makes the limits I keep checking visible without another tab or terminal command. It shows a value for every Claude and Codex account, then opens into the useful context: which window it belongs to, how it has moved and when it resets.
First released 24 June 2026. Updated 8 November 2026.
More than three fixed slots
The first version assumed my setup would always be two Claude subscriptions and one Codex account. That stopped being useful as soon as I wanted to see a different combination. Accounts are now a free list: add as many Claude and Codex accounts as needed, give each one a short label and icon, reorder their menu-bar values, or remove one again with a short undo window.
Each card shows its current five-hour and weekly value, when the next check is due and, where available, an extra model-specific cap. The popover carries the same detail with a visual bar that combines time remaining and recent burn history. A pace estimate can flag when the current session is likely to run out before the reset.
A history with context
The History view makes a limit less abstract. It keeps local snapshots for up to 30 days, lets me isolate individual account windows and places the latest values below the chart. A short spike is easy to miss in a menu-bar number. In the graph, it becomes clear whether it was a single task or the shape of the whole afternoon.
A setup that does not steal a login
Adding an account is a guided flow rather than a form with a hopeful save button. For Claude, the recommended route signs in through the browser into an isolated app-owned profile. It can use a chosen Chrome profile, checks that the e-mail is the expected one and verifies real usage before saving anything. The existing Claude Code login can also be read live, without copying or refreshing its credential.
Codex gets the same choice. An extra ChatGPT account can use its own local Codex folder, while the normal ~/.codex login remains untouched. The wizard catches an account that is already connected and offers a private Chrome window when an existing browser session would get in the way.
When a connection needs attention
A network problem, a rate limit or a temporarily locked Keychain should not make a number disappear. AI Usage keeps the last value visible and retries on its own. When an expired login, switched account or incompatible CLI actually needs attention, the account card, popover and notification point to the same repair flow.
That repair screen explains the reason in plain language, shows the account’s local connection history and keeps the display settings and usage history in place. This is particularly useful for earlier Claude imports that shared a refresh token with Claude Code: the assistant can switch them to an independent login instead of asking me to guess why they fail every few days.
Local by default
Everything stays on the Mac: configuration, history, connection events and account folders live under ~/.ai-usage/. Claude credentials created by the app live in its own Keychain entries. The app never reads browser cookies, passwords or page contents, and never changes Claude Code’s or Codex’s own login. The images are mock-ups with made-up demo accounts and values.
There is no signed download. It is a personal project, so it is built locally with Swift. That keeps the whole thing small, inspectable and close to the problem it solves.
