model-usage

Summarize local AI model costs from CodexBar JSON logs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you understand and manage the costs associated with using different AI models by providing detailed usage summaries.

Core Features & Use Cases

  • Per-Model Cost Summaries: Get a breakdown of expenses for each AI model used.
  • Current Model Focus: Easily identify the cost of the most recently used model.
  • Historical Data: Analyze usage trends over time with options for daily or all-time summaries.
  • Use Case: A development team wants to optimize their AI spending. They use this Skill to see which models are consuming the most budget and identify areas for potential cost savings.

Quick Start

Run the model_usage script to get a summary of all AI model costs.

Frequently Asked Questions about model-usage

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

FAQPage Schema
How do I track AI model costs across different providers like Codex and Claude?

You can track AI model costs by summarizing local JSON logs from the CodexBar CLI. The tool provides a comprehensive breakdown of all models used across providers like Codex and Claude to help you understand spending.

Do I need the CodexBar CLI installed to analyze my LLM spending?

Yes, the CodexBar CLI must be installed and accessible to analyze LLM spending. The Skill parses local cost usage data directly from the JSON logs generated by the CodexBar application.

Can I get a daily summary of my AI model usage?

Yes, you can generate a daily summary of your AI model usage. The tool supports reporting on the most recent daily model entry, allowing you to analyze historical data and usage trends over time.

What is the best way to identify which AI models are consuming the most budget?

The best way to identify high budget consumption is by running a per-model cost summary. This breakdown exposes expenses for each AI model used, highlighting areas for potential cost savings.

How does analyzing local JSON logs help optimize AI spending?

Analyzing local JSON logs helps optimize AI spending by providing detailed per-model cost summaries. Development teams can see which models consume the most budget and identify areas for potential cost savings.