cli-cost-usage 精选
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.
安装方式
cp -r skills/cli-cost-usage ~/.claude/skills/cli-cost-usage把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
https://raw.githubusercontent.com/diegosouzapw/OmniRoute/7f3cbb046b3706bf0bbc047b7eaa0cbada8d9e50/skills/cli-cost-usage/SKILL.md下载后另存为 ~/.claude/skills/cli-cost-usage/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/diegosouzapw/OmniRoute.git
依赖与权限
- 需要 API Key —— 使用前需配置相应的密钥环境变量
- 无需联网
- 依赖外部命令:
npmnpx - 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
SKILL.md 正文
<!-- 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质量与来源
- 所属仓库
- diegosouzapw/OmniRoute
- 仓库星标
- 7.6 万
- 最近更新
- 昨天
- 采集时间
- 今天
- commit
- 7f3cbb046b37
- 内容指纹
- sha256:352d93689291fb4
- 文件路径
- skills/cli-cost-usage/SKILL.md