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.


Click the refresh button in the header (Scan again) to read the session files again.
yardmaster usage # last 7 days, one row per dayyardmaster usage --days 30 --by agentyardmaster usage --by project --agent claude --limit 5yardmaster usage --days 0 --by model # everything still on disk--by takes day (default), agent, project, model, provider (the company behind the model), or session. --days counts local calendar days with today included, and 0 covers everything. --agent takes claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, or kimi. --project keeps sessions that ran in a folder or below it. --limit caps the rows (default 20, 0 shows all). Add --json for machine-readable output.
Last 7 days (2026-11-28 – 2026-12-04): 217.8M tokens in 11 sessions┌─────────────┬────────┬────────┬────────┬────────────┬─────────────┬──────────┐│ AGENT ┆ TOTAL ┆ INPUT ┆ OUTPUT ┆ CACHE READ ┆ CACHE WRITE ┆ SESSIONS │╞═════════════╪════════╪════════╪════════╪════════════╪═════════════╪══════════╡│ Claude Code ┆ 189.2M ┆ 2.9k ┆ 1.5M ┆ 181.5M ┆ 6.3M ┆ 7 ││ Gemini ┆ 20.2M ┆ 1.9M ┆ 275.3k ┆ 18.0M ┆ – ┆ 2 ││ OpenCode ┆ 8.4M ┆ 113.3k ┆ 82.8k ┆ 8.2M ┆ – ┆ 2 │└─────────────┴────────┴────────┴────────┴────────────┴─────────────┴──────────┘Claude Code 189.2M · Gemini 20.2M · OpenCode 8.4MThe command also prints the last known plan limits under the table, as yardmaster limits does. A project breakdown uses full folder paths such as ~/code/storefront.
Tool: get_usage (read-only). Arguments: days (default 7, 0 = all), agent, and project (an absolute folder path).
{ "name": "get_usage", "arguments": { "days": 7, "agent": "claude" } }{ "from": "2026-11-28", "to": "2026-12-04", "total": { "total": 189200000, "input": 2900, "cache_read": 181500000, "cache_write": 6300000, "output": 1500000 }, "sessions": 7, "days": [{ "key": "2026-12-04", "tokens": 156200000, "sessions": 4 }], "agents": [{ "key": "Claude Code", "tokens": 189200000, "sessions": 7 }], "projects": [{ "key": "~/code/storefront", "tokens": 65500000, "sessions": 3 }], "models": [], "providers": [], "top_sessions": [], "codex_limits": null, "claude_limits": null, "untracked": []}projects and top_sessions hold at most 10 entries. untracked names agents that have sessions in the period but keep no token counts on disk (Cursor), so their use is missing from every number. Ask your agent: “How many tokens did I use this week, and in which project?”
See what is left of each plan limit
Section titled “See what is left of each plan limit”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.




Click Refresh (or press ⌘R in the popover) to read the limits again.
yardmaster limitsClaude Code limits (Team plan, as of Fri 4 Dec 16:48) 5-hour 29% used resets 20:20 weekly 27% used resets Sat 5 Dec weekly (Fable) 23% used resets Sat 5 Dec 3 free resets, soonest expires Thu 10 DecCodex limits (free plan, as of Thu 8 Oct 15:26) monthly 0% used reset Thu 22 OctOpenCode, Pi, Qwen Code, Kimi Code, and Copilot CLI keep no limits on disk.limits prints the readings Yardmaster kept: Codex from its latest session file, Claude Code, Cursor, and Gemini from their last reading. It does not ask any server itself. Add --json for JSON.
Tool: get_limits (read-only, local only). No arguments.
{ "agents": [ { "agent": "Claude Code", "as_of": "2026-12-04T16:48:00+01:00", "age_minutes": 3, "stale": false, "plan": "Team", "source": "OAuth", "windows": [{ "window": "5-hour", "used_percent": 29.0, "resets_at": "2026-12-04T20:20:00+01:00", "reset_since": false }], "free_resets": 3 } ], "missing": ["OpenCode keeps no limits on disk"], "hint": "..."}stale is true when the reading is over an hour old or a window has reset since. get_limits reads stored readings and never contacts a server, so an agent can call it freely. get_usage also carries Codex’s and Claude Code’s last windows. Ask your agent: “How much of my Claude limit is left today?”
Get alerts at 80 % and 90 %
Section titled “Get alerts at 80 % and 90 %”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.
yardmaster settings set notify_quota falseyardmaster settings get notify_quotaThe alert itself comes from the app. The CLI only changes the setting.
Not available over MCP as an alert. doctor lists limits above 80 % in its summary.
Limit sources
Section titled “Limit sources”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.
Claude Code
Section titled “Claude Code”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
sessionKeycookie from Claude Desktop’s cookie store (theClaude Safe Storagekey comes from the Keychain under the Keychain access setting below), holds it in memory only, and sends it only toclaude.ai. A failure there is silent. Pick any source other than Auto to skip this step. - OAuth asks
api.anthropic.com/api/oauth/usagewith 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 runclaude. The request goes through the systemcurlwith the URL and headers on stdin (never on a command line),httpsonly, no redirects. After an HTTP 429 the source waits for theRetry-Aftertime (1 to 60 minutes, 5 minutes when none comes). The answer also holds each model’s weekly limit and your free resets. - CLI runs
claudeunderscriptin its own folder (claude-probein 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 noscripton Windows, so it is not offered there. It gives less detail than OAuth. - Web asks claude.ai with a
sessionKeycookie you paste into claude.ai session key (shown for Web and Auto). It is stored insecrets/claude-session-key(readable by you alone), sent only toclaude.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.
Status line relay
Section titled “Status line relay”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 --printprints a short line such as5h 13% · 7d 12%for a status line.--installshows the change as a dry run with a diff, and--install --yesmakes it.--uninstalland--uninstall --yesundo it. - By hand, add
printf '%s' "$input" | yardmaster limits relayto your status line script afterinput=$(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
Section titled “Cursor”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-summarywith aWorkosCursorSessionTokencookie built from the token Cursor keeps in its ownstate.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
WorkosCursorSessionTokenyou paste. It is stored insecrets/cursor-session-cookie(readable by you alone), sent only tocursor.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.
Gemini
Section titled “Gemini”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>.jsonand sends one Connect JSON POST to127.0.0.1only (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 theagybinary that ships inside it (Gemini.app/Contents/Helpers/agy, elseagyon yourPATH) asagy -p /usage --output-format json, in its own foldergemini-probein the data folder. It setsAGY_CLI_DISABLE_AUTO_UPDATE=true, closes stdin, and stubsopen,xdg-open, andBROWSERso 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, runagyonce 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 pastedCookieheader togemini.google.comonly. Paste it in gemini.google.com cookie; it is stored insecrets/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.
Choose how limits look
Section titled “Choose how limits look”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.