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 spendin
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-cost-usage-929a99e71f8a ,按照其中的说明把「cli-cost-usage」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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.
npm install -g omniroute # or: npx omniroute
omniroute --version
costFlags:
--period <range>--since <date>--until <date>--group-by <field>--api-key <key>--limit <n>Example:
omniroute cost
pricingExample:
omniroute pricing
pricing syncFlags:
--provider <p>--forceExample:
omniroute pricing sync
pricing listFlags:
--provider <p>--model <m>--limit <n>Example:
omniroute pricing list
pricing get <model>Example:
omniroute pricing get <model>
pricing defaultsExample:
omniroute pricing defaults
pricing showExample:
omniroute pricing show
pricing setFlags:
--input <p>--output <p>--cache-read <p>--cache-write <p>Example:
omniroute pricing set
pricing diffFlags:
--model <m>Example:
omniroute pricing diff
usageExample:
omniroute usage
usage analyticsFlags:
--period <range>--provider <id>Example:
omniroute usage analytics
usage budgetExample:
omniroute usage budget
usage listExample:
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 quotaFlags:
--provider <id>--checkExample:
omniroute usage quota
usage logsFlags:
--limit <n>--search <q>--since <ts>--follow--api-key <k>Example:
omniroute usage logs
usage utilizationFlags:
--api-key <k>Example:
omniroute usage utilization
usage historyFlags:
--limit <n>Example:
omniroute usage history
usage proxy-logsFlags:
--limit <n>Example:
omniroute usage proxy-logs