model-usage

Summarize CodexBar local cost logs into per-model cost breakdowns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill helps data teams and developers quickly understand how much CodexBar usage is incurred by each model by analyzing local cost logs.

Core Features & Use Cases

  • Per-model cost breakdowns from CodexBar's local cost logs (current model or all models).
  • Supports both current model view and full model breakdowns for Codex and Claude.
  • Use Case: Budget planning, cost optimization, and auditing of model usage across Codex and Claude.

Quick Start

Run the model_usage.py script with --provider codex --mode current to view the current model's cost breakdown.

Frequently Asked Questions about model-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get a per-model cost breakdown from local CodexBar logs?

You can get a per-model cost breakdown from local CodexBar logs by running the model_usage script with parameters like --provider codex --mode current to summarize usage data into readable text or JSON output.

What is the best way to analyze historical model usage costs for Codex and Claude?

Analyzing historical model usage costs for Codex and Claude is best handled by processing local cost logs with a script that supports full model breakdowns, returning a payload that includes model names and historical costs.

Can I view the cost breakdown for just my current model instead of all models?

Yes, you can view the cost breakdown for just your current model by using the current mode, which specifically targets the active model's data instead of generating a full breakdown for all models.

Does the local cost summarizer work if some usage data is missing?

The local cost summarizer works with missing data by gracefully handling gaps in the logs, validating inputs during processing to ensure the script returns available usage data without failing.

How do I export model usage summaries as a JSON payload for budget planning?

To export model usage summaries as a JSON payload for budget planning, run the local log summarizer to return a structured JSON object containing the model names and associated costs.