cents usage
Headroom semantics
Section titled “Headroom semantics”cents usage headroom reports today’s LLM spend against
max_llm_spend_usd_per_day set in ~/.cents/config.toml, NOT
factory.toml — easy mistake. The CENTS_MAX_LLM_SPEND_USD_PER_DAY
env var also works. The status field takes one of four values:
ok— well under the capapproaching_cap— within striking distance; consider raising the caphit_cap— pre-flight cost cap will block the next callno_cap_configured— no daily cap set;cents factory run --max-cost-usd Nis the only enforcement
Pair with cents usage summary --by agent to find the agent driving the
spend.
Report on LLM token usage and cost.
Synopsis
Section titled “Synopsis”cents usage <subcommand> [OPTIONS] [ARGS]...Subcommands
Section titled “Subcommands”cents usage headroom— Show today’s LLM spend vs the daily cap + recent cap-pressure days.cents usage list— Show individual recent LLM calls, newest first.cents usage summary— Aggregate LLM usage by agent, model, day, or operation.
cents usage headroom
Section titled “cents usage headroom”Show today’s LLM spend vs the daily cap + recent cap-pressure days.
Designed for cron-grepping. The status field is the cron-friendly
signal: ok / approaching_cap / hit_cap / no_cap_configured.
Example: cents usage headroom —output json | jq -e ‘.status != “hit_cap”’
Synopsis
cents usage headroom [OPTIONS]Options
| Option | Type | Default | Description |
|---|---|---|---|
| `—output [text | json]` | [text | json] | text |
--warn-pct FLOAT | float | 80.0 | Pct of cap considered ‘approaching cap’. |
--window-days INTEGER | integer | 7 | Trailing window for the cap-pressure rollup. |
Example
cents usage list
Section titled “cents usage list”Show individual recent LLM calls, newest first.
Synopsis
cents usage list [OPTIONS]Options
| Option | Type | Default | Description |
|---|---|---|---|
--since-days INTEGER | integer | 7 | Window in days. |
--limit INTEGER | integer | 50 | |
| `—output [text | json]` | [text | json] | text |
Example
cents usage list [OPTIONS]cents usage summary
Section titled “cents usage summary”Aggregate LLM usage by agent, model, day, or operation.
Synopsis
cents usage summary [OPTIONS]Options
| Option | Type | Default | Description |
|---|---|---|---|
--since-days INTEGER | integer | 30 | Window in days. |
| `—by [agent | model | day | operation]` |
| `—output [text | json]` | [text | json] | text |
Example
cents usage summary [OPTIONS]