mcpField
C
cli-cost-usage

cli-cost-usage

github.com/cheaper-inferenceData & databases82.3k1.1k installsUpdated today
Repository

About cli-cost-usage

cli-cost-usage is an OmniRoute CLI skill for reviewing costs, token usage, and request logs. It provides filters for provider, model, and time period, plus pricing and usage management commands.

Key features

  1. 01View cost breakdowns by period
  2. 02Filter usage by provider or model
  3. 03Inspect request and proxy logs
  4. 04List and update model pricing
  5. 05Review budgets, quotas, and utilization
  6. 06Export usage reports

Use cases

  1. 01Review spending over a selected date range
  2. 02Compare costs across providers or models
  3. 03Inspect calls associated with an API key
  4. 04Check usage budgets and provider quotas

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cheaper-inference/omniroute --skill cli-cost-usage

After installing, type/cli-cost-usagein Claude Code to confirm it loaded.

Details

From the project README

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

npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

cost

Flags:

  • --period <range>
  • --since <date>
  • --until <date>
  • --group-by <field>
  • --api-key <key>
  • --limit <n>

Example:

omniroute cost
pricing

Example:

omniroute pricing
pricing sync

Flags:

  • --provider <p>
  • --force

Example:

omniroute pricing sync
pricing list

Flags:

  • --provider <p>
  • --model <m>
  • --limit <n>

Example:

omniroute pricing list
pricing get <model>

Example:

omniroute pricing get <model>
pricing defaults

Example:

omniroute pricing defaults
pricing show

Example:

omniroute pricing show
pricing set

Flags:

  • --input <p>
  • --output <p>
  • --cache-read <p>
  • --cache-write <p>

Example:

omniroute pricing set
pricing diff

Flags:

  • --model <m>

Example:

omniroute pricing diff
usage

Example:

omniroute usage
usage analytics

Flags:

  • --period <range>
  • --provider <id>

Example:

omniroute usage analytics
usage budget

Example:

omniroute usage budget
usage list

Example:

omniroute usage list
usage get [scope]

Example:

omniroute usage get [scope]
usage set <amount>

Flags:

  • --scope <s>
  • --period <p>

Example:

omniroute usage set <amount>
usage reset [scope]

Example:

omniroute usage reset [scope]
usage quota

Flags:

  • --provider <id>
  • --check

Example:

omniroute usage quota
usage logs

Flags:

  • --limit <n>
  • --search <q>
  • --since <ts>
  • --follow
  • --api-key <k>

Example:

omniroute usage logs
usage utilization

Flags:

  • --api-key <k>

Example:

omniroute usage utilization
usage history

Flags:

  • --limit <n>

Example:

omniroute usage history
usage proxy-logs

Flags:

  • --limit <n>

Example:

omniroute usage proxy-logs

Comments

Markdown supported