model-usage

Summarize per-model AI costs from CodexBar CLI logs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users understand and manage the costs associated with different AI models by summarizing their usage from local logs.

Core Features & Use Cases

  • Per-Model Cost Summary: Provides a breakdown of expenses for individual AI models (Codex, Claude).
  • Current vs. All Models: Can report on the most recently used model or a comprehensive summary of all models.
  • Use Case: A developer wants to know how much they spent on GPT-4 versus Claude 3 Opus last month. This Skill can provide that exact breakdown.

Quick Start

Run the model usage script to see the current model's cost summary for 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 cost and usage for Codex and Claude?

You can track AI model cost by running scripts that summarize local CodexBar CLI logs. This provides a per-model cost breakdown for Codex and Claude, showing expenses for your most recent usage or an aggregated view of all models.

What is the best way to break down GPT-4 versus Claude 3 Opus spending?

To break down GPT-4 versus Claude 3 Opus spending, summarize your local cost tracking logs. This provides a per-model cost summary, allowing you to see exactly how much you spent on individual AI models over a specific period.

Do I need CodexBar CLI installed to view per-model cost summaries?

Yes, you need the CodexBar CLI installed and configured for local cost tracking. The Skill parses the local logs generated by this CLI to provide the per-model cost breakdowns and usage data.

Can I view a cost summary for just my most recently used AI model?

Yes, you can view a cost summary for your most recently used AI model. The Skill can report specifically on the current model's expenses or provide a comprehensive aggregated summary across all tracked models.

How does local AI cost tracking work with log files?

Local AI cost tracking works by summarizing usage data stored in local log files. By reading the output from the configured CodexBar CLI, it aggregates expenses and generates per-model cost breakdowns without needing remote API queries.