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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.
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.
Popularity
- GitHub stars
- 84k
- Ranking position
- #1402
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
cli-a2a
84kRuns the OmniRoute command line for agent-to-agent tasks, letting you send work, check task history and test skills.
cli-backup-sync
84kRuns OmniRoute data backups from the command line, including snapshots, cloud sync, schedules and restores from archives.
cli-batches
84kSubmits batch AI jobs from the command line, tracks their progress and saves results or errors, including for CI pipelines.
cli-chat
84kSends chat requests to AI models from the command line, with streaming replies, system prompts and an interactive session.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.