model-usage

Summarize per-model CodexBar usage costs from local cost logs.

202|36|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/adoresever/AGI_Ananas --skill model-usage-adoresever
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-usage
Source: https://github.com/adoresever/AGI_Ananas/tree/main/26.2.21openclaw-viking/skills/model-usage
Command: npx skills add https://github.com/adoresever/AGI_Ananas --skill model-usage-adoresever

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

CodexBar local cost logs are hard to read and compare; this Skill provides a concise per-model usage summary to help you monitor costs and identify expensive models.

Core Features & Use Cases

  • Summarizes per-model usage costs from CodexBar's local logs for Codex and Claude.
  • Supports a "current" model view (latest daily entry) or an "all" models view, with optional date filtering.
  • Outputs results in plain text or JSON for easy automation and reporting.

Quick Start

Run the model-usage script to generate a per-model cost summary from CodexBar logs.

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 CodexBar usage by running a script that reads local cost JSON payloads and aggregates expenses by model. It identifies the current model and outputs a concise cost breakdown for monitoring spending.

Can I filter CodexBar cost logs by a specific date range?

Yes, you can filter CodexBar cost logs by applying optional day-range selection when running the script. This narrows the per-model cost aggregation to specific daily entries instead of summarizing all historical data.

What is the difference between current model view and all models view for usage logs?

The current model view shows the latest daily entry for the active model, while the all models view aggregates costs across every model in the logs. Both help identify which models are accumulating the highest usage expenses.

Does the usage summary support output in JSON format for automation?

Yes, the usage summary supports output in both plain text and JSON formats. This allows you to easily integrate the aggregated per-model cost data into automated reporting pipelines or other downstream analytics workflows.

Can I read CodexBar cost data from stdin instead of a file?

Yes, the script supports input from both file and stdin. This allows you to pipe CodexBar cost JSON payloads directly into the aggregator for per-model usage summarization without needing to save intermediate files.

Why are my CodexBar local cost logs hard to compare between models?

Raw CodexBar local cost logs are difficult to compare because they are not aggregated by model. Summarizing these JSON payloads into a per-model usage breakdown makes it easier to identify expensive models and monitor costs.