AI Usage: limits, tokens and accounts
The AI Usage module shows how much of your Claude and Codex limits are left, and what you've used, for each of your accounts. Turn it on under Modules, the same way as Agents. It's offered once PancakeNotch finds Claude Code or Codex on your Mac.
Limits #
- A bar per limit shows how much is left, with the time until it resets, for example Session 63% left · resets in 2h 14m or Weekly 77% left.
- The pace mark on the bar shows where it would be if you used your limit evenly until it resets.
- Colors: green with half or more left, yellow from 20 to 49%, orange from 10 to 19%, and red under 10%.
- Running low: when an account drops under 10% left, its gauge shows beside the closed notch, so you notice before you run out (see which spot it gets).
- How fresh: Codex limits refresh when you open AI Usage (PancakeNotch asks Codex, which checks with OpenAI). Claude limits update when Claude Code next sends a request; older readings show an "as of" time.
The gauge and pop-ups #
- When the gauge shows: Never, When close or Always, in AI Usage's Settings. You also pick which account it follows (or whichever is closest to its limit), and which limit: Session, Weekly or the Closest of the two.
- Close-to-limit pop-up: follows the same account and limit, and can be switched off.
- Pop up when a limit resets is on by default. For any account and limit you used, a small ring fills up under the notch with the account, plan and limit that reset.
- Resets within a minute share one pop-up; several accounts show a short count.
- It waits for agent alerts and the open notch, catches up on resets up to 30 minutes old, and can briefly appear over full-screen apps. If Mission Control is open, it waits until you leave and then move the pointer or switch apps.
- Switch it off in AI Usage's settings, or click Show example to try it in the practice notch.
Tokens, "API value" and "Cost" #
Switch between Today, 7 days and 30 days to see how many tokens you used and which models you used most.
- API value is for accounts on a plan: what those tokens would cost if you paid for each use. You don't pay it. It shows how much your plan gives you.
- Cost is for accounts that use an API key: what the tokens really cost.
Devin #
With Devin cloud connected, AI Usage gets a Devin account. It shows the ACUs your sessions used today, in 7 days and in 30 days, and the sessions that used the most.
More than one account #
- Found by itself: PancakeNotch looks in ~/.claude, ~/.codex and folders named like ~/.claude-work.
- One missing? Click Add account folder… in the AI Usage settings and choose its folder.
- Names start with the provider and tier, such as Claude Pro or Codex Plus. Several accounts for the same provider get a number at the end. You can rename an account in settings.
- Switching: the pill at the top right shows the account you're looking at. Click it for a list of your accounts, grouped by tool, each with a tiny bar for how much is left. Pick one, or pick All accounts for the totals.
- Emails are partly hidden, with the part before the @ blurred except its first letter, until you click one to show it (click again to hide it; closing the account list hides it too).
If something's missing #
- No Claude limits yetThey appear after you've used Claude Code once.
- Codex tokens look lowOlder Codex sessions that Codex has compressed (shrunk to save space) aren't counted.
Token history and Claude limits come from files the tools keep on your Mac. For fresh Codex limits, PancakeNotch asks your installed Codex, which checks with OpenAI using its own sign-in. PancakeNotch never reads sign-in tokens or the Keychain. It saves token counts and model names for 90 days, never conversation text.
Usage hubs #
Open Modules → AI Usage → Settings → Add Usage Hub. For CLIProxyAPI, enter the hub's base URL (for example, http://localhost:8317) and its management key. For an HTTP quota source, use the full URL of its quota endpoint and a bearer token if required. Remote addresses use HTTPS. Plain HTTP is available on this Mac's loopback addresses.
Open the notch's AI Usage → Hubs to see the accounts, usage windows and reset times reported by each source. Use the refresh button for a fresh reading. CLIProxyAPI reports Codex, Claude and Grok quotas when the provider supplies them. Other linked OAuth accounts remain visible, along with request counts when the hub supplies them. Hub readings are separate from the token history and alerts for accounts on this Mac.
An HTTP quota endpoint responds to GET with JSON in the T3 Code version 1 format. Give each account and each of its windows a stable ID. Here is a source with one account and one window:
{
"version": 1,
"accounts": [{
"id": "travel",
"label": "Travel account",
"windows": [{
"id": "monthly",
"kind": "monthly",
"label": "Monthly quota",
"usedPercent": 35,
"resetsAt": "2027-01-01T00:00:00Z"
}]
}]
}