一键导入
model-usage
// Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.
// Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.
Find or repair small high-confidence non-SDK-boundary OpenClaw bugfix PRs until five are landable.
Use when testing, fixing, or extending the OpenClaw Control UI GUI with Vitest + Playwright end-to-end checks, mocked Gateway WebSocket flows, mocked dashboard runs, screenshots/videos, or agent-verifiable browser proof.
Capture and automate macOS UI with the Peekaboo CLI.
Diagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
Auto Review closeout. Codex review is the default when no engine is set and is the recommended reviewer.
Use the Crabbox wrapper for OpenClaw remote validation across Linux, macOS, Windows, and WSL2, including delegated Blacksmith Testbox proof. Report the actual provider and id.
| name | model-usage |
| description | Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns. |
| metadata | {"openclaw":{"emoji":"📊","os":["darwin"],"requires":{"bins":["codexbar"]},"install":[{"id":"brew-cask","kind":"brew","formula":"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.
Live CodexBar CLI invocation is currently documented for macOS only. The bundled Python summarizer is portable: if you already have exported CodexBar JSON, --input mode works anywhere Python is available.
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 <name> when you need a specific model.codexbar cost --format json --provider <codex|claude>.--input with exported CodexBar JSON until this skill documents a supported local CodexBar install path for that platform.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.