← 返回 Skills 市场
jeffjhunter

OpenClaw Cost Optimizer

作者 Jeff J Hunter · GitHub ↗ · v1.1.0
cross-platform ✓ 安全检测通过
1316
总下载
11
收藏
3
当前安装
3
版本数
在 OpenClaw 中安装
/install openclaw-cost-optimizer
功能描述
Add cheap model aliases to your OpenRouter setup for tasks from simple to complex, cutting API costs 50-90% without changing your default model.
安全使用建议
This skill appears to do what it says: add model aliases via the OpenClaw CLI and log savings in ~/.openclaw/cost-tracker.md. Before installing: 1) Verify the openclaw binary on your system is from a trusted source; the skill relies on that CLI to change your model aliases. 2) Keep your OPENROUTER_API_KEY limited in scope if possible; the skill will use it to configure models. 3) When the agent presents exec approvals, inspect the exact commands it will run before approving — the SKILL.md enforces that the agent run commands automatically. 4) Back up your existing OpenClaw/OpenRouter configuration so you can revert if needed. 5) If you want extra caution, test the process in a non-production/staging environment first. The skill's strict verbatim prompts and exec-first behavior are unusual but not inherently malicious; they just increase the need for the user to review each automated action.
功能分析
Type: OpenClaw Skill Name: openclaw-cost-optimizer Version: 1.1.0 The OpenClaw Cost Optimizer skill is classified as benign. All operations are performed using the `openclaw` CLI tool, which is the intended method for OpenClaw skills to interact with the system. The `SKILL.md` explicitly instructs the AI agent to use the `exec` tool for all commands and never to tell the user to run commands directly, which is a strong security practice. File system interactions are limited to creating and appending to `~/.openclaw/cost-tracker.md`, aligning with the stated purpose of tracking savings. There is no evidence of data exfiltration, unauthorized remote execution, persistence mechanisms, or malicious prompt injection attempts designed to subvert the agent for harmful purposes. The external links are for the author's website and related projects, not suspicious C2 or data exfiltration endpoints.
能力评估
Purpose & Capability
Name/description match the declared requirements: the skill manipulates OpenClaw/OpenRouter model aliases, so requiring the openclaw binary and OPENROUTER_API_KEY is coherent. No unrelated service credentials or unusual binaries are requested.
Instruction Scope
SKILL.md is prescriptive: it insists on exact verbatim prompts, instructs the agent to run all setup via the exec tool, and says it will create ~/.openclaw/cost-tracker.md. This is consistent with an automation skill, but the exact-text requirements and insistence on agent-run execs mean users should review every exec approval carefully.
Install Mechanism
Instruction-only skill with no install spec or downloads. Nothing is written to disk by an installer; the only persistent artifact is the tracking file the skill creates under ~/.openclaw, which is declared in metadata.
Credentials
Only OPENROUTER_API_KEY is required (declared). That credential is necessary to configure models through OpenRouter/OpenClaw; no additional unrelated secrets or config paths are requested.
Persistence & Privilege
The skill will create ~/.openclaw/cost-tracker.md to log activity and relies on exec to run commands. always:false and normal autonomous invocation are used. This level of persistence and autonomous command-execution is reasonable for a setup/automation skill but increases the importance of reviewing each exec approval.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-cost-optimizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-cost-optimizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Cut your OpenRouter API costs 50-90%. Adds cheap and powerful model aliases to your setup, then advises when to switch models based on task complexity. 8 presets, 29 models, zero config risk — only adds aliases, never changes your default. 3 clicks to set up. Built by Jeff J Hunter. Changelog v1.1.0 — Cost Tracker, Mix & Match, Monthly Calculator 💸 Cost Tracker: agent logs model switches, "how much have I saved?" shows running total with monthly projection 🔀 Mix & Match: build custom presets by picking one model per tier from the full 29-model registry 📊 Monthly Cost Calculator: "estimate my monthly costs" compares default vs. optimized spending Author branding and links added Security fix from v1.0.1 included v1.0.1 — Security Fix Removed insecure fallback that accepted API keys via chat Agent now always uses OpenClaw's native auth wizard (openclaw models auth add) Added OPENROUTER_API_KEY to required env in metadata v1.0.0 — Initial Release 8 presets: balanced, code-machine, claude-diehards, big-context, openai-focused, tool-master, ultra-budget, free-tier 29 verified OpenRouter models with aliases, pricing, and strengths Smart Cost Advisor suggests model switches based on task complexity Additive only — never changes default model, fallbacks, or existing config Uses OpenClaw's native openclaw models aliases add — no custom scripts Setup: 3 Approve clicks, zero terminal usage Advisor on/off toggle Easy undo: just remove aliases
v1.0.1
- Major cleanup: removed 17 documentation, example, reference, and script files. - Simplified skill structure for easier maintenance. - Updated requirements: now explicitly declares need for the env variable OPENROUTER_API_KEY. - Revised security guidance in setup — users are no longer asked to paste API keys into chat, always using the interactive auth wizard instead.
v1.0.0
Cut your OpenRouter API costs 50-90%. Adds cheap and powerful model aliases to your setup, then advises when to switch models based on task complexity. 8 presets, 29 models, zero config risk — only adds aliases, never changes your default. 3 clicks to set up.
元数据
Slug openclaw-cost-optimizer
版本 1.1.0
许可证
累计安装 3
当前安装数 3
历史版本数 3
常见问题

OpenClaw Cost Optimizer 是什么?

Add cheap model aliases to your OpenRouter setup for tasks from simple to complex, cutting API costs 50-90% without changing your default model. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1316 次。

如何安装 OpenClaw Cost Optimizer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-cost-optimizer」即可一键安装,无需额外配置。

OpenClaw Cost Optimizer 是免费的吗?

是的,OpenClaw Cost Optimizer 完全免费(开源免费),可自由下载、安装和使用。

OpenClaw Cost Optimizer 支持哪些平台?

OpenClaw Cost Optimizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 OpenClaw Cost Optimizer?

由 Jeff J Hunter(@jeffjhunter)开发并维护,当前版本 v1.1.0。

💬 留言讨论