v6

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01485121699.8 KB

Get Cost Current

Return real-time cost snapshot for the active run + GUI rollups.

Updated after each agent completion. Designed for TUI sidebar polling and lightweight dashboard widgets. Returns per-model input/output/cache token breakdown alongside spend and budget status.

Web GUI (Costs.tsx §6.05) consumes the additive today_usd, week_usd, projected_month_usd, budget_usd, used_pct, prior_week_usd, delta_hour_usd, resets_at and last_sync_at fields. Existing TUI/CLI callers keep reading spent_usd / percentage_used etc. unchanged.

get/costs/current

Response

Successful Response

{"stackTrail":"paths:/costs/current:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}