zode cost reports usage and cost for whole UTC days. It reads the same numbers as the Usage page in the console.
A range covers at most 92 days.
Output
Amounts are exact to the micro-dollar ($0.000001). Compute is billed per second while a sandbox runs; storage is billed while it exists, running or stopped. Rates are on Pricing.
Sandboxes with no repo label fall under
(none). Set the label with zode new --repo.
Group by sandbox
CSV
--by and is empty for usage with no label. Money columns are integer micro-dollars: divide by 1,000,000 for USD. billable_micros is compute plus storage plus static IP. Cells that start like a spreadsheet formula are escaped.
For the same data over HTTP, call GET /v1/usage or GET /v1/usage.csv; see the API overview.