model-usage

Summarize CodexBar local cost usage into per-model cost summaries.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill extracts and summarizes local cost usage from CodexBar logs so you can see per-model spending without manually parsing JSONL files or sifting through daily entries.

Core Features & Use Cases

  • Current model detection: Automatically picks the most recent model by cost or falls back to the last used model when breakdowns are missing.
  • All-model aggregation: Aggregates total cost per model across daily rows for Codex or Claude providers.
  • Flexible input & output: Accepts CodexBar CLI output or a provided JSON file/stream and emits human-readable text or JSON for scripting and reporting.

Quick Start

Summarize per-model costs from my CodexBar local cost JSON and show the current model with its total cost and latest day cost.

Frequently Asked Questions about model-usage

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

FAQPage Schema
How do I summarize per-model usage costs from CodexBar logs?

To summarize per-model usage costs from CodexBar logs, this Skill aggregates total cost per model across daily rows for Codex and Claude providers. It automatically detects the current model by cost or falls back to the last used model, outputting human-readable text or JSON.

Can I parse CodexBar JSON output to calculate total spending per model?

Yes, you can parse CodexBar JSON output to calculate total spending per model. The Skill accepts a provided JSON file or stream as input, aggregates the daily cost rows for each model, and outputs a structured JSON or text summary.

What is the best way to filter CodexBar cost usage by specific days?

The best way to filter CodexBar cost usage by specific days is to use the Skill's built-in days filtering parameter. This function processes the local cost JSON and restricts the per-model cost aggregation to only include entries from your specified timeframe.

Do I need the CodexBar CLI installed to aggregate per-model costs?

You do not strictly need the CodexBar CLI installed to aggregate per-model costs. While the Skill supports reading directly from the CLI if it is available on your PATH, you can alternatively provide an input JSON stream or file directly.

Can I override the current model selection when summarizing CodexBar usage?

Yes, you can override the current model selection when summarizing CodexBar usage. The Skill supports explicit model overrides, allowing you to manually specify a target model instead of relying on the automatic detection of the most recent model by cost.

Does this tool work with both Codex and Claude provider usage data?

Yes, this tool works with both Codex and Claude provider usage data. It aggregates total costs per model across daily rows for both provider types, allowing you to generate comprehensive per-model cost summaries from your local CodexBar logs.