model-usage

Parse CodexBar JSON logs to aggregate per-model cost breakdowns.

7|12|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/borealBytes/my-farm-advisor --skill model-usage-borealbytes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/borealBytes/my-farm-advisor/tree/main/skills/model-usage
Command: npx skills add https://github.com/borealBytes/my-farm-advisor --skill model-usage-borealbytes

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

CodexBar cost data is often spread across daily logs, making it hard to quickly understand per-model spending. This Skill automates extracting and aggregating those costs to provide clear visibility into Codex and Claude usage.

Core Features & Use Cases

  • Local cost summarization by model from CodexBar JSON logs.
  • Current-model view: identify the most expensive model on the latest day.
  • All-model view: generate a per-model cost breakdown across a selected period.

Quick Start

Run the bundled Python script to summarize per-model costs from CodexBar JSON data or local logs.

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 breakdowns from CodexBar local logs?

To summarize per-model costs from CodexBar local logs, run the bundled Python script to parse daily JSON records, aggregate modelBreakdowns, and output a clear text or JSON cost breakdown for Codex and Claude usage.

What is the easiest way to extract current-model spending snapshots from CodexBar JSON data?

The easiest way to extract current-model spending from CodexBar JSON data is using the current-model view, which identifies the most expensive model on the latest day by parsing local logs with the Python script.

Do I need the CodexBar CLI to generate the JSON data required for this cost analysis?

Yes, you need the CodexBar CLI to generate the JSON data. The Skill's Python script parses these daily JSON records to aggregate modelBreakdowns and calculate per-model usage costs locally.

Can I aggregate Codex and Claude usage costs across a selected period?

Yes, you can aggregate Codex and Claude usage costs across a selected period using the all-model view, which generates a full per-model cost breakdown from your local JSON logs.

Does this Skill work with other data and analytics tools for parsing JSON cost records?

This Skill uses a bundled Python script specifically for parsing CodexBar JSON cost records. It outputs text or JSON results, which can be integrated with other data and analytics tools for further processing.