model-usage

Summarize per-model usage costs from CodexBar JSON logs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

CodexBar cost data is often scattered across daily logs; this skill aggregates per-model costs to reveal where resources are being spent and how model usage trends evolve.

Core Features & Use Cases

  • Summarizes current-model cost (latest daily entry) or all-model costs from CodexBar's local logs.
  • Outputs either a human-readable summary or a JSON structure suitable for dashboards and automation.
  • Use case: quickly compare the cost of Codex vs Claude models across the last 30 days to inform hosting and cost-optimization decisions.

Quick Start

Ask CodexBar to summarize per-model usage costs from local logs and return a concise report.

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 costs from CodexBar local logs?

To summarize per-model costs, this Skill aggregates JSON-formatted CodexBar cost logs to reveal model-level spending. It processes local development log files and outputs either human-readable text or JSON with per-model totals for quick analysis.

Can I compare current vs historical model usage costs from JSON logs?

Yes, you can compare current vs historical model usage costs by summarizing the latest daily entry or computing a full-model breakdown. The Skill reads CodexBar JSON logs to show spending trends across different models over time.

What is the best way to analyze per-model spending for cost optimization?

The best way to analyze per-model spending is by aggregating scattered daily cost logs into a concise report. This Skill compares costs across models like Codex and Claude to inform hosting and cost-optimization decisions.

Does the CodexBar cost summary support file input and JSON output?

Yes, the CodexBar cost summary supports input from files or standard input and outputs either human-readable text or JSON. This JSON structure is suitable for feeding into dashboards and automation pipelines.

Do I need specific dependencies to run a model usage cost breakdown?

No specific dependencies are required to run a model usage cost breakdown. The Skill operates on local JSON-formatted CodexBar logs using scripts and references, requiring only your local development environment's cost data.