Skip to main content

Spend

Cost figures are readable by workspace OWNER and ADMIN only. For any other role the server answers 403 (“Spend requires OWNER or ADMIN”) and the command prints that reason.
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