← 返回 Skills 市场
Model Usage
作者
Peter Steinberger
· GitHub ↗
· v1.0.0
38329
总下载
114
收藏
1582
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install model-usage - 安装完成后,直接呼叫该 Skill 的名称或使用
/model-usage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38329 次。
如何安装 Model Usage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install model-usage」即可一键安装,无需额外配置。
Model Usage 是免费的吗?
是的,Model Usage 完全免费(开源免费),可自由下载、安装和使用。
Model Usage 支持哪些平台?
Model Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin)。
谁开发了 Model Usage?
由 Peter Steinberger(@steipete)开发并维护,当前版本 v1.0.0。
推荐 Skills