model-usage

Summarize CodexBar AI model usage costs per model with text or JSON output.

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

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 costs associated with using different AI models by summarizing usage data from CodexBar.

Core Features & Use Cases

  • Per-Model Cost Summaries: View the total cost incurred by each AI model used.
  • Current Model Identification: Identify the most recently used model and its associated costs.
  • Data Export: Output usage data in either human-readable text or structured JSON format.
  • Use Case: Developers and project managers can use this to monitor API expenses, optimize model selection for cost-effectiveness, and report on AI resource consumption.

Quick Start

Run the model_usage script to get a summary of current model 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 track AI model costs and usage data?

AI model costs are tracked by summarizing local usage data from CodexBar, which provides per-model cost breakdowns and identifies the most recent model's expenses for both Codex and Claude providers.

Do I need CodexBar installed to get AI model usage summaries?

Yes, generating AI model usage summaries requires the CodexBar CLI to be installed and accessible in your system's PATH to retrieve the local cost data.

Can I export AI billing data to JSON format?

Yes, you can export AI billing data in either human-readable text or structured JSON format, allowing for easy integration into automated cost analysis or reporting workflows.

What is the best way to view per-model API expenses for Codex and Claude?

The best way to view per-model API expenses is by running a usage summary that breaks down costs by individual model, supporting both Codex and Claude providers with current or all-model options.

How do I identify the most recently used AI model and its cost?

You identify the most recently used AI model and its associated cost by requesting a current model summary, which extracts the latest usage entry from the local CodexBar data.