model-usage

Summarizes CodexBar CLI JSON logs for per-model usage and cost data.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill solves the difficulty of tracking and summarizing granular AI model usage costs by parsing local logs generated by the CodexBar CLI.

Core Features & Use Cases

  • Cost Summarization: Aggregates cost data for Codex or Claude models from local JSON logs.
  • Flexible Reporting: Supports both current daily usage snapshots and comprehensive historical breakdowns.
  • Use Case: Use this tool when you need to generate a monthly report of your AI spending per model to optimize your budget or verify usage patterns.

Quick Start

Ask the assistant to summarize the total cost for all models using the latest data from the CodexBar CLI.

Frequently Asked Questions about model-usage

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

FAQPage Schema
How do I summarize AI model usage costs from local JSON logs?

To summarize AI model usage costs, you can parse local JSON logs generated by the CodexBar CLI to aggregate and report spending per model for financial tracking.

Can I generate a historical breakdown of Claude and Codex spending?

Yes, you can generate a historical breakdown of Claude and Codex spending by parsing comprehensive cost data from your local CodexBar CLI JSON logs.

Do I need the CodexBar CLI installed to track AI billing and usage?

Yes, you need the CodexBar CLI installed and configured to output cost data in JSON format before you can analyze and track your AI model billing.

What is the best way to generate a monthly report of AI spending per model?

The best way to generate a monthly report of AI spending per model is to aggregate daily usage snapshots and historical cost data from local JSON logs.

Does this usage analysis approach work with other analytics tools in the same category?

This usage analysis approach specifically parses JSON logs from the CodexBar CLI, so it requires that local environment rather than working directly with other analytics tools.

Why does my cost summarization show incomplete AI usage data?

Your cost summarization might show incomplete AI usage data if the CodexBar CLI is not properly configured to output all required cost fields in JSON format.