本文へ移動
cccskills
無料GitHub で公開日本語紹介

model-usage

CodexBarのローカル費用ログから、CodexやClaudeの利用費用をモデル別に集計し、直近の代表モデルや全モデルの内訳をテキスト・JSONで確認するスキル。

原文Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.

インストール方法を見る

こんなときに便利

  • 直近の代表モデルの費用確認
  • 全モデルの利用費用を比較したいとき
  • 書き出した費用ログの集計
  • モデル別費用のJSON出力

日本語での紹介

できること

CodexやClaudeの利用費用を、CodexBarのローカルログからモデル別に集計します。付属のmodel_usage.pyで、直近の代表モデルまたは全モデルの費用内訳を確認し、テキストやJSONで出力できます。特定のモデル名を指定した集計にも対応しています。

こんなときに便利

複数のモデルを使っていて、それぞれにどれだけ費用がかかったか確認したいときに向いています。CodexBarから書き出したJSONファイルや標準入力も受け取れるため、保存済みのログを集計する用途にも使えます。

使い方の例

  • 「Codexの全モデルの利用費用を集計して」
  • 「Claudeの費用内訳を読みやすいJSONで出して」
  • 「書き出したCodexBarのJSONから、指定モデルの費用を確認して」

注意点

ローカルログを直接読むには、macOSまたはLinuxでcodexbarを実行できる環境が必要です。書き出したJSONの集計はPythonが使える環境に対応します。「直近のモデル」は最新の日次内訳で費用が最大のモデルを選び、内訳がない場合はmodelsUsedの最後の項目を使います。モデル別に集計する値は費用のみで、トークン数の内訳は出しません。

この紹介文は、公開されている SKILL.md をもとに AI(Claude Haiku)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(4)

  • SKILL.md2.5 KB
  • references/codexbar-cli.md1.3 KB
  • scripts/model_usage.py11.2 KB
  • scripts/test_model_usage.py5.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Model usage

Overview

Get per-model usage cost from CodexBar's local cost logs. Supports "current model" (most recent daily entry) or "all models" summaries for Codex or Claude.

CodexBar ships CLI builds for macOS and Linux. When codexbar is on PATH, the skill reads local usage directly; the bundled Python summarizer also accepts exported CodexBar JSON through --input anywhere Python is available.

Quick start

  1. Fetch cost JSON via CodexBar CLI or pass a JSON file.
  2. Use the bundled script to summarize by model.
python {baseDir}/scripts/model_usage.py --provider codex --mode current
python {baseDir}/scripts/model_usage.py --provider codex --mode all
python {baseDir}/scripts/model_usage.py --provider claude --mode all --format json --pretty

Current model logic

  • Uses the most recent daily row with modelBreakdowns.
  • Picks the model with the highest cost in that row.
  • Falls back to the last entry in modelsUsed when breakdowns are missing.
  • Override with --model <name> when you need a specific model.

Inputs

  • Default: runs codexbar cost --format json --provider <codex|claude>.
  • macOS and Linux: use the bundled Homebrew formula installer above for live local usage reads. Linux users can also use CodexBar's AUR package or official release tarballs.
  • Other platforms: use --input with exported CodexBar JSON.
  • File or stdin:
codexbar cost --provider codex --format json > /tmp/cost.json
python {baseDir}/scripts/model_usage.py --input /tmp/cost.json --mode all
cat /tmp/cost.json | python {baseDir}/scripts/model_usage.py --input - --mode current

Output

  • Text (default) or JSON (--format json --pretty).
  • Values are cost-only per model; tokens are not split by model in CodexBar output.

References

  • Read references/codexbar-cli.md for CLI flags and cost JSON fields.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

1password

無料日本語概要

1Password CLIの導入と認証を確認し、保存したパスワードやAPIキーをコマンドや設定へ渡します。デスクトップ連携やサービスアカウントにも対応します。

  • 1Password CLIを導入したいとき
  • APIキーをコマンドに渡したいとき
  • CIでサービスアカウント認証を使う
openclaw/openclaw39.2万2026年10月10日 更新

acp-router

無料日本語概要

OpenClawへの自然な言葉の依頼をClaude Codeなどの外部コーディングエージェントへ振り分け、作業の開始や継続、スレッド内の会話をつなぐスキルです。

  • Claude Codeをスレッドで開始
  • 外部エージェントの作業を続けたいとき
  • acpxから直接指示を渡したいとき
openclaw/openclaw39.2万2026年10月10日 更新

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

日本語の概要は準備中です。原文の説明を表示しています。

openclaw/openclaw39.2万2026年10月10日 更新

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

日本語の概要は準備中です。原文の説明を表示しています。

openclaw/openclaw39.2万2026年10月10日 更新

apple-notes

無料日本語概要

macOSのApple Notesをエージェントから作成・検索・編集・削除し、フォルダ間の移動やHTML・Markdownへの書き出しを行うスキル。

  • タイトルを付けてメモを作りたいとき
  • フォルダ指定やあいまい検索でメモ探し
  • メモの編集とフォルダ整理
openclaw/openclaw39.2万2026年10月10日 更新

apple-reminders

無料日本語概要

Apple Remindersの予定付きToDoをMacから確認・追加・編集するスキル。リストの管理や完了・削除にも対応し、iPhoneやiPadで見るタスクを整理できます。

  • 今日のタスクや期限超過を確認したいとき
  • 期限付きの個人ToDoを追加したいとき
  • iPhoneやiPadのタスクを整理
openclaw/openclaw39.2万2026年10月10日 更新

openclaw のスキルをすべて見る

このスキルの問題を報告する