model-usage

Summarize AI model costs from CodexBar CLI logs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users understand and track the cost associated with different AI models (Codex and Claude) by analyzing local usage logs.

Core Features & Use Cases

  • Per-Model Cost Summary: Provides a breakdown of costs for individual AI models.
  • Current vs. All Models: Allows users to see the cost of the most recently used model or a comprehensive summary of all models.
  • Data Input Flexibility: Accepts data directly from the CodexBar CLI or from a JSON file.
  • Use Case: A developer wants to optimize their AI spending and needs to know which specific models are incurring the most costs within their applications.

Quick Start

Run the script to get a summary of current model usage costs 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 analyze AI model cost usage from local logs?

You can analyze AI model cost usage by running Python scripts that parse local CodexBar CLI logs, providing a deterministic breakdown of costs for Codex or Claude models. The Skill accepts input directly from the CLI or a JSON file to summarize your spending data.

Can I get a per-model cost breakdown for Claude and Codex?

Yes, you can get a per-model cost breakdown for Claude and Codex. The Skill summarizes AI model cost usage from local logs and allows you to view costs for the current model or a comprehensive breakdown of all models used.

Do I need the codexbar CLI to track AI billing and usage costs?

Yes, you need the codexbar CLI installed to track AI billing and usage costs, as the Skill requires it as a dependency to parse local logs. It uses Python scripts to execute deterministic data parsing from the CLI output or a JSON file.

What is the best way to see the cost of my most recently used AI model?

The best way to see the cost of your most recently used AI model is to run the Skill's script to request a current model summary. It analyzes local CodexBar CLI logs to isolate and display the billing data for the specific model you are currently using.

Can I use a JSON file to parse AI usage logs instead of direct CLI input?

Yes, you can use a JSON file to parse AI usage logs instead of direct CLI input. The Skill offers data input flexibility by accepting either direct CodexBar CLI output or a JSON file to generate the cost breakdown for your Codex and Claude models.