model-usage

Summarize per-model AI usage costs from the CodexBar CLI in text or JSON output formats.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you monitor and understand the local cost usage of AI models like Codex and Claude, providing insights into your spending on a per-model basis.

Core Features & Use Cases

  • Per-Model Cost Summaries: Get detailed breakdowns of costs for individual AI models.
  • Current Model Identification: Automatically identifies the most recently used or most expensive model for daily usage.
  • Historical Data Analysis: Analyze cost trends over time with options to view all models or just the most recent entries.
  • Use Case: A developer needs to optimize their AI API spending. They use this Skill to see which specific models (e.g., gpt-4-turbo, claude-3-opus) are consuming the most budget locally and identify opportunities for cost savings.

Quick Start

Run the model_usage.py 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 locally for Codex and Claude?

You can track AI model costs locally by running the model_usage.py script, which summarizes local cost usage for models like Codex and Claude using the CodexBar CLI.

Can I get a per-model cost breakdown for my AI API spending?

Yes, you can get a per-model cost breakdown for your AI API spending. The Skill provides detailed cost summaries for individual models like gpt-4-turbo and claude-3-opus.

Do I need the CodexBar CLI installed to monitor local AI billing?

Yes, you need the CodexBar CLI installed and configured for local cost logging to monitor local AI billing and generate accurate usage summaries.

What's the best way to analyze historical AI model cost trends?

The best way to analyze historical AI model cost trends is to run the script with options to view all models, allowing you to identify which specific models are consuming the most budget over time.

Does the local cost usage summary support JSON output formats?

Yes, the local cost usage summary supports JSON output formats. You can request cost breakdowns in either text or JSON format depending on your integration needs.

How do I identify the most expensive AI model for daily usage?

You can identify the most expensive AI model for daily usage by running the script, which automatically identifies the most recently used or most expensive model for your current session.