model-usage

Summarize per-model AI costs from local CodexBar logs.

19.0k|5.6k|Updated Jul 9, 2024
One-click install
npx skills add https://github.com/elizaOS/eliza --skill model-usage-elizaos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/elizaOS/eliza/tree/main/packages/skills/skills/model-usage
Command: npx skills add https://github.com/elizaOS/eliza --skill model-usage-elizaos

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users understand and manage the costs associated with different AI models by analyzing local usage logs.

Core Features & Use Cases

  • Per-Model Cost Summary: Provides a breakdown of costs for specific AI models (Codex, Claude).
  • Current Model Identification: Identifies the most recently used or most expensive model in the latest log entry.
  • Historical Usage: Can summarize usage across all recorded data or filter by recent days.
  • Use Case: A developer wants to know how much Claude 3 Opus cost them yesterday, or wants a full breakdown of all models used in the last week to optimize their AI spending.

Quick Start

Run the script to get a summary of all Codex model costs from your local logs.

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 Claude and Codex from local logs?

This Skill summarizes local cost usage data for AI models like Codex and Claude by analyzing CodexBar logs. It provides per-model expense breakdowns, identifies the most recently used or costly model, and delivers historical usage summaries to help you understand and manage your AI spending.

How do I get a per-model cost breakdown for my recent AI usage?

Run the provided script against your CodexBar logs to generate a per-model cost breakdown. This summarizes usage across all recorded data or filters by recent days, allowing you to see expenses for specific models and optimize your AI spending.

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

Yes, the Skill requires the CodexBar CLI to be installed and configured for local cost tracking. It relies entirely on parsing the local usage logs generated by CodexBar to calculate and summarize your AI model expenses.

Can I identify my most expensive or most recently used AI model from usage logs?

Yes, the log analysis identifies the most recently used or most expensive model from the latest log entry. This allows you to quickly see which AI model is currently driving your highest costs for accurate billing tracking.

What is the best way to summarize historical AI model usage data?

The best way to summarize historical AI model usage is to parse local CodexBar logs. This approach analyzes all recorded data or filters by recent days to provide a comprehensive breakdown of per-model expenses and optimize spending.