What problem does it solve?
Provide a simple, scriptable summary of per-model usage and cost from CodexBar local cost logs so engineers and operators can quickly see which model is currently driving spend or get a full model cost breakdown for billing and tuning.
Core Features & Use Cases
- Per-model aggregation: Aggregates costs from daily modelBreakdowns into per-model totals.
- Current-model detection: Picks the most recent top-cost model or falls back to the last model in modelsUsed, with an override to specify a model explicitly.
- Flexible inputs & outputs: Reads CodexBar CLI output, a file, or stdin and emits human-readable text or structured JSON; supports provider selection (codex/claude), day-range filtering, and pretty JSON.
- Use Case: Run after a daily cost snapshot to identify which model to prioritize for optimization or to generate a scriptable report for finance and engineering.
Quick Start
Use the bundled Python script to summarize CodexBar local cost JSON and report either the current top-cost model or a full per-model cost breakdown.