model_usage

Aggregate token usage and API costs from the usage history log.

38|14|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/ericwang915/PythonClaw --skill model-usage-ericwang915
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model_usage
Source: https://github.com/ericwang915/PythonClaw/tree/main/pythonclaw/templates/skills/system/model_usage
Command: npx skills add https://github.com/ericwang915/PythonClaw --skill model-usage-ericwang915

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Track and display LLM token usage, costs, and model statistics, enabling quick auditing of model utilization and spend.

Core Features & Use Cases

  • Monitor current session token counts and API costs
  • Compare per-model usage and identify potential inefficiencies
  • Use case: quickly answer "how many tokens did I use this session?" or "what were my costs so far?"

Quick Start

Query my current usage statistics with the model_usage tool.

Frequently Asked Questions about model_usage

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

FAQPage Schema
How do I track token usage and API costs for my current session?

To track token usage and API costs for your current session, query the usage history log. The system aggregates per-model and per-day metrics to output concise summaries suitable for quick review.

What are model statistics and how do they help monitor LLM spend?

Model statistics are per-model metrics that aggregate token counts and API costs across sessions. They help monitor LLM spend by enabling quick auditing of model utilization and identifying potential inefficiencies.

Can I compare per-model token counts to identify usage inefficiencies?

Yes, you can compare per-model token counts to identify usage inefficiencies. The system reads the usage history log and aggregates metrics per model, allowing you to quickly audit model utilization and spend.

How do I get a quick summary of total tokens used today?

To get a quick summary of total tokens used today, request your current usage statistics. The system aggregates per-day metrics from the usage history log and outputs concise summaries for quick review.

Do I need any external dependencies to monitor my session token counts?

No external dependencies are required to monitor your session token counts. The system operates independently using scripts to read the usage history log and aggregate token usage and API costs.