使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/cheaper-inference/omniroute --skill cli-cost-usage开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
<!-- 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 --versionSubcommands
cost
Flags:
--period <range>--since <date>--until <date>--group-by <field>--api-key <key>--limit <n>
Example:
omniroute costpricing
Example:
omniroute pricingpricing sync
Flags:
--provider <p>--force
Example:
omniroute pricing syncpricing list
Flags:
--provider <p>--model <m>--limit <n>
Example:
omniroute pricing listpricing get <model>
Example:
omniroute pricing get <model>pricing defaults
Example:
omniroute pricing defaultspricing show
Example:
omniroute pricing showpricing set
Flags:
--input <p>--output <p>--cache-read <p>--cache-write <p>
Example:
omniroute pricing setpricing diff
Flags:
--model <m>
Example:
omniroute pricing diffusage
Example:
omniroute usageusage analytics
Flags:
--period <range>--provider <id>
Example:
omniroute usage analyticsusage budget
Example:
omniroute usage budgetusage list
Example:
omniroute usage listusage 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 quotausage logs
Flags:
--limit <n>--search <q>--since <ts>--follow--api-key <k>
Example:
omniroute usage logsusage utilization
Flags:
--api-key <k>
Example:
omniroute usage utilizationusage history
Flags:
--limit <n>
Example:
omniroute usage historyusage proxy-logs
Flags:
--limit <n>
Example:
omniroute usage proxy-logs

