model-usage

Summarize local AI model cost usage from CodexBar CLI output.

1|1|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/Rlier/clawdbot --skill model-usage-rlier
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/Rlier/clawdbot/tree/main/skills/model-usage
Command: npx skills add https://github.com/Rlier/clawdbot --skill model-usage-rlier

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 (Codex and Claude) by summarizing usage data from the CodexBar CLI.

Core Features & Use Cases

  • Per-Model Cost Summaries: View detailed cost breakdowns for individual AI models.
  • Current Model Identification: Automatically identifies the most recently used or most expensive model for a given day.
  • Historical Data Analysis: Analyze cost trends over time or for specific periods.
  • Use Case: A developer wants to know how much they spent on Claude Opus versus Claude Sonnet yesterday to optimize their API calls and budget.

Quick Start

Run the script to get a summary of the current model's usage cost 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 local AI model costs for Codex and Claude?

To track local AI model costs for Codex and Claude, you can use this Skill to summarize usage data collected from the CodexBar CLI. It analyzes daily cost logs and provides a detailed cost breakdown per model.

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

The best way to get a per-model cost breakdown is to use this Skill to parse CodexBar CLI output. It automatically summarizes daily cost logs and identifies the most recently used or most expensive model for a given day.

Do I need CodexBar installed to analyze AI billing and usage data?

Yes, you need the CodexBar CLI installed and configured locally to analyze AI billing and usage data. This Skill depends entirely on CodexBar's local cost data collection to generate summaries for Codex and Claude providers.

Can I analyze historical AI cost trends over time from the command line?

Yes, you can analyze historical AI cost trends over time from the command line. This Skill processes historical daily cost logs from CodexBar to help you analyze cost trends for specific periods.

How do I identify which AI model incurred the highest cost yesterday?

To identify which AI model incurred the highest cost yesterday, run this Skill's summary script against your CodexBar logs. It automatically identifies the most recently used or most expensive model for any given day.

Does this Skill work without sending my AI usage data to the cloud?

Yes, this Skill works entirely locally without sending your AI usage data to the cloud. It summarizes local AI model cost usage directly from the CodexBar CLI output stored on your machine.