model-usage

Analyze CodexBar CLI logs to summarize model usage and costs.

Updated Jun 16, 2026
One-click install
npx skills add https://github.com/breakingcircuits1337/agent-skills --skill model-usage-breakingcircuits1337
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/breakingcircuits1337/agent-skills/tree/main/model-usage
Command: npx skills add https://github.com/breakingcircuits1337/agent-skills --skill model-usage-breakingcircuits1337

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a summary of model usage and cost data for Codex or Claude from CodexBar CLI logs, saving you time analyzing individual usage entries.

Core Features & Use Cases

  • Cost Summary: Generate summaries of usage costs per model, for both current and all models.
  • JSON Output: Option to output in JSON format for easy integration with other systems.
  • Use Case: Ideal for quick analysis of usage and cost without diving into detailed logs.

Quick Start

To summarize the cost for the current model, use the following command:

python model_usage.py --provider codex --mode current

Frequently Asked Questions about model-usage

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

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

To summarize model usage costs from CodexBar CLI logs, you can run the Python script provided to analyze daily entries and aggregate costs by model for Codex or Claude, automating data extraction without manual log inspection.

What is the best way to aggregate daily API costs by model for Claude or Codex?

Aggregating daily API costs by model for Claude or Codex is best handled by parsing CodexBar CLI usage logs. This Skill processes those logs to provide both daily entries and overall cost summaries per model.

Do I need Python and CodexBar CLI installed to analyze model usage costs?

Yes, you need both Python and the CodexBar CLI installed to analyze model usage costs. The Skill operates as a Python script that reads the usage logs generated directly by the CodexBar CLI environment.

Can I output model usage cost summaries in JSON format?

Yes, you can output model usage cost summaries in JSON format for easy integration with other systems. The Skill provides an option to format the aggregated usage data as JSON instead of a standard text summary.

How do I get a cost summary for only the current model versus all models?

To get a cost summary for only the current model versus all models, you can use the mode parameter in the script command. Setting the mode to current isolates the active model's costs, while the all setting aggregates data across every model.