Usage and vitals

Brief

At the foot of the left bar, each AI subscription you use gets a row: Claude Code, Codex, Fireworks, Grok. A solid rail is the long window, usually the week. A notched rail is the short one, usually five hours. The number is how much of the week is left.

The provider's mark at the start of the row is tinted by pace: green while you spend the week about as fast as it passes, red when you spend faster, blue when you have room banked.

Terminal Delight doesn't measure any of this itself. A small collector for each vendor asks it and writes down the answer, and the rows read what was written. When there's no answer (no collector, an expired sign-in, a window that vendor doesn't have) the rail is hatched and the number reads —. It never reads 0%, because an empty bar would tell you that you've run out.

Click a row, or press Ctrl+Shift+U, for the usage card: every limit with when it resets, a TOKEN USAGE PACE line for the week, and today's use, the last seven days and which models it went to, folded underneath.

Technical has the collectors, the pace rule, the record format and how a reading goes stale.

Technical

Readings

Where the numbers come from#

One JSON record per subscription, read from two folders; if both have the same subscription, the newer record wins:1

  • ~/.local/state/omarchy/agents/usage/, where Omarchy's own collectors write
  • ~/.local/state/terminal-delight/agents/usage/, where Terminal Delight writes

The collectors are Omarchy's scripts, included unedited and built into the binary. They need python3.

CollectorAsks
claudeClaude Code's transcripts and Anthropic's usage endpoint
codexCodex's app server
fireworksFireworks' billing API
grokthe plan Grok caches, the credits endpoint the Grok CLI reads for its own usage view, and Grok's local session and token ledger. Not signed in, it says Waiting for auth and Start Grok, or run `grok login`, to sign in.5
terminal-delight agent-usage update

update runs every collector and writes a record for each that answers; --only grok runs one; list names them; where prints the folders. It exits 1 only if every collector failed. The rows refresh when the window opens, five seconds later, every five minutes after that, and each time the card opens.3 ↻ refresh on the card runs the first of these it finds: omarchy-agent-usage-update, a td-agent-usage on your PATH or in ~/.local/bin, then this binary's own collectors.1

A row#

mark
The provider's logo from ~/.config/terminal-delight/marks/<id>.svg, drawn in one colour, or two initials. Its colour and glow are the week's pace, below; with no weekly reading to judge it by, it stays the plain text colour with no glow.
solid rail
The long window. A limit whose label says week, day or month.
notched rail
The short window, with one notch per unit its label names: five for Session (5-hour). A label with session, hour or current in it. Grok publishes one window, so its notched rail is hatched.
number
The long window. NN% when fresh, its age (45m, 6h, 2d) when stale, — with no reading. Dropped when the bar is narrower than 190 px.

A limit whose label names neither is placed by order: first short, then long. Rail length shows what's left, or what's spent if you flip the card's bar · what's left chip to bar · what's spent. Rail colour always shows what's spent: green, amber from 66%, red from 85%. Any use at all draws at least a sliver. Under a skin whose gauge is pips, both rails are rows of pips you can count, hollow where there's no reading. Hover a row for the vendor's own names and figures: Weekly (7-day): 41% spent, …: 41% spent, 6h old, or …: no reading.24

Fresh, stale, unknown#

ReadingWhenDrawn
freshrecent enough for the window it describesNN%
staletrue, but older than the window it describes; a record with no time on it counts as stale, age ?dimmed, with its age
unknownno collector, the collector said it isn't ready, the vendor reported a problem such as an expired sign-in, or the vendor has no such windowhatched rail, —

One gap: a limit that arrives with a label but no percent is currently read as 0% spent, so it draws as full rather than unknown (issue 799).1

Pace#

Pace compares two numbers for the weekly limit: how much of it is spent, and how far through the week the clock is. The week starts seven days before its resetsAt. Only a limit labelled with 7-day, or exactly Weekly, gets a pace; a five-hour window resets too often for one to mean anything. With no such limit, or no resetsAt, there's no pace at all rather than a guessed one.13

Spent minus elapsedVerdictLine under it
within 5 points either wayON PACEeven with the week's clock
more than 5 points underBANKED12 points banked
5 to 20 points overBEHIND9 points over pace
more than 20 points overWAY OVER27 points over pace

Under the verdict is a bar with a flame in the middle. Its width is the room you have left to adjust: whichever is smaller, the share of the week still to run or the share of the plan still unspent. It's drawn from the centre outwards, so a narrow bar means little room either way. Its colour uses wider bands than the verdict: blue more than 15 points under, red more than 15 over, green between.3

The left bar's mark uses the same arithmetic on a continuous scale instead of three bands: red at 30 points over, yellow at 15 over, green on pace, blue-green at 15 under, blue at 30 under, blended between.3

Pace is the one number on this page that Terminal Delight works out itself; the collectors report only what's spent. It's a snapshot comparison, so it never predicts when you'll run out.

The usage card#

Ctrl+Shift+U, or Ctrl+Shift+Y where an input method takes the U; Σ usage on the agent wall; or a row, which opens the card on that row's subscription.3

The header reads Σ Subscription usage and what each plan has left, with the bar · what's left chip and two tabs, savings (lean-ctx's token savings) and usage. From the top:4

  1. LAUNCH AGENT CONFIG, folded, the launcher's defaults. It's there even before any collector has written a record.
  2. One chip per subscription that has something to show, with its plan (Max 20x, Pro) and a dot in the colour of its fullest limit.
  3. The vendor's status and what to do about it, when there's a problem.
  4. Each limit as <label> NN% resets in <time>, with a bar.
  5. TOKEN USAGE PACE, as above.
  6. Prepaid balances as left (or left (estimated)) and <spent> spent of <funded> funded.
  7. ▸ today, the week, by model, folded by default: TODAY, LAST 7 DAYS and BY MODEL (the six heaviest models, then the input, output and cache tokens summed across all of them).
  8. collected 4m ago, prompt and session totals when the collector reports them, and ↻ refresh.

