Claude, Codex + Ollama usage, in your menu bar

A tiny native macOS widget that shows what you have left — 5-hour & weekly quotas for Claude, Codex and Ollama Cloud, plus today's cost, an end-of-day projection, and two Notification Centre widgets.

🖥️ Native Swift· 🔒 Read-only, local· 🆓 Free & open source (MIT)
Fri 14 Jun  9:41 AM ⌛ 70%  🗓 20%  $437
Claude · max$436
⌛5h70%
🗓20%
Codex · plus$0.75
🗓78%
Ollama · pro
⚡100%
🗓73%
›
›

↑ Switch the preview language — the app has the same toggle built in (English by default).

Claudemax$436
84%
29%
Codexplus$34
0%
53%
Ollamapro
100%
73%
Claude 98% 2.7BCodex 2% 68M
$2166 · ~$2258
Agent Usage —
Claude$2133
1.4B$604
24M$131
2M$50
22k$0.09
Codex$34
294k$1.47
4k$0.13
217k$0.11
$2166
Agent Usage — Cost detail —

What it does

⌛

Real quotas, live

Your Claude 5-hour and weekly limits straight from Anthropic's server — account-wide, so it already counts Desktop, Code and web.

🤖

Codex too

Your Codex weekly quota (OpenAI moved Codex to a single weekly window in 2026), read from your local Codex session logs.

🦙

Ollama Cloud

Session & weekly quotas from ollama.com/api/usage. Opt-in: drop an API key in ~/.ollama/widget-key and the section appears — no key, no section.

🧩

Desktop widgets

Two real WidgetKit widgets for Notification Centre: quotas at a glance, and today's cost split by token type — cache read, cache write, output, input.

💲

Cost & projection

Today's combined cost (via ccusage) with an end-of-day projection at your current rate.

🔄

Self-refreshing token

Renews its own OAuth token from the keychain — no need to keep a terminal open. Read-only, never touches your prompts.

🔔

Reset alerts

An optional system notification the moment any quota window resets and your allowance is full again.

🌍

English & Français

Switch the whole interface language from the menu in one click. English by default.

Install

One command. It builds, installs and starts at login — nothing else to set up.

# macOS 12+, needs Xcode Command Line Tools (xcode-select --install)
curl -fsSL https://raw.githubusercontent.com/Hugo291/agent-usage-menubar/main/install.sh | bash
  1. Builds the native app and installs it to ~/Applications.
  2. Enables auto-start at every login.
  3. Launches it — look for the ⌛ / 🗓 icons at the top-right.

Optional: install ccusage to unlock the daily $ cost and token figures — the quota percentages work without it. Uninstall any time with ./install.sh uninstall.