M
model-usage
by @steipetev
4.3(61)
CodexBar CLIを使用して、CodexまたはClaudeのローカルモデル使用コストを、現在のモデルと完全なモデルの内訳を含めて要約します。
インストール方法
npx skills add steipete/clawdis --skill model-usagecompare_arrows
Before / After 効果比較
1 组使用前
ローカルAIモデル(CodexやClaudeなど)の運用コストを正確に推定することは困難であり、リソース消費が不透明です。予算管理が難しく、モデルの使用戦略を最適化できません。
使用後
CLIツールを活用することで、モデルの使用コストの内訳を明確に把握し、リソースの透明な管理を実現します。予算を効果的に管理し、モデルの選択と使用を最適化し、効率を向上させます。
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.
TODO: add Linux CLI support guidance once CodexBar CLI install path is documented for Linux.
Quick start
- Fetch cost JSON via CodexBar CLI or pass a JSON file.
- 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
modelsUsedwhen breakdowns are missing. - Override with
--model <name>when you need a specific model.
Inputs
- Default: runs
codexbar cost --format json --provider <codex|claude>. - 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.mdfor CLI flags and cost JSON fields.
ユーザーレビュー (0)
レビューを書く
効果
使いやすさ
ドキュメント
互換性
レビューなし
統計データ
インストール数1.6K
評価4.3 / 5.0
バージョン
更新日2026年5月21日
比較事例1 件
ユーザー評価
4.3(61)
5
20%
4
51%
3
26%
2
3%
1
0%
この Skill を評価
0.0
対応プラットフォーム
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
タイムライン
作成2026年3月16日
最終更新2026年5月21日