model-usage

Extract and summarize per-model usage costs from CodexBar cost logs.

Updated Dec 6, 2016
One-click install
npx skills add https://github.com/majunbao/learn --skill model-usage-majunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/majunbao/learn/tree/main/openclaw_tags/openclaw-2026.3.2/skills/model-usage
Command: npx skills add https://github.com/majunbao/learn --skill model-usage-majunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

CodexBar cost data is often scattered across logs; this skill provides a quick way to summarize per-model usage costs from local cost JSON, including the current-most expensive model or a full breakdown by model.

Core Features & Use Cases

  • Per-model cost summaries: generate totals for Codex and Claude models from local logs.
  • Current model spotlight or full breakdown: choose the single top-cost model or list all models by total cost.
  • Local-first workflow: reads the JSON output produced by codexbar cost on your machine and surfaces results without online access.
  • Real-world use: a developer wants to compare costs between Codex and Claude across the last 30 days to optimize model choices.

Quick Start

Run the included scripts/model_usage.py to summarize per-model costs from the local codexbar cost logs for Codex or Claude.

Frequently Asked Questions about model-usage

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

FAQPage Schema
How do I summarize per-model usage costs from CodexBar local logs?

To summarize per-model usage costs, you can run a script that extracts and aggregates totals for Codex and Claude models directly from your local CodexBar cost JSON logs, providing a quick breakdown without online access.

What is the best way to compare Codex and Claude model costs locally?

Comparing Codex and Claude model costs locally involves parsing the JSON output from the codexbar cost command to generate a full breakdown of total expenses per model, enabling data-driven, cost-aware model selection.

Does summarizing model usage costs require the CodexBar CLI to be installed?

Yes, summarizing model usage costs requires the CodexBar CLI to be installed, as the skill specifically reads and processes the JSON input data generated by the codexbar cost command on your local machine.

Can I get a cost breakdown for just the current top model instead of all models?

Yes, you can get a cost breakdown for just the current top model, as the skill offers options to either report only the single most expensive model or provide a full breakdown of all models from the daily cost entries.

Why does my local cost summarization need JSON input from codexbar cost?

Local cost summarization needs JSON input from codexbar cost because the skill is designed to parse this specific structured data format to accurately extract and aggregate daily usage expenses for each AI model.

What output formats are available when extracting per-model usage costs?

When extracting per-model usage costs, the available output formats are text or JSON, allowing you to either read a quick human-readable summary or pass the structured cost data downstream to other applications.