model-usage

Summarize local cost usage per AI model from CodexBar CLI logs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users understand and manage their AI model expenses by providing detailed cost breakdowns from local usage logs.

Core Features & Use Cases

  • Per-Model Cost Summary: Get a clear view of how much each AI model (Codex, Claude) is costing you.
  • Current vs. All Models: Choose to see the cost for the most recently used model or a comprehensive breakdown of all models.
  • Use Case: A developer needs to justify their AI tool budget. They can use this Skill to generate a report showing the exact cost attributed to each AI model used in the last month, helping them identify areas for potential cost savings.

Quick Start

Run the model_usage script to get a summary of costs for all Claude models.

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 from CodexBar CLI logs?

You can summarize AI model costs from CodexBar CLI logs by running the model_usage script, which extracts local cost data and generates a per-model breakdown for Codex and Claude providers in text or JSON format.

Can I get a cost breakdown for all Claude and Codex models or just the most recent one?

You can retrieve a cost breakdown for either the most recently used model or a comprehensive breakdown of all models, allowing you to analyze total AI spending across all Claude and Codex providers.

Do I need CodexBar CLI installed to track AI model usage and expenses?

Yes, you need the CodexBar CLI installed and configured for local cost data collection, as this Skill parses the usage logs generated by the CLI to summarize your AI model expenses.

What is the best way to justify my AI tool budget using local usage logs?

The best way to justify your AI tool budget is to generate a per-model cost summary from your local usage logs, showing exact expenses attributed to each AI model to identify potential cost savings.

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

Yes, you can export AI model cost summaries in JSON format, alongside text format, allowing you to easily integrate the per-model expense data into automated reporting or budget tracking pipelines.

Why am I unable to retrieve any AI cost data when running the usage script?

You may be unable to retrieve AI cost data if the CodexBar CLI is not properly installed or configured for local cost data collection, which is a strict requirement for the Skill to parse usage logs.