← 返回 Skills 市场
Openclaw Cost Tracker
作者
Paul Frederiksen
· GitHub ↗
· v1.1.3
· MIT-0
826
总下载
1
收藏
9
当前安装
4
版本数
在 OpenClaw 中安装
/install openclaw-cost-tracker
功能描述
Track OpenClaw token usage and API costs from local session data. Prefer openclaw-cost-diff for current cost analysis and window-over-window comparison acros...
安全使用建议
This skill appears to do what it claims: read local OpenClaw session JSONL files and produce cost/token reports. Before running: (1) Inspect the bundled scripts (you already have the source) and run them as a non-root user where possible; (2) adjust example absolute paths in SKILL.md to match your environment (the examples use /root/...); (3) if you plan to use cron, ensure the output destination is secure and does not leak to remote endpoints; (4) if you expect to use the preferred 'openclaw-cost-diff' tool, install it from a trusted source rather than running anything fetched from an unknown URL. If you want additional assurance, run the script in a sandbox or container on a copy of your agents directory first.
功能分析
Type: OpenClaw Skill
Name: openclaw-cost-tracker
Version: 1.1.3
The skill is a utility for tracking OpenClaw token usage and API costs by parsing local session logs. The primary script, `scripts/cost_tracker.py`, is a straightforward Python tool that aggregates data from JSONL files in the user's home directory without any network activity, obfuscation, or access to sensitive system files. While the documentation (SKILL.md and README.md) references an external binary (`openclaw-cost-diff`) and hardcoded root paths, these appear to be environment-specific configurations rather than indicators of malicious intent.
能力评估
Purpose & Capability
Name/description match the included artifacts: SKILL.md and the bundled Python fallback both read local OpenClaw session data and compute token/cost breakdowns. The preferred external tool (openclaw-cost-diff) is optional and consistent with the description.
Instruction Scope
Instructions and the script operate on local session JSONL files under an agents directory (~/.openclaw/agents or OPENCLAW_HOME/agents). Example invocations use absolute root paths (e.g., /root/.openclaw/venvs/...) which are examples only — users should adjust to their environment. The runtime instructions do not instruct reading unrelated system files, exfiltrating data, or calling external endpoints.
Install Mechanism
No install spec is provided (instruction-only skill with a bundled script). Nothing is downloaded or executed from remote URLs by the skill itself.
Credentials
The skill declares no required environment variables or credentials. The script optionally respects OPENCLAW_HOME to discover agents, which is appropriate and proportionate to its file-discovery behavior.
Persistence & Privilege
Skill is not always-enabled and does not request elevated or persistent platform privileges. It does not modify other skills or system settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-cost-tracker - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-cost-tracker触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.3
Prefer openclaw-cost-diff workflow, add updated local usage guidance, keep cost_tracker.py as fallback
v1.1.2
- Updated documentation in README.md for usage, output schema, and integration.
- No changes to code or functionality in this version.
v1.1.1
- Added README.md with detailed usage instructions and overview.
- Updated scripts/cost_tracker.py (contents not specified).
- No changes to user-facing features documented in SKILL.md.
v1.0.0
Initial release: per-model cost breakdown, daily spend trends, JSON + text output
元数据
常见问题
Openclaw Cost Tracker 是什么?
Track OpenClaw token usage and API costs from local session data. Prefer openclaw-cost-diff for current cost analysis and window-over-window comparison acros... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 826 次。
如何安装 Openclaw Cost Tracker?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-cost-tracker」即可一键安装,无需额外配置。
Openclaw Cost Tracker 是免费的吗?
是的,Openclaw Cost Tracker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Openclaw Cost Tracker 支持哪些平台?
Openclaw Cost Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openclaw Cost Tracker?
由 Paul Frederiksen(@pfrederiksen)开发并维护,当前版本 v1.1.3。
推荐 Skills