← Back to Skills Marketplace
steipete

Model Usage

by Peter Steinberger · GitHub ↗ · v1.0.0
darwin ✓ Security Clean
38329
Downloads
114
Stars
1582
Active Installs
1
Versions
Install in OpenClaw
/install model-usage
Description
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.
Usage Guidance
Before installing, users should be comfortable installing the `codexbar` CLI via Homebrew and allowing it to read local usage logs for cost summaries. The reviewed signals do not show hidden data transfer or unrelated system access.
Capability Analysis
Type: OpenClaw Skill Name: model-usage Version: 1.0.0 The skill's purpose is to summarize local cost data from the `codexbar` CLI tool. The `SKILL.md` instructs the agent to install `codexbar` via Homebrew cask, which is a standard package manager. The `scripts/model_usage.py` script executes `codexbar cost` using `subprocess.check_output` to retrieve local usage data, then parses and formats it. The script does not perform any network calls, access sensitive files (e.g., `~/.ssh`, `~/.aws`), or attempt to exfiltrate data. The `references/codexbar-cli.md` confirms that `codexbar cost` reads local logs. There are no prompt injection attempts in the markdown files that would lead to malicious actions. All operations are aligned with the stated purpose and lack high-risk behaviors or malicious intent.
Capability Assessment
Purpose & Capability
The described purpose is to summarize local Codex/model usage cost data, and the reported script behavior is limited to invoking `codexbar cost`, parsing its output, and formatting a summary.
Instruction Scope
The runtime behavior is narrow and user-directed around cost reporting; there is no evidence of unrelated commands, prompt manipulation, hidden automation, or broad local indexing.
Install Mechanism
The skill instructs installation of `codexbar` through Homebrew cask, which is a standard package-manager flow but still installs third-party software on the user's machine.
Credentials
Reading local usage logs through the declared CLI is proportionate to the purpose of reporting model usage and costs; no network calls, sensitive file reads, or exfiltration behavior were reported.
Persistence & Privilege
No background worker, autostart persistence, privilege escalation, credential harvesting, or destructive mutation behavior is evident from the supplied artifacts and scan telemetry.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install model-usage
  3. After installation, invoke the skill by name or use /model-usage
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the model-usage skill for summarizing per-model usage and cost from CodexBar CLI local cost logs. - Supports both Codex and Claude providers. - Allows fetching summaries for the current (most recent) model or all models. - Provides both text and JSON output formats. - Can process costs directly from CodexBar CLI output or from a JSON file/stdin. - Includes guidance for CLI use and script automation.
Metadata
Slug model-usage
Version 1.0.0
License
All-time Installs 1587
Active Installs 1582
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 38329 downloads so far.

How do I install Model Usage?

Run "/install model-usage" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Model Usage free?

Yes, Model Usage is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Model Usage support?

Model Usage is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin).

Who created Model Usage?

It is built and maintained by Peter Steinberger (@steipete); the current version is v1.0.0.

💬 Comments