model-usage

Summarize per-model AI cost usage data from the CodexBar CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MettaMazza/ErnOS --skill model-usage-mettamazza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/MettaMazza/ErnOS/tree/main/skills/model-usage
Command: npx skills add https://github.com/MettaMazza/ErnOS --skill model-usage-mettamazza

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 local costs associated with using different AI models, providing clear breakdowns of usage and expenses.

Core Features & Use Cases

  • Per-Model Cost Summaries: Get detailed cost information for individual AI models.
  • Current Model Identification: Easily identify the most recently used model and its associated costs.
  • Historical Usage: Analyze usage patterns over time with options for daily or all-time summaries.
  • Use Case: A developer wants to know how much money they've spent on the 'gpt-4' model this month using CodexBar, and also wants to see a breakdown of all models used.

Quick Start

Run the model_usage script to get a summary of all models used by codex.

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 locally using the CodexBar CLI?

To track AI model costs locally, this Skill summarizes usage data obtained from the CodexBar CLI, providing per-model cost breakdowns for specified providers like Codex or Claude without sending data externally. It requires the CLI installed in your system PATH.

What is the best way to get a per-model cost breakdown for AI usage?

Getting a per-model cost breakdown for AI usage is done by running the model_usage script, which retrieves local data via CodexBar to show detailed cost information for individual AI models and the most recently used model.

Do I need the CodexBar CLI installed to analyze historical AI usage data?

Yes, analyzing historical AI usage data requires the CodexBar CLI to be installed and accessible in your system's PATH, as the Skill depends on it locally to retrieve all-time or current usage summaries.

Can I identify the most recently used AI model and its associated expenses?

You can identify the most recently used AI model and its associated expenses by using the current mode, which focuses on the latest model data retrieved from the CodexBar CLI to provide immediate cost tracking.

Does this cost tracking approach support both Codex and Claude providers?

This cost tracking approach supports specified providers like Codex or Claude, summarizing local AI model cost usage data obtained from the CodexBar CLI for a clear breakdown of expenses per provider.

Why is my local AI model usage summary not returning any data?

Your local AI model usage summary might not return data if the CodexBar CLI is not installed correctly or is missing from your system's PATH, which is strictly required for the Skill to retrieve data.