Skip to content
Skillpedia
Analysis & spreadsheets84k · #1402

cli-cost-usage

What it does

This skill shows how to check AI spending and token usage from the command line. It is for people who want to see what their model calls cost and where the money goes.

When to use it

  • ✓When a user asks how much their AI usage costs.
  • ✓When a user wants token usage broken down by provider, model or date.
  • ✓When a user wants to export a usage report or review call logs.

Skill link

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-cost-usage/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-cost-usage/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“How much did I spend on AI calls last month, grouped by model?”

5 new skills a week. 1 minute to read.

How it works

The skill lists commands to view costs grouped by a field, such as provider or model, within a date range. It also covers pricing lookups, usage views and call logs.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

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
FAQ

Can I see costs for one provider?

Yes. You can filter by provider, model or date range.

Can I update the prices used?

Yes. The pricing commands include a sync option and a set option for custom prices.

Can I export the report?

Yes. The skill covers exporting usage reports.

Details

Original description by the author

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.

repo: cheaper-inference/OmniRoute

Popularity

GitHub stars
84k
Ranking position
#1402
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills