Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install model-usage或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install model-usage⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/model-usage/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: model-usage description: Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON. metadata: {"clawdbot":{"emoji":"📊","os":["darwin"],"requires":{"bins":["codexbar"]},"install":[{"id":"brew-cask","kind":"brew","cask":"steipete/tap/codexbar","bins":["codexbar"],"label":"Install CodexBar (brew cask)"}]}} ---
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.
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
modelBreakdowns.modelsUsed when breakdowns are missing.--model when you need a specific model.codexbar cost --format json --provider .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
--format json --pretty).references/codexbar-cli.md for CLI flags and cost JSON fields.安装 Model Usage 后,可以对 AI 说这些话来触发它
Help me get started with Model Usage
Explains what Model Usage does, walks through the setup, and runs a quick demo based on your current project
Use Model Usage to use CodexBar CLI local cost usage to summarize per-model usage for ...
Invokes Model Usage with the right parameters and returns the result directly in the conversation
What can I do with Model Usage in my developer & devops workflow?
Lists the top use cases for Model Usage, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/model-usage/ 目录(个人级,所有项目可用),或 .claude/skills/model-usage/(项目级)。重启 AI 客户端后,用 /model-usage 主动调用,或让 AI 根据上下文自动发现并使用。
Model Usage 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Model Usage 可免费安装使用。请查阅仓库了解许可证信息。
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Model Usage 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Model Usage
Identifies repetitive steps in your workflow and sets up Model Usage to handle them automatically