model-usage

Summarize CodexBar cost JSON into per-model usage reports.

9|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/hongmaple0820/agent-academy --skill model-usage-hongmaple0820
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/hongmaple0820/agent-academy/tree/main/skills/others/model-usage
Command: npx skills add https://github.com/hongmaple0820/agent-academy --skill model-usage-hongmaple0820

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Summarize CodexBar local cost usage by model to reveal per-model costs and usage insights.

Core Features & Use Cases

  • Current-model reporting: identify the most expensive or most recent model usage from daily logs.
  • All-model breakdowns: produce totals per model across a selected period or dataset.
  • Flexible input/output: read from CodexBar cost JSON (or stdin) and output either human-readable text or structured JSON for dashboards.
  • Use cases include cost auditing, model optimization, and provider comparisons (Codex vs Claude).

Quick Start

Run the model_usage.py script against your CodexBar cost JSON to generate a per-model usage report.

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 API costs from a CodexBar JSON payload?

To summarize per-model API costs from a CodexBar JSON payload, you can run a script that reads the JSON file or stdin, filters by date if needed, and outputs model-level totals or latest-day costs in human-readable text or structured JSON format.

What is the best way to calculate per-model cost breakdowns for daily Codex and Claude logs?

The best way to calculate per-model cost breakdowns for daily Codex and Claude logs is to process the local cost JSON payload. This produces all-model breakdowns or current-model reports, revealing usage insights for cost auditing and provider comparisons.

Can I output JSON instead of text when analyzing model usage costs?

Yes, you can output structured JSON instead of text when analyzing model usage costs. The processing logic supports flexible input and output, allowing you to generate structured JSON data suitable for dashboards, audits, or budgeting systems.

Do I need any external dependencies to analyze CodexBar cost data locally?

No, you do not need external dependencies to analyze CodexBar cost data locally. The processing logic operates independently using included scripts and references to read the cost JSON payload and generate per-model usage reports.

How does filtering by date work when generating a per-model usage report?

Filtering by date when generating a per-model usage report works by applying a date filter to the input cost JSON payload. This allows you to isolate specific daily cost logs and calculate current-model reporting or full-model breakdowns for the selected period.

Why should I use a local script for AI cost analysis instead of other data analytics tools?

You should use a local script for AI cost analysis to reveal per-model costs directly from CodexBar JSON payloads without external data transfers. It supports provider comparisons like Codex vs Claude, offering immediate budgeting and optimization insights.