Skip to content

Usage and limits

Usage answers two questions: how many tokens your agents used, and how much of each plan limit is left. It counts tokens only. It never shows money, because Yardmaster keeps no price table and does not know what your plan costs you. Token counts come from the files the agents already keep on disk. Plan limits come from those files too where an agent writes them there, and from a source you choose where it does not (see Limit sources).

See tokens per day, agent, project, model, or session

Section titled “See tokens per day, agent, project, model, or session”

Open Usage in the main window (⌘4). Pick a period with Today, 7 d, 30 d, or All, and narrow it to one agent with the agent selector. The page shows the total, the split into input, output, and cache, a bar chart per day, and ranked lists for agents, projects, models, providers, and the largest sessions. When more than one agent used tokens, Agent and Kind colour the bars by agent or by token kind. The popover has a Tokens tab (⌘4 there) with today’s use.

Usage view, 7 d period, all agents, bar chart split by agent with project and model listsUsage view, 7 d period, all agents, bar chart split by agent with project and model lists
Usage, 7 d.

Click the refresh button in the header (Scan again) to read the session files again.

Most agents have a short window (5 hours) and a weekly window. Yardmaster shows the percentage used per window, when it resets, and the plan name when the agent reports one. Claude Code can also show a weekly limit for one model (for example Fable) and the free resets you have on hand.

The limit cards sit at the top of Usage, one per agent, each with a ring per window and the time of its last reading. You can drag cards to reorder them and hide one from the card menu. The popover shows the same cards on its Limits tab (⌘1), and the tray menu lists them as lines. A card for an agent with no reading says why. OpenCode, Pi, Qwen Code, Kimi Code, and Copilot CLI keep no limits on disk and have no source.

Usage view, limit cards for Claude Code, Codex, and Cursor with rings per windowUsage view, limit cards for Claude Code, Codex, and Cursor with rings per window
Usage, limit cards.
Popover, Limits tab with Claude Code 5-hour and weekly windowsPopover, Limits tab with Claude Code 5-hour and weekly windows
Popover, Limits.

Click Refresh (or press ⌘R in the popover) to read the limits again.

Yardmaster sends one notification when a window crosses 80 %, and one when it crosses 90 %, once per window until that window resets. The text carries percentages only.

Turn it on or off under SettingsGeneralNotifications with Notify when plan limits pass 80 % and 90 %. It is on by default. It works for any agent that has a reading, and Claude Code needs a source or the status line relay first.

Codex writes its limits into its own session files, so Yardmaster reads them from disk and sends nothing. Claude Code, Cursor, and Gemini keep their limits on the vendor’s side, so Yardmaster has to ask for them. Everything below is shown in SettingsGeneralLimits. Each source writes a small reading (percentages, counts, and dates) into Yardmaster’s own data folder and never a token, cookie, or dollar amount. Pasted secrets are stored for you alone and are never shown back in the app.

How often an active source is asked follows SettingsGeneralLimitsRefresh (Manual, 1, 2, 5, 15, or 30 min; the default is 5 min). limits_refresh is the CLI key.

The source is picked in SettingsGeneralLimitsClaude Code source, or with yardmaster limits claude --source auto|oauth|cli|web|off (without --source it prints the current choice). The setting is claude_limits_source.

  • Auto (default) tries OAuth, then the CLI, then the web session, and skips a source that cannot work right now. On macOS, when none of them gives a reading, Auto last tries Claude Desktop’s own claude.ai sign-in: it reads the sessionKey cookie from Claude Desktop’s cookie store (the Claude Safe Storage key comes from the Keychain under the Keychain access setting below), holds it in memory only, and sends it only to claude.ai. A failure there is silent. Pick any source other than Auto to skip this step.
  • OAuth asks api.anthropic.com/api/oauth/usage with Claude Code’s own sign-in. It reads the sign-in from Claude Code’s credentials file or, on macOS, from the Keychain through /usr/bin/security. The token stays in memory only. Yardmaster never writes, logs, or refreshes it, because a refresh would rotate Claude Code’s own token. An expired sign-in asks you to run claude. The request goes through the system curl with the URL and headers on stdin (never on a command line), https only, no redirects. After an HTTP 429 the source waits for the Retry-After time (1 to 60 minutes, 5 minutes when none comes). The answer also holds each model’s weekly limit and your free resets.
  • CLI runs claude under script in its own folder (claude-probe in the data folder) with no tools, --strict-mcp-config, and hooks off, types /usage, reads the screen, and ends its own child by handle. In the background it runs at most every 15 minutes, and a click always runs it. It has no script on Windows, so it is not offered there. It gives less detail than OAuth.
  • Web asks claude.ai with a sessionKey cookie you paste into claude.ai session key (shown for Web and Auto). It is stored in secrets/claude-session-key (readable by you alone), sent only to claude.ai, never returned to the UI, and never read from a browser’s cookie store.
  • Status line only (off) makes no request. Only the status line relay below supplies numbers.

Keychain access (macOS, shown when a source needs it) has three values: Never, On open (default), and Always. On open reads the Keychain when you click Refresh, pick a source, or open the popover or main window while a fetch is waiting on it, never silently in the background. Never works only where the sign-in is a file. Always reads whenever a reading is due. macOS asks first. The same setting covers Cursor’s key (below). The CLI key is keychain_access (never, on_click, always).

