Skip to main content

Spend

cmd/crewship/cmd_spend.go is the CLI counterpart to GET /api/v1/journal/spend (#1404) — a cost rollup built directly over the journal (cost.incurred entries) and pipeline_runs.cost_usd.
crewship spend is a separate, journal-native rollup from crewship cost / crewship paymaster, which hit /api/v1/paymaster/*. This is an intentional duplication, not a redundant command — see the Crew Journal guide for why two cost surfaces coexist.

crewship spend

Examples

Output

--format json/yaml/ndjson return the full structured payload (window, total_cost_usd, by_agent[], by_routine[], top_routines[], top_runs[], truncated) for scripting — see the API reference for the exact shape.

See also