本文へスキップ
Skillpedia
分析とスプレッドシート84k · #1402

cli-cost-usage

できること

このスキルは、コマンドラインでAIの支出とトークンの使用量を確認する方法を示します。モデルの呼び出しにどれだけお金がかかり、どこに使われているかを知りたい人のためのものです。

使う場面

  • ✓AIの利用にどれだけお金がかかっているかを知りたいとき。
  • ✓プロバイダー、モデル、日付ごとのトークン使用量を内訳で見たいとき。
  • ✓利用レポートを書き出したい、または呼び出しのログを確認したいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-cost-usage/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“先月のAI呼び出しにいくら使ったかを、モデルごとに分けて教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、プロバイダーやモデルなどの項目でまとめたコストを、期間を指定して表示するコマンドを一覧にします。料金の確認、使用量の表示、呼び出しのログも扱います。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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
よくある質問

1つのプロバイダーのコストだけを見られますか?

はい。プロバイダー、モデル、日付の範囲で絞り込めます。

使用する料金を更新できますか?

はい。料金のコマンドには同期のオプションと、独自の料金を設定するオプションがあります。

レポートを書き出せますか?

はい。スキルは利用レポートの書き出しを扱っています。

詳細

作者による元の説明

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

人気

GitHubのスター
84k
ランキング
#1402
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル