model-usage

Summarizes per-model cost usage from CodexBar local cost JSON for Codex or Claude.

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/travis-burmaster/agentbox --skill model-usage-travis-burmaster
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/travis-burmaster/agentbox/tree/main/agentfork/skills/model-usage
Command: npx skills add https://github.com/travis-burmaster/agentbox --skill model-usage-travis-burmaster

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? CodexBar cost logs contain daily token and cost data across many models, making it hard to answer simple questions like which model you used most recently or how much each model cost. This Skill parses that JSON and produces a clear per-model cost summary. ## Core Features & Use Cases - Current Model Detection: Identifies the most recent model from the latest daily entry, picking the highest-cost model in the breakdown or falling back to the last entry in modelsUsed. - All-Models Breakdown: Aggregates cost per model across daily rows, with optional filtering to the last N days. - Flexible Input and Output: Reads from the codexbar CLI, a JSON file, or stdin, and outputs plain text or structured JSON. - Use Case: Ask which Claude model you used most recently and what it cost, and get an immediate answer with the latest day cost and total spend. ## Quick Start Ask the assistant to show your current Codex model usage and cost from CodexBar, or request a full per-model cost breakdown for Claude.

Frequently Asked Questions about model-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get per-model cost usage from CodexBar?

Run the model_usage.py script with --provider codex or claude and --mode all to aggregate cost per model from codexbar cost JSON. Use --mode current to get only the most recently used model and its cost.

How do I find which model I used most recently with codexbar?

Use current mode, which reads the most recent daily entry with modelBreakdowns and picks the highest-cost model. If breakdowns are missing, it falls back to the last entry in modelsUsed, and you can override with --model.

Can I use codexbar cost data from a file instead of the CLI?

Yes, pass a saved JSON file with --input path or pipe data via stdin using --input -. The script accepts either the full codexbar array payload or a single provider object.

Does codexbar cost tracking work on Linux?

The skill metadata currently lists macOS (darwin) as the supported OS with installation via the steipete/tap/codexbar brew cask. Linux CLI support is noted as a TODO pending documented install paths.

Why does the script report no model data found?

This happens when the codexbar cost payload contains no daily entries with modelBreakdowns or modelsUsed. Verify that codexbar cost --format json returns daily rows and that local session JSONL logs exist for the provider.