model-usage

Aggregate per-model costs from CodexBar JSON logs into text or JSON summaries.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Solitude01/proiect-new --skill model-usage-solitude01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/Solitude01/proiect-new/tree/main/%E5%88%9B%E6%84%8F/%E9%A3%9E%E7%89%9B/OPENCLAW/openclaw/openclaw/skills/model-usage
Command: npx skills add https://github.com/Solitude01/proiect-new --skill model-usage-solitude01

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

CodexBar local logs are difficult to parse manually; this Skill aggregates per-model costs and surfaces actionable insights for budgeting and optimization.

Core Features & Use Cases

  • Aggregate per-model costs from CodexBar cost logs for Codex and Claude.
  • Produce either a current-model summary or a full per-model breakdown for reporting.
  • Output formats include plain text and JSON to fit dashboards or pipelines.

Quick Start

Summarize per-model usage costs from CodexBar local logs.

Frequently Asked Questions about model-usage

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

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

You can aggregate per-model usage costs from CodexBar local logs by parsing local JSON files, extracting cost data from modelBreakdowns and modelsUsed, and calculating totals for budgeting and reporting.

What's the best way to summarize Codex and Claude model costs for budget reporting?

Summarizing Codex and Claude model costs is achieved by reading local JSON cost logs, aggregating per-model expenses, and outputting either human-readable text or JSON with totals and latest-day costs.

Can I get a current-model breakdown instead of a full all-model cost summary?

Yes, you can generate a current-model summary or a full all-model breakdown from the aggregated cost data, allowing you to focus on specific model usage or view comprehensive reporting.

Does this approach work with plain text and JSON output formats for dashboards?

This approach supports both plain text and JSON output formats, fitting seamlessly into automated pipelines or displaying human-readable summaries directly on monitoring dashboards.

Why do I need to parse modelBreakdowns and modelsUsed for cost analysis?

Parsing modelBreakdowns and modelsUsed is necessary because these fields within local JSON logs contain the granular per-model cost data required to calculate accurate totals and latest-day expenses.

How do I extract latest-day costs and date stamps from local JSON cost logs?

Extracting latest-day costs and date stamps involves reading local JSON cost logs, aggregating the modelBreakdowns data, and formatting the results into a structured output with the corresponding date stamps.