model-usage

Summarize local AI model costs per model using the CodexBar CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you understand and track the local cost usage of AI models like Codex and Claude, providing summaries per model.

Core Features & Use Cases

  • Per-Model Cost Summary: Get a breakdown of costs associated with each AI model used.
  • Current Model Focus: Identify the most recent or highest-cost model for daily usage.
  • Full Model Breakdown: View historical cost data aggregated across all models.
  • Use Case: You need to report on the cost distribution of AI models used in your local development environment over the last month.

Quick Start

Run the model usage script to get a summary of all Codex 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 summarize AI model costs locally for Codex and Claude?

You can summarize local AI model costs for Codex and Claude by running a script that leverages the CodexBar CLI. This provides a per-model cost breakdown for your current or all models in either text or JSON format.

What is the best way to get a cost breakdown for each AI model used in my development environment?

The best way to get a cost breakdown for each AI model is to use a local summarization script that processes historical usage data per model. This approach provides aggregated cost data across all models or focuses on the highest-cost model for daily usage.

Do I need the CodexBar CLI installed to track AI model usage costs?

Yes, you need the CodexBar CLI installed and accessible in your system's PATH to track AI model usage costs. The Skill requires this CLI to query and summarize local cost data for models like Codex and Claude.

Can I get AI model cost summaries in JSON format for reporting?

Yes, you can get AI model cost summaries in JSON format for reporting. The Skill supports both text and JSON output formats, allowing you to easily integrate the per-model cost data into automated reporting pipelines.

How do I identify the highest-cost AI model for daily usage tracking?

To identify the highest-cost AI model for daily usage tracking, you can request a current model focus summary. This highlights the most recent or highest-cost model being used in your local development environment.

Why does the model usage script fail to run on my system?

The model usage script fails to run if the CodexBar CLI is not installed or is missing from your system's PATH. Ensure the CLI is properly installed and accessible globally so the script can execute the cost summary commands.