voicegw costs
Display cost summaries from the gateway’s request log.Purpose
Thecosts command queries the SQLite database to show how much you have spent on voice AI requests. It breaks costs down by provider and by model, and can be filtered by project and time period.
Syntax
Options
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--config | -c | string | null | Path to voicegw.yaml. Auto-discovered if omitted. |
--project | -p | string | null | Filter costs to a specific project ID. |
--week | boolean | false | Show the weekly summary instead of today. | |
--month | boolean | false | Show the monthly summary instead of today. |
--week and --month are omitted, the default period is today. If both are provided, --month takes precedence.
Prerequisites
Cost tracking must be enabled invoicegw.yaml:
Output
The command displays:- A header with the period and optional project filter.
- The total cost in USD.
- A By Provider table with cost and request count per provider.
- A By Model table with cost and request count per model.
Examples
Show today’s costs
Show weekly costs for a project
Show monthly costs
Use a custom config path
Exit Codes
| Code | Meaning |
|---|---|
0 | Success (including when cost tracking is disabled — prints warning). |
1 | Config failed to load. |
Related Commands
voicegw status— see which providers are configuredvoicegw logs— view individual request recordsvoicegw projects— list projects with budget info