← 返回 Skills 市场
337
总下载
1
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install skill-cost
功能描述
Track per-skill token usage and costs from OpenClaw session logs. Use when user asks about skill-level spending, which skill costs the most, or wants a per-s...
安全使用建议
This skill appears coherent and implements what it claims: it scans your local OpenClaw session logs and local SKILL.md files to attribute token usage to skills. Before installing, consider: (1) the tool will read and process assistant messages and tool-call contents from your session logs — which can include sensitive data — so only run it if you are comfortable having those logs parsed locally; (2) because the skill executes Python code from the installed files, review the packaged scripts (especially any remaining parts of cost_utils.py that parse message content) yourself or run in an isolated environment if you have concerns; (3) no network calls or credentials are requested by the code as provided, but if you fork or update the skill later, re-check for added network/credential usage.
功能分析
Type: OpenClaw Skill
Name: skill-cost
Version: 0.1.0
The skill-cost bundle is a utility designed to analyze local OpenClaw session logs (~/.openclaw/agents/) to provide a breakdown of token usage and costs per skill. The Python scripts (cost_report.py, cost_query.py, cost_utils.py) and the Bash wrapper (skill-cost.sh) perform local file parsing and data aggregation without any evidence of data exfiltration, network activity, or malicious execution. The instructions in SKILL.md are strictly functional, guiding the agent to use the bash tool for reporting tasks as intended.
能力评估
Purpose & Capability
Name/description claim to compute per-skill token costs from OpenClaw session logs; the packaged scripts (bash wrapper + Python modules) implement exactly that behavior (discover agents, parse session JSONL, attribute tool calls to skills, compute costs). Required binaries (python3, bash) are appropriate and there are no unrelated credentials or surprising dependencies.
Instruction Scope
Runtime instructions explicitly require using the bash wrapper which runs the included Python scripts. The scripts read local session JSONL files (~/.openclaw/agents/*/sessions/) and scan installed skills' SKILL.md frontmatter to map tool names to skill names. This is consistent with the stated purpose, but note: it processes local assistant messages and tool-call contents (potentially sensitive conversation data) — the skill reads and analyzes that data locally.
Install Mechanism
No install spec is provided (instruction-only install), and code is packaged with the skill so nothing is downloaded from the network at install time. The wrapper and Python scripts are included in the skill bundle; installing the skill will place those files on disk, which is expected for this utility.
Credentials
The skill requests no environment variables, no credentials, and no config paths beyond reading standard OpenClaw directories. The scope of access (local session files and SKILL.md files under the user's home path) is proportional to the goal of attributing cost to skills.
Persistence & Privilege
The skill is not marked always:true and does not request elevated agent-wide privileges or modify other skills' configurations. It runs on-demand via the bash wrapper; autonomous invocation is the platform default and is not combined here with other alarming flags.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install skill-cost - 安装完成后,直接呼叫该 Skill 的名称或使用
/skill-cost触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of skill-cost: track per-skill token usage and costs.
- Provides bash-based tools for detailed skill spending and usage breakdowns.
- Supports per-skill reports, top cost rankings, date filtering, and skill comparisons.
- Analyzes OpenClaw session logs and attributes token usage to individual skills.
- No API keys or external dependencies required; works directly from local files.
- Only the bash tool is supported—other execution methods are not compatible.
元数据
常见问题
Skill Cost 是什么?
Track per-skill token usage and costs from OpenClaw session logs. Use when user asks about skill-level spending, which skill costs the most, or wants a per-s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 337 次。
如何安装 Skill Cost?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install skill-cost」即可一键安装,无需额外配置。
Skill Cost 是免费的吗?
是的,Skill Cost 完全免费(开源免费),可自由下载、安装和使用。
Skill Cost 支持哪些平台?
Skill Cost 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 Skill Cost?
由 dzwalker(@dzwalker)开发并维护,当前版本 v0.1.0。
推荐 Skills