
Model Usage
If you're running CodexBar to track API costs and want to see which models are burning through your budget, this pulls that breakdown from the local logs. It can show you the current active model's spend or summarize everything across Codex or Claude providers. The "current model" logic is clever: it grabs the most recent daily entry and picks whichever model cost the most, though you can override that. Output is plain text or JSON, and it handles both piped input and direct CLI calls. macOS only for now since CodexBar is a Mac app, but the Python script itself is portable once the CLI arrives on Linux.
- skills.sh installs
- 2.8K
- GitHub stars
- 382.8K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add steipete/clawdis --skill model-usage --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
- 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
Sponsors
Details
- Repository
- github.com/steipete/clawdis
- First seen
- Apr 16, 2026