Command reference
ed usage
ed usage reports what your coding agents cost and how close you are to a
provider's rate limit. It reads the two files behind the app's dashboard,
usage.json and limits-history.jsonl. Headline reports use the same canonical
daily provider totals as the UI, while the repository report reconciles folder
detail to those totals. Reach for it when you want a spend figure in a script,
a repository breakdown without opening the window, or a gate on how much
session budget is left.
Both files live in ~/Library/Application Support/Edith/data. You do not need to open Edith first: ed starts it in the background when needed. Two
invocations go further. ed usage refresh reads your agents' history again and
updates the numbers.
ed usage limits --refresh asks the app to poll the providers first. The
Usage page in Edith shows the same numbers and limits.
At a glance
| Command | What it does |
|---|---|
ed usage |
Runs ed usage summary, the default subcommand |
ed usage limits |
Included rate limits per provider, newest observation per provider |
ed usage alerts |
Burn rate, projected cap and the limit alert each tracked window would get now |
ed usage summary |
Cost and tokens over a window, in total and per source |
ed usage daily |
Cost and tokens per calendar day, oldest first |
ed usage models |
Tokens and attributable cost per model, with unassigned provider cost shown separately |
ed usage projects |
Runs ed usage projects list, the default subcommand |
ed usage projects list |
Cost and tokens per GitHub repository, most expensive first |
ed usage projects show |
One repository with every matching folder |
ed usage projects open |
Open a repository from the drilldown in the browser |
ed usage projects copy-link |
Copy a repository link from the drilldown |
ed usage projects copy-chat |
Copy a chat identifier from the drilldown |
ed usage attribution |
Runs ed usage attribution ls, the default subcommand |
ed usage attribution ls |
How unknown and non-GitHub folders were matched to repositories |
ed usage attribution reset |
Forget those decisions so the next refresh decides again |
ed usage sources |
The agents that produced the history, with their ids |
ed usage export |
Branded activity and milestone cards as PNG images |
ed usage machines |
Runs ed usage machines ls, the default subcommand |
ed usage machines ls |
Every configured machine, whether it is counted, and what it adds up to |
ed usage machines collect |
Runs the collector on a machine over SSH and brings its numbers back |
ed usage machines enable |
Counts a machine on every later refresh |
ed usage machines disable |
Stops collecting from a machine, keeping what it already gave |
ed usage machines forget |
Drops what a machine gave and stops counting it |
ed usage refresh |
Re-collects local usage and tops up counted machines that are stale |
ed usage statusline |
Runs ed usage statusline status, the default subcommand |
ed usage statusline status |
Whether Claude Code's status line feeds Edith, and when it last did |
ed usage statusline install |
Points Claude Code's status line at Edith so Claude limits flow in |
ed usage statusline remove |
Takes Edith out of Claude Code's status line |
ed usage statusline record |
Saves the windows Claude Code passes to its status line |
Commands
ed usage limitsed usage alertsed usage summaryed usage dailyed usage modelsed usage projectsed usage projects listed usage projects showed usage projects opened usage projects copy-linked usage projects copy-chated usage attributioned usage sourcesed usage exported usage machinesed usage refreshed usage statusline
Exit codes
| Code | When this group produces it |
|---|---|
| 0 | The command printed its report, or the refresh finished. Also a read that legitimately found nothing to show |
| 1 | usage.json exists but will not decode: could not read <path>: <reason> |
| 2 | --limit 0 or a negative limit on ed usage projects list, an empty chat identifier, plus the usual parse failures, an unknown flag, a missing value, or --source passed to this group |
| 3 | --range is not today, week, month or all, a repository cannot be found uniquely, or a --source id or --machine is unknown |
| 4 | No usage.json at all; no rate limit history at all; a repository link or platform action is unavailable; a usage refresh whose pipeline failed, or --follow with nothing running |
Notes and gotchas
ed usagewith no subcommand runsed usage summary, so a bareed usageprints the all-time totals rather than a help screen.ed usage --helpis still the help screen, and exits 0.- The two files are independent.
ed usage limitsreads onlylimits-history.jsonland works with nousage.jsonat all; every other verb reads onlyusage.jsonand works with no limit history. Neither absence affects the other. --range weekmeans Monday through today.--range monthmeans today and the preceding 29 days. Both use your local calendar day and exclude future-dated rows.- Cost and token figures are doubles all the way through, and the serialiser
prints an integral double as an integer.
"percent": 30is 30.0 and"cost": 0is a genuine zero, not a missing field. - Token counts in the human tables are truncated to a whole number, not rounded,
and costs are formatted to two decimal places. Only
--jsongives you the unrounded values. - Object keys in
--jsonare sorted, arrays keep the order the command chose: fixed provider order forlimits, date ascending fordaily, cost descending formodelsandprojects list, and the file's own order forsources. - The read verbs never reach the network and only ever show the last thing that
was written.
ed usage limits --refreshposts a request and waits for the app to do the polling, whileed usage refreshruns the collector in this process, which makes it the one invocation here that goes out and fetches anything itself. - Refreshes retain previous history for a source that is temporarily unavailable
and print a collection note. A successful refresh can therefore include saved
provider usage.
observedAtcan still repeat aftered usage limits --refresh, because the app appends a history row only when the values changed. - Claude limits use the saved Claude Code login, then a profile-scoped OAuth
token from the login shell, including session, weekly, and Fable windows. A current Claude Code
status line reading remains a fallback. See
ed usage statusline. ed config set tabUsageEnabled falseturns off the Agent Usage extension, and with it the app's own collection and the limit polling;claudeLimitsEnabled,codexLimitsEnabled,cursorLimitsEnabledandgrokLimitsEnableddo the same for a single provider.ed usage refreshruns the pipeline itself and collects either way. The read verbs keep working against whatever was collected before that, soed usage limitskeeps printing a silenced provider's newest valid row.
Attribution model
The daily and model rows are the authoritative accounting totals. The collector
discovers Claude Code, Cowork, Codex, Cursor, Grok, OpenCode, Amp, Droid,
Codebuff, Hermes, Pi, Goose, Kilo, Copilot, Gemini, Kimi, Qwen, OpenClaw and
Command Code when their local stores contain usage. A source appears in
ed usage sources only when it contributed data, so this list is collector
coverage rather than a promise that every id is present on every Mac.
Cloud coding tasks contribute separate codex-cloud (Codex Cloud) and
claude-cloud (Claude Code Web) sources, enabled by default. They use existing
CLI sign-ins: codex login and claude auth login. General ChatGPT and Claude
web conversations are excluded. SSH machine collection skips these account-wide
feeds so each account is fetched once on the collecting Mac.
Codex Cloud coverage is partial. Edith reads the signed-in user's daily workspace analytics and counts web, mobile and integration launch surfaces. The feed groups usage by launch surface, not execution location. Desktop and CLI launches can run in Cloud environments, but those mixed surfaces are excluded because they also contain usage already counted from local transcripts. This source therefore omits Cloud tasks launched from desktop or CLI. The provider may return only part of the requested history; an empty older period does not establish zero lifetime usage. Refreshes print a note describing this limitation. Its dates are provider UTC days. When the feed provides credits rather than USD, costs use $0.04 per credit as a nominal equivalent, not an invoice amount. Purchased credit discounts and included subscription allowances can change actual spend. Account-wide model totals cannot identify the cloud model, so these rows have an unattributed model and repository.
Claude Code Web reads cloud session usage receipts, including archived sessions,
and prices them using the same offline rate table as local Claude Code.
Only retrievable sessions contribute; permanently deleted sessions cannot be
reconstructed from this feed. An all-time report totals the available history,
which can be less than lifetime account usage.
It requires subscription OAuth credentials saved by a browser sign-in with
claude auth login, including cloud-session access. Console API keys and the
model-only tokens generated by claude setup-token cannot retrieve these web
sessions. Edith uses the saved browser login for this feed even when the CLI
uses CLAUDE_CODE_OAUTH_TOKEN for model requests.
Remote-control sessions are excluded. Receipts already present in local Claude
Code or Cowork transcripts are excluded by message identity. Request IDs are
optional; valid receipts without them still contribute usage. Only
usage metadata is saved in cloud-history/claude.json, never conversation text.
Unchanged sessions reuse that cache; failed requests can also reuse it while
still removing receipts resumed locally. A cloud sign-in without session access
produces an unavailable note and preserves prior history.
Repository detail comes from the session stores that expose it: Claude and
Cowork transcripts, Codex daily sessions and metadata, Cursor chat metadata
when a local chat matches the conversation, Pi session logs, Command Code
projects, Grok Build turn logs under ~/.grok/sessions, and the OpenCode
database. Grok token totals split cache out of input, and the cost is the
billed costUsdTicks on each completed turn. Cursor token and cost totals come from
Cursor's authenticated usage API for the signed-in account, including IDE
requests. Local chat metadata attributes a conversation to a folder when that
chat exists on disk. Those measurements are reconciled per day and source to
the authoritative totals.
Detail is scaled down when it would exceed the total, and any remaining source
or model total with no reliable folder is emitted under the Unattributed
repository. That is why ed usage projects list adds back to summary without
pretending every provider cost belongs to a known folder.
Machine sources use the stable id
machine:<lowercase-machine-uuid>:<agent>, not the machine's editable name or
slug. Renaming a machine therefore preserves filters and attribution. Remote
paths use the same prefix, while GitHub repository ids remain shared across
machines so the same repository still groups into one row.
Where to go next
ed configfortabUsageEnabled,claudeLimitsEnabled,codexLimitsEnabled,cursorLimitsEnabledandgrokLimitsEnabled, which decide what gets collecteded extensionsfor turning the Agent Usage extension on and off by ided permissionsfor the grants the app needs before it can collect anythinged menu-bar-statsfor this Mac's metrics, the other read-only reporting group- All
edcommands