model-usage

Summarize CodexBar local model usage costs by model from JSON input.

330|61|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/eggent-ai/eggent --skill model-usage-eggent-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/eggent-ai/eggent/tree/main/bundled-skills/model-usage
Command: npx skills add https://github.com/eggent-ai/eggent --skill model-usage-eggent-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

CodexBar local cost logs can be difficult to interpret. This tool summarizes costs by model, helping you understand spend at a glance and identify cost drivers.

Core Features & Use Cases

  • Current model cost snapshot: quickly identify the most expensive model on the latest day.
  • All-model breakdowns: aggregate costs per model across days for budgeting and optimization.
  • Flexible input: consumes CodexBar JSON either from a file or standard input for easy integration.
  • Use Case: a data analyst wants to report monthly model-level costs for Codex and Claude in a single dashboard.

Quick Start

Run the model-usage script with your CodexBar cost JSON to view per-model costs.

Frequently Asked Questions about model-usage

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

FAQPage Schema
How do I summarize local model usage costs by model from CodexBar logs?

To summarize local model usage costs by model, process CodexBar JSON logs through the script to aggregate daily expenses per model. It reads cost JSON from a file or standard input to help identify your most expensive models.

Can I track Codex and Claude costs per model using local JSON logs?

Yes, you can track Codex and Claude costs per model using local JSON logs. The tool aggregates cost-tracking outputs by model, providing an all-model breakdown across days for budgeting and spend optimization.

Do I need CodexBar CLI on PATH to analyze per-model usage costs?

Yes, you need the CodexBar CLI on PATH to analyze per-model usage costs. The tool requires this environment setup to process local logs and generate accurate cost summaries from JSON payloads.

How do I get a current snapshot of the most expensive model from cost JSON?

To get a current snapshot of the most expensive model, run the script with your latest CodexBar cost JSON. It identifies the highest-cost model on the latest day, helping you quickly spot daily cost drivers.

What is the best way to aggregate CodexBar model-level costs for a dashboard?

The best way to aggregate CodexBar model-level costs for a dashboard is to pipe the JSON output directly into the script via standard input. This flexible input method allows seamless integration for reporting monthly model-level costs.

Why are my CodexBar local cost logs difficult to interpret for budgeting?

CodexBar local cost logs are difficult to interpret because raw JSON outputs lack aggregated summaries. This tool solves the problem by grouping costs by model, giving you a clear breakdown for budgeting and optimization.