If Claude Code runs with a custom CLAUDE_CONFIG_DIR that a Dock or Finder launch cannot see, set Claude Code folder in the same section (claude_config_dir). It applies after a restart.

Claude Code hands its plan limits to your status line command as JSON on stdin. The relay keeps the percentages and reset times from that and nothing else. It works beside any source above and whatever claude_limits_source says.

  • App: SettingsGeneralClaude Code status line shows the line to add to your own script and a Set up button (with Undo setup).
  • CLI: yardmaster limits relay --print prints a short line such as 5h 13% · 7d 12% for a status line. --install shows the change as a dry run with a diff, and --install --yes makes it. --uninstall and --uninstall --yes undo it.
  • By hand, add printf '%s' "$input" | yardmaster limits relay to your status line script after input=$(cat).

Set up is the only place Yardmaster edits a vendor settings file. It changes the one value statusLine.command in ~/.claude/settings.json (or in your Claude Code folder) as a text edit that keeps every other byte, checks the result still parses, saves a backup in rule-backups, replaces the file atomically, and reads it back. Your own command stays inside a wrapper and is restored byte for byte on undo. A relay you added by hand is never removed.

Cursor keeps no usage on disk, so a reading means asking cursor.com. It is Off by default. Pick it in SettingsGeneralLimitsCursor source (Off, Cursor app, or cursor.com cookie; key cursor_limits_source with off, app, cookie). The CLI yardmaster limits shows the last reading.

  • Cursor app sends GET cursor.com/api/usage-summary with a WorkosCursorSessionToken cookie built from the token Cursor keeps in its own state.vscdb, opened read-only and never refreshed or written back. Cursor 3.27 and later encrypt that token. On macOS Yardmaster then reads the “Cursor Safe Storage” password from the Keychain (under the Keychain setting above), derives the key, decrypts in memory, and keeps only the key in memory until the app quits. Under Never the key is dropped and the encrypted token is not opened.
  • cursor.com cookie uses a WorkosCursorSessionToken you paste. It is stored in secrets/cursor-session-cookie (readable by you alone), sent only to cursor.com, and never returned to the UI.

Background reads happen at most every 5 minutes and never under Manual. The stored reading holds percentages, counts, and dates, never dollar amounts. Turning the source off removes the reading.

Codex’s 5-hour and weekly windows come from the newest session file on disk, so there is nothing to turn on and no request.

Codex free resets is separate and off by default. Turn it on with SettingsGeneralLimitsCodex free resets (codex_resets). It sends GET chatgpt.com/backend-api/wham/rate-limit-reset-credits with the access token and account id from Codex’s auth.json, which Yardmaster never refreshes or writes back. An expired sign-in asks you to run codex. It runs at most every 30 minutes, never under Manual, and stores the count and expiry dates only. Turning it off removes the reading.

One Gemini card combines up to three sources. Each is off by default, with its own switch under SettingsGeneralLimits, and none opens a Google sign-in file, a Keychain item, or an encrypted client store. A bucket that is full with no reset time is a group your plan lacks (Google lists Claude + GPT for every account) and is left out.

  • Gemini app (gemini_local_limits): while Google’s Gemini app (its Antigravity agent) runs, Yardmaster reads the CSRF token and ports from the app’s own ~/.gemini/antigravity/daemon/hub_<port>.json and sends one Connect JSON POST to 127.0.0.1 only (no proxy, a self-signed certificate accepted only there). It reads the quota and plan name, never the account e-mail. Nothing leaves your computer. At most every 5 minutes.
  • Gemini agy CLI (gemini_cli_limits): while the Gemini app is closed, runs the agy binary that ships inside it (Gemini.app/Contents/Helpers/agy, else agy on your PATH) as agy -p /usage --output-format json, in its own folder gemini-probe in the data folder. It sets AGY_CLI_DISABLE_AUTO_UPDATE=true, closes stdin, and stubs open, xdg-open, and BROWSER so a failed sign-in can never open a browser. Output is capped at 1 MiB and the child is ended by handle after 90 seconds. agy uses its own sign-in, which Yardmaster never reads: if it is signed out, run agy once in Terminal. The report’s text is never echoed. At most every 15 minutes and on Refresh. Unix only.
  • gemini.google.com (gemini_web_limits): sends your pasted Cookie header to gemini.google.com only. Paste it in gemini.google.com cookie; it is stored in secrets/gemini-cookie (readable by you alone) and never returned to the UI. At most every 15 minutes. This source has not been tested against a real account yet.

On the CLI, yardmaster limits gemini asks the Gemini app now and keeps the reading. --web also asks gemini.google.com, --web-only asks only gemini.google.com, and --cli runs agy when the app is not running. The web source needs a cookie saved in Settings first, and no command takes a secret.

A failed source keeps its last windows, and a source turned off loses them. All these sources use the same HTTP rules as the Claude OAuth source (system curl, config on stdin, https only, no redirects, a 429 holds the source), apart from the loopback request to the Gemini app.

Under SettingsGeneralLimits you can show windows as Used or Left (limits_show), reset times as Countdown or Clock (reset_style), and turn the Pace line on or off (show_pace), which says whether you use a window faster or slower than its time passes. How limit cards are drawn (rings, bars, or figures) is being reworked, so this page describes the controls without screenshots of the card styles.