model-usage

Summarize per-model CodexBar costs from local JSON logs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/RJB07/RX01 --skill model-usage-rjb07
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/RJB07/RX01/tree/main/core/skills/model-usage
Command: npx skills add https://github.com/RJB07/RX01 --skill model-usage-rjb07

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Get per-model usage cost from CodexBar's local cost logs and present concise summaries for Codex or Claude models, including the current (most recent) model or a full model breakdown.

Core Features & Use Cases

  • Current model view: identify the model with the highest cost from the latest daily entry.
  • All-model breakdown: aggregate costs per model across daily logs and output as text or JSON.
  • Flexible input/output: accepts JSON from codexbar cost or a JSON file and renders as human-readable text or structured JSON.

Quick Start

Run the bundled script to summarize per-model CodexBar cost from a local cost JSON file.

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 cost usage from CodexBar logs locally?

To summarize per-model cost usage locally, run the model_usage.py Python script to aggregate CodexBar cost logs by model. It processes JSON input from the codexbar CLI or a file and outputs a per-model cost breakdown.

What dependencies do I need to run a per-model cost breakdown for Codex and Claude usage?

You need Python 3 installed and the codexbar CLI present on your system PATH to perform a per-model cost breakdown. The script reads Codex and Claude usage data from local JSON logs or standard output.

Can I view the current highest-cost model instead of an all-model total in CodexBar logs?

Yes, you can view the current highest-cost model from the latest daily entry. The script provides an option to select the current model focus rather than aggregating an all-model total across daily log entries.

How do I output CodexBar cost data as structured JSON instead of text?

You can output CodexBar cost data as structured JSON by specifying JSON formatting in the model_usage.py script. It supports both human-readable text and structured JSON output for the aggregated cost breakdown.

Does the per-model usage summarizer accept JSON input from standard output or only files?

The per-model usage summarizer accepts JSON input flexibly from both standard output and JSON files. It can read codexbar cost data directly from stdout/stderr or parse a specified local JSON file.

What is the best way to aggregate daily CodexBar cost logs by model?

The best way to aggregate daily CodexBar cost logs by model is using a Python script that parses local JSON logs and performs model breakdown aggregation. It calculates per-model totals across all daily entries automatically.