model-usage
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Why use this skill?
Efficiently monitor and summarize your AI token usage and costs with the OpenClaw model-usage skill. Get real-time data from CodexBar CLI.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ls18166407597-design/ag-model-usageWhat This Skill Does
The model-usage skill is a precision-engineered tool designed for power users who rely on the CodexBar CLI to track their AI expenditure and resource allocation. At its core, it parses complex cost JSON data generated by local CLI operations, distilling it into human-readable summaries. Whether you need a quick overview of your current model's usage or a granular breakdown across different AI providers like Codex or Claude, this skill provides the necessary visibility to manage your API budget effectively.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/ls18166407597-design/ag-model-usage
Ensure that you have the latest version of the ClawHub CLI installed to prevent compatibility issues. Once installed, the skill will automatically detect your local auth-profiles.json to authorize requests.
Use Cases
This skill is indispensable for professional developers and data scientists who require strict cost monitoring. Use it during high-intensity coding sessions to ensure you are not exceeding daily limits, or when conducting batch processing tasks that involve multiple AI models. It is particularly helpful for teams attempting to optimize their resource allocation by identifying which specific tasks or models are consuming the most tokens.
Example Prompts
- "Could you give me a summary of my current usage for the active model using CodexBar?"
- "Show me a full breakdown of token costs across all models I've used this week."
- "model-usage, check my total expenditure for Claude and compare it to my current Codex budget."
Tips & Limitations
To maximize the utility of this skill, ensure your CodexBar CLI is updated to the latest release, as changes in the JSON output format can affect parsing accuracy. Note that this skill is specifically architected for local CLI cost tracking; it does not directly query cloud billing dashboards, meaning it reflects local log data. Furthermore, ensure your environment variables are correctly set for auth-profiles.json access to avoid permission errors during the execution of diagnostic checks.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ls18166407597-design-ag-model-usage": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, external-api
Related Skills
tg-checkin
Generic Telegram Web automation for group check-ins. Supports multiple groups via configuration.
tg-history
Efficiently extract and read Telegram group chat history as text, bypassing screenshots/OCR for zero-token-waste.
screen-vision
macOS Local OCR & Automation Tool using Vision Framework. Zero token cost for screen understanding.