model-usage

Summarize local cost usage per AI model from CodexBar logs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you understand and manage the local costs associated with using AI models like Codex and Claude by providing detailed per-model usage summaries.

Core Features & Use Cases

  • Per-Model Cost Breakdown: Analyze spending for individual AI models.
  • Current Model Identification: Automatically determine the most recently used or highest-costing model.
  • Historical Usage: Summarize usage data over specified periods.
  • Use Case: If you're concerned about the cost of using different OpenAI or Anthropic models, this Skill can provide a clear breakdown of which models are consuming the most resources locally.

Quick Start

Run the model usage script to get a summary of all Codex model costs.

Frequently Asked Questions about model-usage

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

FAQPage Schema
How do I track AI model costs for Codex and Claude locally?

To track AI model costs locally, this Skill summarizes cost usage per AI model from CodexBar logs. It analyzes spending for Codex and Claude providers to show which models consume the most resources.

Do I need CodexBar installed to analyze AI billing and usage data?

Yes, analyzing AI billing and usage data requires the CodexBar CLI to be installed and accessible in your system's PATH. The Skill parses local logs generated by this specific command line tool.

Can I get a per-model cost breakdown for my OpenAI and Anthropic usage?

Yes, you can get a per-model cost breakdown for OpenAI and Anthropic usage. The Skill identifies current or highest-costing models and summarizes historical usage data over specified periods.

How do I export AI model usage summaries to JSON format?

To export AI model usage summaries to JSON format, run the analysis script with the appropriate output flag. The Skill supports both text and JSON output formats for your local cost data.

What is the best way to identify which AI model is consuming the most resources?

The best way to identify which AI model is consuming the most resources is to generate a per-model cost breakdown. The Skill automatically determines the most recently used or highest-costing model from local logs.