With no records yet: nothing collected yet — press refresh, a line on where records come from, and the folders it looked in.

The rails are a switch, allowance, in UI CONFIG. Clean, the design a first launch opens in, hides them along with the left bar. While they're hidden or the left bar is closed, the … menu (CONFIG ▾ when the corner's glyphs are put away) carries a ▥ Allowance… row that opens this card.6

The record#

{
  "id": "claude",
  "name": "Claude Code",
  "ready": true,
  "limits": [
    { "label": "Session (5-hour)", "percent": 0.23, "resetsAt": "2026-09-25T15:00:00Z" },
    { "label": "Weekly (7-day)", "percent": 0.41, "resetsAt": "2026-09-29T00:00:00Z" }
  ],
  "updatedAt": "2026-09-25T11:02:00Z"
}

id is required. percent is a fraction from 0 to 1, spent. Also read: tierLabel, usageStatusText, authHelpText, hasPromptStats (false for a collector that sees only tokens, so today's line drops the prompt and session counts), balance (remaining, funded, spent, currency, estimated), todayPrompts, todaySessions, todayTotalTokens, recentDays, modelUsage, totalPrompts, totalSessions, activeDays. Anything that can write this file can put a subscription in the bar.1

Keepalive#

Earlier builds could type into idle agents on a timer to keep their prompt cache warm. That was removed, along with the AWAY screen that went with it.

What would prove this wrong#

If a row ever draws a full or empty rail for a subscription whose record has no limits, or a pace for a limit with no resetsAt, the absence rule above has failed. Issue 799 is the one known case where it does.

Sources

  1. Records, collectors, agent-usage, the refresh order and the pace rule: usage.rs.
  2. Rails, readings, staleness and the 190 px floor: slot.rs.
  3. The row, the mark's tint, the refresh timer, the card and its routes: main.rs (render_bar_slot, render_usage_body, pace_band, pace_ramp); the keys: pane.rs.
  4. The card's and the hover's words: lang/chrome.rs.
  5. The Grok collector: vendor/omarchy-agent-usage-grok.
  6. 0.5.0: the allowance switch in uiconfig.rs and ui/clean.toml; the Allowance… row in main.rs.