model-usage

Aggregate CodexBar cost logs into per-model spending summaries.

1|1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/kelinfoxy/EZ-Homelab --skill model-usage-kelinfoxy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/kelinfoxy/EZ-Homelab/tree/main/docker-compose/ez-assistant/skills/model-usage
Command: npx skills add https://github.com/kelinfoxy/EZ-Homelab --skill model-usage-kelinfoxy

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

CodexBar's local cost logs can be hard to interpret at the model level; this skill aggregates per-model costs to provide clear, actionable insights.

Core Features & Use Cases

  • Retrieve per-model costs from local CodexBar logs to understand spending by model.
  • Generate current-model summaries or full model breakdowns for Codex or Claude across multiple days or providers.
  • Use for cost auditing, budgeting, and optimization across projects or teams.

Quick Start

Run the model_usage.py script to generate a per-model cost report from local CodexBar 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 usage costs from CodexBar logs?

To track Claude and Codex spending from local cost logs, you parse the CodexBar cost JSON to aggregate model-cost data from daily breakdowns. This attributes spending to individual models, exposing results in text or JSON formats with fields like provider, mode, and totalCostUSD.

Can I filter CodexBar cost summaries by date range or input source?

Yes, you can filter CodexBar cost summaries by date range and input source. This functionality allows you to generate current-model summaries or full model breakdowns across multiple days or providers, enabling targeted cost insights and reporting.

What data formats are output when aggregating model costs from logs?

When aggregating model costs from logs, the output is exposed in either text or JSON formats. The JSON format includes specific fields such as provider, mode, model, totalCostUSD, and dailyRowCount to provide structured data for cost reporting.

Does processing CodexBar logs require any external dependencies?

Processing CodexBar logs does not require any external dependencies. The skill operates locally using built-in scripts and references to parse the cost JSON and aggregate the daily breakdowns without needing additional packages or environments.

What is the best way to audit spending across different AI models locally?

The best way to audit spending across different AI models locally is to aggregate per-model costs from CodexBar logs. By parsing the local cost JSON, you can attribute spending to individual models for Codex and Claude, generating a clear breakdown for budget optimization.

Why are CodexBar local cost logs hard to interpret at the model level?

CodexBar local cost logs are hard to interpret at the model level because the raw JSON format contains unaggregated daily breakdowns. Aggregating these logs attributes spending to individual models, providing clear, actionable insights for cost analysis.