Skip to content

cents usage

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 cap
  • approaching_cap — within striking distance; consider raising the cap
  • hit_cap — pre-flight cost cap will block the next call
  • no_cap_configured — no daily cap set; cents factory run --max-cost-usd N is the only enforcement

Pair with cents usage summary --by agent to find the agent driving the spend.

Report on LLM token usage and cost.

Terminal window
cents usage <subcommand> [OPTIONS] [ARGS]...
  • 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.

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

Terminal window
cents usage headroom [OPTIONS]

Options

OptionTypeDefaultDescription
`—output [textjson]`[text | json]text
--warn-pct FLOATfloat80.0Pct of cap considered ‘approaching cap’.
--window-days INTEGERinteger7Trailing window for the cap-pressure rollup.

Example

Terminal window

Show individual recent LLM calls, newest first.

Synopsis

Terminal window
cents usage list [OPTIONS]

Options

OptionTypeDefaultDescription
--since-days INTEGERinteger7Window in days.
--limit INTEGERinteger50
`—output [textjson]`[text | json]text

Example

Terminal window
cents usage list [OPTIONS]

Aggregate LLM usage by agent, model, day, or operation.

Synopsis

Terminal window
cents usage summary [OPTIONS]

Options

OptionTypeDefaultDescription
--since-days INTEGERinteger30Window in days.
`—by [agentmodeldayoperation]`
`—output [textjson]`[text | json]text

Example

Terminal window
cents usage summary [OPTIONS]
Not financial advice. Cents is an educational and research tool for tracking your own investment theses. Outputs are model-generated and may be inaccurate. You are solely responsible for your own investment decisions.