← 返回 Skills 市场
Korta Model Usage
作者
landercortazarromero
· GitHub ↗
· v1.0.0
· MIT-0
86
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install korta-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. Trig...
使用说明 (SKILL.md)
Model usage
Overview
Get per-model usage cost from CodexBar's local cost logs. Supports "current model" (most recent daily entry) or "all models" summaries for Codex or Claude.
TODO: add Linux CLI support guidance once CodexBar CLI install path is documented for Linux.
Quick start
- Fetch cost JSON via CodexBar CLI or pass a JSON file.
- Use the bundled script to summarize by model.
python {baseDir}/scripts/model_usage.py --provider codex --mode current
python {baseDir}/scripts/model_usage.py --provider codex --mode all
python {baseDir}/scripts/model_usage.py --provider claude --mode all --format json --pretty
Current model logic
- Uses the most recent daily row with
modelBreakdowns. - Picks the model with the highest cost in that row.
- Falls back to the last entry in
modelsUsedwhen breakdowns are missing. - Override with
--model \x3Cname>when you need a specific model.
Inputs
- Default: runs
codexbar cost --format json --provider \x3Ccodex|claude>. - File or stdin:
codexbar cost --provider codex --format json > /tmp/cost.json
python {baseDir}/scripts/model_usage.py --input /tmp/cost.json --mode all
cat /tmp/cost.json | python {baseDir}/scripts/model_usage.py --input - --mode current
Output
- Text (default) or JSON (
--format json --pretty). - Values are cost-only per model; tokens are not split by model in CodexBar output.
References
- Read
references/codexbar-cli.mdfor CLI flags and cost JSON fields.
安全使用建议
This skill appears coherent and limited to parsing CodexBar cost JSON. Before installing: 1) Confirm the codexbar Homebrew tap (steipete/tap) is from a trusted maintainer — third-party taps can install arbitrary binaries. 2) Review or run the codexbar CLI separately to ensure it behaves as expected (it will run locally and may read local logs). 3) If you prefer not to install a third-party CLI, you can produce the cost JSON via other means and run the included Python script against the JSON file or stdin. 4) The bundled script does not exfiltrate data, but any CLI you install could; audit the codexbar project if you will install it system-wide.
功能分析
Type: OpenClaw Skill
Name: korta-model-usage
Version: 1.0.0
The skill bundle is a utility for summarizing AI model usage costs by interfacing with the CodexBar CLI. The Python script (scripts/model_usage.py) safely processes JSON data from the local filesystem or via subprocess calls to the 'codexbar' binary without shell injection risks, and the documentation (SKILL.md) contains no malicious instructions or prompt injection attempts.
能力评估
Purpose & Capability
Name/description ask for per-model usage from CodexBar and the skill requires the codexbar binary, provides a script that parses codexbar cost JSON, and documents codexbar CLI flags — all are proportionate and expected.
Instruction Scope
SKILL.md and the bundled script only run the codexbar CLI (or accept a JSON file/stdin) and parse local cost JSON; they do not reference unrelated files, environment variables, or external endpoints in the skill files.
Install Mechanism
Install spec uses a Homebrew cask from the tap 'steipete/tap' (steipete/tap/codexbar). Homebrew casks are reasonable for CLI install, but this is a third-party tap — verify the tap/maintainer before installing.
Credentials
No environment variables, credentials, or config paths are requested. The script only calls codexbar and reads JSON input from codexbar, a file, or stdin — proportions are appropriate for the stated task.
Persistence & Privilege
Skill does not request permanent/always-on presence and does not modify other skills or global agent settings. It only invokes a CLI and runs a local Python script.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install korta-model-usage - 安装完成后,直接呼叫该 Skill 的名称或使用
/korta-model-usage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the model-usage skill for CodexBar.
- Provides summary of per-model usage costs for Codex or Claude from local CodexBar cost logs.
- Supports "current model" (most recent daily entry) or "all models" breakdowns.
- Accepts input via CodexBar CLI output (default), a file, or stdin.
- Output available in text or pretty JSON formats.
- Includes quick start instructions and model selection logic.
元数据
常见问题
Korta 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. Trig... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 86 次。
如何安装 Korta Model Usage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install korta-model-usage」即可一键安装,无需额外配置。
Korta Model Usage 是免费的吗?
是的,Korta Model Usage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Korta Model Usage 支持哪些平台?
Korta Model Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin)。
谁开发了 Korta Model Usage?
由 landercortazarromero(@landercortazarromero)开发并维护,当前版本 v1.0.0。
推荐 Skills