model-usage

Summarize local AI model costs from CodexBar CLI JSON logs.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/storyclaw-official/storyclaw-assistant --skill model-usage-storyclaw-official
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/storyclaw-official/storyclaw-assistant/tree/main/skills/model-usage
Command: npx skills add https://github.com/storyclaw-official/storyclaw-assistant --skill model-usage-storyclaw-official

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 local AI model (Codex/Claude) costs by summarizing usage data directly from their machine.

Core Features & Use Cases

  • Per-Model Cost Summary: Provides detailed cost breakdowns for individual AI models.
  • Current vs. All Models: Can report on the most recent model's usage or a comprehensive summary of all models used.
  • Use Case: A developer wants to know how much they spent on GPT-4 versus Claude 3 Opus yesterday. They can use this Skill to get a quick, localized report.

Quick Start

Run the 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 track AI model costs for Codex and Claude locally?

You can track AI model costs locally by parsing JSON log data through the CodexBar CLI, which generates per-model cost summaries for Codex and Claude providers without requiring external cloud billing dashboards.

What is the best way to get a per-model cost breakdown for GPT-4 versus Claude?

The best way to get a per-model cost breakdown is by requesting an all-models summary, which analyzes JSON logs to compare individual model usage and expenditure across different providers like GPT-4 and Claude.

Do I need CodexBar installed to analyze local AI cost usage?

Yes, you need the CodexBar CLI installed and accessible on your system PATH to analyze local AI cost usage, as the Skill relies on this command-line tool to read and summarize the JSON log data.

Can I view just the current AI model usage instead of all historical data?

Yes, you can view just the current AI model usage by requesting a current summary, which restricts the JSON log analysis to only the most recent model's cost data rather than generating a comprehensive all-model report.