model-usage

Summarize per-model cost usage from CodexBar JSON logs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

CodexBar logs contain per-model usage and cost data, and this skill surfaces quick, model-level insights without leaving your local environment.

Core Features & Use Cases

  • Local cost aggregation: compute per-model costs from CodexBar's daily logs.
  • Current model focus or full breakdown: report the most recent model or a model-level cost breakdown.
  • Use case: when you need to audit or compare model-level costs across teams or projects.

Quick Start

Run the bundled script with a CodexBar cost JSON file or pipe CodexBar output to display per-model usage and costs.

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 cost usage from CodexBar logs locally?

Summarize per-model cost usage locally by running the bundled script with a CodexBar cost JSON file or piping CodexBar output directly to stdin for model-level cost breakdowns.

Can I generate a model-level cost breakdown for CI pipelines using CodexBar JSON logs?

Yes, you can generate a model-level cost breakdown for CI pipelines by feeding CodexBar JSON logs into the script, which outputs per-model usage and costs in text or JSON formats.

Do I need the CodexBar CLI installed to audit per-model usage costs?

Yes, auditing per-model usage costs requires the CodexBar CLI to be installed and accessible in your local environment to parse the JSON logs and aggregate the cost data.

What is the difference between a current model focus and a full model breakdown in cost auditing?

A current model focus reports the most recent model usage, while a full model breakdown provides a comprehensive cost comparison across all models found in the CodexBar JSON logs.

How do I compare model-level costs across teams or projects using local JSON logs?

Compare model-level costs across teams by running the script against multiple CodexBar JSON log files, aggregating per-model usage and cost data for each project's local development environment.

What output formats are available when aggregating per-model usage from CodexBar?

When aggregating per-model usage from CodexBar, the script outputs results in either text or JSON formats, allowing integration into local development, CI pipelines, or cost auditing workflows.