← 返回 Skills 市场
Cost Optimizer
作者
rajdeep09-dev
· GitHub ↗
· v0.1.0
· MIT-0
244
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install open-optimise
功能描述
Smart cost optimization skill for OpenClaw. Reduces API costs by 70-97% through intelligent model routing, session management, output efficiency, and free mo...
安全使用建议
This package appears to do what it says: it reads your OpenClaw config, workspace files, and logs to estimate costs and can produce config patches (after auto-backup) to apply presets. Before installing, review these points: 1) Inspect parse-config.js and scripts that use new Function()/eval-like parsing — they execute local config text as JS to support JSON5/JS-style configs; only install if you trust the config files on the host. 2) The tools will read logs (/var/log/..., ~/.openclaw/...) and may make real provider API calls using whatever provider credentials are already configured — provide OpenRouter/API keys only if you want free-model usage enabled. 3) apply-preset.sh auto-creates patches and runs backup-config.sh (it does not forcibly overwrite your config without a follow-up apply step, but double-check generated patch files in /tmp before applying). 4) If you will expose a webhook URL for reports, review webhook-report.sh to ensure it only posts intended data. Recommendation: run scripts in dry-run modes first (apply-preset.sh --dry-run, or run cost-audit.sh) and review /tmp patch contents and backups before applying changes; consider testing in a non-production or sandboxed OpenClaw instance if available.
功能分析
Type: OpenClaw Skill
Name: open-optimise
Version: 0.1.0
The skill is a highly complex utility for API cost optimization that requires extensive system-level access, including the ability to modify the core 'openclaw.json' configuration, read system logs, and restart the gateway service. While its features are aligned with its stated purpose, it contains several security vulnerabilities: the use of 'new Function()' in 'parse-config.js' and 'cost-dashboard.js' to parse configuration files creates a risk of code execution if the config is compromised, and 'setup-openrouter.sh' accepts sensitive API keys as command-line arguments, potentially exposing them in process listings. The combination of high-privilege operations and unsafe coding patterns warrants a suspicious classification.
能力评估
Purpose & Capability
Name/description match the included files: many scripts for auditing, monitoring, presets, and config patches are appropriate for a cost-optimizer. The scripts operate on OpenClaw config, logs, and workspace files which are required to estimate and change costs.
Instruction Scope
SKILL.md and the scripts instruct the agent to read and modify ~/.openclaw/openclaw.json, create backups under ~/.openclaw/config-backups, inspect logs (e.g., /var/log/openclaw.log, workspace files), and run model/provider health checks (real API calls) using whatever provider credentials are already configured. These actions are consistent with auditing/optimization but do involve reading local config and logs and making config patches; the skill claims to ask permission at each setup step, which is good.
Install Mechanism
Registry lists no automated install. The package is instruction-only but includes script files (no remote download/install steps in the package). README/GUIDE mention cloning/downloading from GitHub or curl, but there is no automatic download-from-arbitrary-URL step embedded in the scripts. No extract-from-unknown-URL installs were found in the provided contents.
Credentials
The skill declares no required environment variables or credentials by default. It documents optional OpenRouter API key and webhook URL for optional free-model routing and reports; these are reasonable and proportionate to the stated features. It does not demand unrelated secrets.
Persistence & Privilege
always:false. The skill writes backups and preference files under the user's OpenClaw home (~/.openclaw/) and suggests generating /tmp patch files; this is expected for a config-modifying tool. It does not appear to modify other skills or request permanent elevated privileges beyond normal file access under the user's home.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install open-optimise - 安装完成后,直接呼叫该 Skill 的名称或使用
/open-optimise触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of cost-optimizer skill v7 for OpenClaw.
- Automates API cost reduction (70–97%) through model routing, session management, and output efficiency.
- Includes 29 scripts for auditing, monitoring, backup/restore, health checks, and reporting.
- Interactive setup wizard on first use to customize budget, defaults, free model usage, heartbeat routing, session handling, and response style.
- Provides detailed cost breakdowns, model tier recommendations, and automatic selection of cheapest adequate models per task.
- User-friendly documentation and ready-to-use configuration presets included.
元数据
常见问题
Cost Optimizer 是什么?
Smart cost optimization skill for OpenClaw. Reduces API costs by 70-97% through intelligent model routing, session management, output efficiency, and free mo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 244 次。
如何安装 Cost Optimizer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install open-optimise」即可一键安装,无需额外配置。
Cost Optimizer 是免费的吗?
是的,Cost Optimizer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Cost Optimizer 支持哪些平台?
Cost Optimizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cost Optimizer?
由 rajdeep09-dev(@rajdeep09-dev)开发并维护,当前版本 v0.1.0。
推荐 Skills