model-usage

Summarize per-model AI cost usage data from CodexBar logs.

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

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 spending by summarizing usage costs from CodexBar's logs.

Core Features & Use Cases

  • Per-Model Cost Summary: Provides detailed cost breakdowns for individual AI models (Codex, Claude).
  • 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 cost report.

Quick Start

Run the following command to see the cost summary for the current most expensive model used by Codex: python {baseDir}/scripts/model_usage.py --provider codex --mode current

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 usage costs for Codex and Claude providers?

Yes, you can compare per-model AI expenses by summarizing local cost usage data from CodexBar. The Skill analyzes individual model costs, allowing you to see exactly how much you spent on different models during recent or historical periods.

How do I get a cost summary for the most recent model used in Codex?

To get a cost summary for the most recent model used, run the provided model_usage.py script with the --provider codex and --mode current arguments. This reports on the latest daily usage locally.

Do I need CodexBar installed to track AI model spending locally?

Yes, you need the CodexBar CLI installed to track AI model spending locally. The Skill requires CodexBar to be installed and accessible in your system's PATH to extract and summarize the local cost usage data.

Can I view a complete historical breakdown of all AI model costs?

Yes, you can view a complete historical breakdown of all AI model costs. By configuring the script mode, the Skill provides a comprehensive summary of all models used historically, rather than just the current daily usage.