A specialized utility to summarize per-model usage and costs for Codex and Claude via the CodexBar CLI.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install model-usage-skill
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install model-usage-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The model-usage skill is a powerful diagnostic tool designed for developers who need granular insights into their AI model expenditures. By leveraging CodexBar's local cost logs, this skill enables users to extract and summarize cost data for specific providers like Codex and Claude. It is a vital component of the Openclaw Skills ecosystem, offering both high-level summaries and deep-dive breakdowns into which specific models are consuming the most budget. This allows for better financial oversight and optimization of AI-driven development workflows.
To use this among your Openclaw Skills, ensure you have CodexBar installed on macOS.
Install CodexBar via Homebrew:
brew install --cask steipete/tap/codexbar
The skill uses a Python script located in the scripts directory. Ensure your environment has Python installed to execute the following:
python scripts/model_usage.py --provider codex --mode current
The skill processes JSON data structures returned by the CodexBar CLI and organizes them for analysis.
| Field | Description |
|---|---|
| provider | Specifies the AI provider, such as codex or claude. |
| mode | Defines the scope of analysis, either current or all. |
| format | Determines output style, supporting text or json. |
| modelBreakdowns | An array containing daily cost records per model. |
| modelsUsed | A fallback array used when specific breakdowns are missing. |
Loading
An automated morning assistant that aggregates weather, calendar events, news, and AI insights into a concise iMessage delivery.

An automated workflow that analyzes WeChat chat history to generate AI-powered, mobile-optimized daily report images.

A specialized tool for analyzing real-time social media hot spots and viral trends across major Chinese social platforms.

A standardized workflow tool for the safe, validated, and backed-up modification of OpenClaw configuration files.

A robust personal knowledge architecture using Supabase and OpenRouter to turn AI agents into long-term memory systems.

A secure interface for managing Fly.io applications, databases, and deployments using the flyctl command-line tool.








































