全部软件
Usage4ClaudeProductivity
版本
v3.5.0
发布日期
2026-09-24
平台
macOS
安装包大小
macOS 0.0 MB
发布者
f-is-h
Productivity · f-is-h

Usage4Claude

Track your Claude and Codex subscription usage from the menu bar.

版本 v3.5.0
macOS

README

Usage4Claude

English | 日本語 | 简体中文 | 繁體中文 | 한국어 | Français | Deutsch

Usage4Claude menu bar icons and detail window

macOS Swift SwiftUI License Release Downloads Sponsor

Track your Claude and Codex subscription usage from the menu bar.

Features · Installation · Usage · Privacy & Security · FAQ · Contributing · Website


✨ Features

What It Tracks

Claude and Codex can be configured individually or together. All apps of a service share one quota, and the menu bar always shows its total usage.

Service Apps Limits
Claude claude.ai, Claude Code, desktop, mobile, Cowork 5-hour, 7-day, Extra Usage, plus weekly usage per model (Opus, Sonnet, Fable, etc., as returned for the account)
Codex Codex CLI, IDE extension, Codex web 5-hour, 7-day, credits balance

With one service configured, the interface has a single column. With both, the detail window splits into two columns and the menu bar shows both icons side by side.

Claude Pro, Max, Team and Enterprise are supported. Free accounts have no usage dashboard and cannot be read. On Team and Enterprise, an admin must enable the member usage dashboard.

Two Graph Styles

Ring shows the used share of each limit, with reset times listed below.

Pace plots each limit against elapsed time, with a diagonal marking even consumption. Above the diagonal means usage is outpacing time; below means there is headroom. Weekly limits can count weekdays only.

Switch between them in Settings → Display → Graph Style. Clicking the limit list toggles between "used share and reset time" and "available share and time remaining".

Clicking the limit list toggles between used and remaining

Menu Bar Icons

Each limit type has its own shape and color, and the color changes as usage rises.

Icon 5-Hour 7-Day Extra Usage Model 1 Weekly
(e.g. Fable)
Model 2 Weekly
(e.g. Opus, Sonnet)
Monochrome
Claude Claude icon 5-hour 7-day Extra Usage Model 1 weekly Model 2 weekly Monochrome, light menu bar
Monochrome, dark menu bar
Codex Codex icon 5-hour 7-day credits Monochrome, light menu bar
Monochrome, dark menu bar

Weekly per-model usage takes the Model 1 and Model 2 styles in the order the API returns the models, with names as returned for the account. The menu bar shows at most the first two models; the detail window lists every model, alternating between the two styles.

Claude colors:

  • 5-Hour: macOS Green → macOS Orange → macOS Red
  • 7-Day: Light Purple → Purple → Deep Purple
  • Extra Usage: Pink → Rose → Magenta
  • Model 1 Weekly (e.g. Fable): Light Orange → Amber → Orange Red
  • Model 2 Weekly (e.g. Opus, Sonnet): Light Blue → Blue → Indigo

Codex colors:

  • 5-Hour: Bright Teal → Deep Teal → Darkest Teal
  • 7-Day: Sky Blue → Blue → Deep Blue
  • credits: Gold → Deep Gold → Darkest Amber

In the monochrome theme, limits stay distinguishable by shape, and the icons invert automatically with the menu bar. Menu bar brightness follows the wallpaper, not the system Light or Dark appearance.

Option Values
Display Content Percentage Only, Icon Only, Icon and Percentage
Icon Size Compact, Standard, Prominent
Theme Color Translucent, Color with Background, Monochrome

By default the menu bar shows every limit that has data. To pick them individually, switch to Custom Display in Settings → Display → Limit Types.

Notifications

A system notification is sent when usage reaches a threshold, and again when a quota resets. Thresholds are set per category, from 50% to 100% in steps of 5%.

Category Levels Default
5-Hour 1 90%
Weekly (including per-model weekly usage) 2 75%, 90%
Extra Usage / credits 2 75%, 90%

Refresh

Smart mode adapts to how usage changes: once a minute while usage moves, then stepping down to every 3, 5 and 10 minutes when nothing changes, and back to once a minute as soon as a change is detected. While idle, it sends about a tenth of the requests.

Fixed mode refreshes every 1, 3, 5 or 10 minutes.

Rate limits trigger an automatic backoff. When a refresh fails, the previous data stays on screen with a marker next to the title. The app refreshes on wake from sleep and when the detail window opens; clicking the ring or graph refreshes manually, with a 10-second debounce.

Accounts

Claude supports multiple accounts and multiple organizations under one account; Codex accounts are managed separately. Each account can have an alias. Switch accounts from the "…" menu in the detail window or the menu bar icon's right-click menu.

Sign-in runs in the system browser, so Google, Microsoft, enterprise SSO and passkeys all work. Claude also accepts a manually entered Session Key.

Codex Reset Announcement (Beta)

When OpenAI announces an upcoming global quota reset, a badge appears next to the Codex column title; otherwise nothing is shown. The data comes from the third-party community project codex-reset.com, not an official API, and can be turned off in Settings.

Languages

English, 日本語, 简体中文, 繁體中文, 한국어, Français (@mtreize), Deutsch (@schaitl). The system language is used by default. New translations are welcome; see Contributing.


💾 Installation

Download

  1. Download the latest .dmg from Releases and drag the app into Applications
  2. Gatekeeper blocks the first launch; see the first FAQ entry to allow it
  3. When the app first reads its credentials, grant Keychain access and choose "Always Allow"

Requires macOS 13 (Ventura) or later, on Intel or Apple silicon.

Updates are installed in-app by Sparkle. Each update is verified against an EdDSA signature before it is installed. Homebrew is not offered at this time.

Build from Source

Requires Xcode 26 or later.

git clone https://github.com/f-is-h/Usage4Claude.git
cd Usage4Claude
open Usage4Claude.xcodeproj

Press ⌘R in Xcode to run. The app is written in Swift and SwiftUI, with AppKit for the menu bar and window management.


📖 Usage

Signing In

The first launch opens an onboarding window where both Claude and Codex can be signed in. Onboarding can be skipped; accounts can be added later in Settings → Accounts.

Browser Login: click the sign-in button, authorize in the system browser, and the app picks up the result automatically. The callback is received on a temporary local port. If a firewall blocks local connections, the browser stays on a localhost address; paste that address into the sign-in window to finish.

Manual Session Key (Claude only):

  1. Open the claude.ai usage page in a browser
  2. Open the developer tools (⌥⌘I), switch to the Network tab and reload the page
  3. Find the usage request and copy the full sessionKey=sk-ant-... value from the Cookie request header
  4. Paste it into the input field. The Organization ID is fetched automatically, and every organization under the Session Key is added

Everyday Use

Left-click the menu bar icon to open the detail window; right-click for the menu. The menu holds account switching, Settings, Check for Updates, and link