model-usage

Summarize per-model usage costs from CodexBar logs into text or JSON.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates the summarization of per-model usage costs from CodexBar local cost logs for quick visibility into model-level spending for Codex or Claude.

Core Features & Use Cases

  • Current model cost: reports the most recent daily entry's top-cost model and its total cost.
  • All-models breakdown: aggregates costs by model to compare usage across models.
  • Flexible inputs: accepts a local codexbar cost JSON or reads live CLI output; supports optional date filtering.
  • Output formats: generates human-readable text or machine-parseable JSON for automation.

Quick Start

Run the bundled Python script to summarize per-model CodexBar usage from the local cost logs or a provided cost JSON.

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 logs?▼

You can summarize per-model usage costs from CodexBar logs by running a Python script that identifies costs for Codex and Claude, generating a concise report of the latest daily entries or all models. It supports JSON or text outputs with optional date filtering.

What is the best way to get a current model cost breakdown for Codex and Claude?▼

To get a current model cost breakdown, use a script that reads the latest daily entry from CodexBar local cost logs to report the top-cost model and its total cost. It aggregates costs by model to compare usage across Codex and Claude.

Do I need Python 3 to parse CodexBar cost output locally?▼

Yes, you need Python 3 to parse CodexBar cost output locally. The script requires Python 3, the CodexBar CLI, and standard JSON parsing to read from a local JSON payload or live codexbar cost output.

Can I output CodexBar usage data as JSON for automation?▼

Yes, you can output CodexBar usage data as JSON for automation. The script generates machine-parseable JSON or human-readable text reports from the local cost logs, accepting a local codexbar cost JSON or reading live CLI output.

Does CodexBar usage summarization support date filtering for specific daily entries?▼

Yes, CodexBar usage summarization supports date filtering for specific daily entries. You can apply optional date filters when summarizing per-model usage costs from the local cost logs for Codex and Claude models.