Skip to main content

crewship paymaster

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.
View LLM spend rolled up by crew, agent, or mission. Reads from the cost_ledger table populated by the Paymaster middleware.

Subcommands


crewship paymaster by-crew

Sample output:

crewship paymaster by-agent <crew>

Takes a crew slug or ID as positional arg. Output columns: Agent, Cost (USD), Calls, Tokens.

crewship paymaster by-mission <missionId>

Return the total cost ledger for a single mission (cost, call count, input/output tokens). Mission is workspace-scoped; foreign mission IDs return 404. There is no --range flag here — the server returns the mission’s full cost history.

crewship paymaster top

Sample output:
Scope format: <scope_kind>/<scope_id> (one of workspace, crew, mission, agent).

crewship paymaster subscriptions

Show flat-rate subscription usage — the API counterpart to the “Subscription plans” panel on the Paymaster dashboard. No $-figures because flat-rate cost is always $0 by construction; the row shape is plan + provider + call_count + token totals + last_used.

crewship paymaster credential-spend

Show what each API key cost, from the metered ledger — the API counterpart to “thismonth"onaVaultAIprovidercard.‘−−rangemonth‘isthecalendarmonthsofar(UTC),thewindowaproviderbillsby.Flat−ratesubscriptionseatshaveno‘ this month" on a Vault AI provider card. `--range month` is the calendar month so far (UTC), the window a provider bills by. Flat-rate subscription seats have no `figure; usepaymaster subscriptions` for those. OWNER or ADMIN only. Only the credential id is shown, never a value.

Global output

--format json|yaml|ndjson works for every subcommand and emits the raw rollup structs from the API.

Known limitation

Paymaster metering only captures calls that flow through internal/llm (Keeper, summaries, consolidation, quartermaster). Calls made by the agent’s own CLI adapter (claude, gemini) talking directly to the provider API are not recorded in cost_ledger. See the Paymaster guide for details.Consequence: the numbers here are accurate for server-side LLM activity; agent-driven spend is visible only on the provider’s dashboard. Use workspace-wide budgets as the authoritative cap until the proxy rework lands.