model-usage
Per-model cost summaries from CodexBar CLI logs for Codex or Claude providers.
- Supports two summary modes: "current" (most recent daily model with highest cost) and "all" (full model breakdown across all logged days)
- Accepts input via live CodexBar CLI invocation, JSON file, or stdin; outputs as plain text or formatted JSON
- Requires CodexBar CLI installed locally (macOS only via Homebrew; Linux support pending)
- Falls back to last entry in
modelsUsedwhen model breakdowns are unavailable; override with--modelflag for specific model queries
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
More from steipete/clawdis
summarize
Summarize or transcribe URLs, YouTube/videos, podcasts, articles, transcripts, PDFs, and local files.
15.1Kweather
Get current weather, rain, temperature, and forecasts for locations or travel planning.
4.2Ktmux
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
3.3Kgog
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
3.0Knano-pdf
Edit PDFs with natural-language instructions using the nano-pdf CLI.
2.7Kopenai-whisper
Local speech-to-text with the Whisper CLI (no API key).
2.5K