Skip to main content
Get the current cost of a session as JSON. The response includes totals grouped by currency and, when available, AI and runtime line items.

Arguments

string
required
The session to inspect.

Output

The command prints JSON for scripts to parse with jq or a JSON library. estimated: false means the totals use the organization’s active billing prices. When no active Mo billing price is available, the response has estimated: true, totals estimated from session usage, and an empty lineItems array. The CLI also accepts null when a server returns no cost data.