--- name: cli-cost-usage description: View cost breakdowns, token usage, and call logs from the CLI. Filter by provider, model, or date range. Export usage reports and inspect per-connection spending. --- ## Overview View cost breakdowns, token usage, and call logs from the CLI. Filter by provider, model, or date range. Export usage reports and inspect per-connection spending. ## Quick install ```bash npm install -g omniroute # or: npx omniroute omniroute --version ``` ## Subcommands ### `cost` **Flags:** - `--period ` - `--since ` - `--until ` - `--group-by ` - `--api-key ` - `--limit ` **Example:** ```bash omniroute cost ``` ### `pricing` **Example:** ```bash omniroute pricing ``` ### `pricing sync` **Flags:** - `--provider

` - `--force` **Example:** ```bash omniroute pricing sync ``` ### `pricing list` **Flags:** - `--provider

` - `--model ` - `--limit ` **Example:** ```bash omniroute pricing list ``` ### `pricing get ` **Example:** ```bash omniroute pricing get ``` ### `pricing defaults` **Example:** ```bash omniroute pricing defaults ``` ### `pricing show` **Example:** ```bash omniroute pricing show ``` ### `pricing set` **Flags:** - `--input

` - `--output

` - `--cache-read

` - `--cache-write

` **Example:** ```bash omniroute pricing set ``` ### `pricing diff` **Flags:** - `--model ` **Example:** ```bash omniroute pricing diff ``` ### `usage` **Example:** ```bash omniroute usage ``` ### `usage analytics` **Flags:** - `--period ` - `--provider ` **Example:** ```bash omniroute usage analytics ``` ### `usage budget` **Example:** ```bash omniroute usage budget ``` ### `usage list` **Example:** ```bash omniroute usage list ``` ### `usage get [scope]` **Example:** ```bash omniroute usage get [scope] ``` ### `usage set ` **Flags:** - `--scope ` - `--period

` **Example:** ```bash omniroute usage set ``` ### `usage reset [scope]` **Example:** ```bash omniroute usage reset [scope] ``` ### `usage quota` **Flags:** - `--provider ` - `--check` **Example:** ```bash omniroute usage quota ``` ### `usage logs` **Flags:** - `--limit ` - `--search ` - `--since ` - `--follow` - `--api-key ` **Example:** ```bash omniroute usage logs ``` ### `usage utilization` **Flags:** - `--api-key ` **Example:** ```bash omniroute usage utilization ``` ### `usage history` **Flags:** - `--limit ` **Example:** ```bash omniroute usage history ``` ### `usage proxy-logs` **Flags:** - `--limit ` **Example:** ```bash omniroute usage proxy-logs ```