← Back to Skills Marketplace
rajdeep09-dev

Cost Optimizer

by rajdeep09-dev · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
244
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install open-optimise
Description
Smart cost optimization skill for OpenClaw. Reduces API costs by 70-97% through intelligent model routing, session management, output efficiency, and free mo...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install open-optimise
  3. After installation, invoke the skill by name or use /open-optimise
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug open-optimise
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 244 downloads so far.

How do I install Cost Optimizer?

Run "/install open-optimise" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cost Optimizer free?

Yes, Cost Optimizer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cost Optimizer support?

Cost Optimizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cost Optimizer?

It is built and maintained by rajdeep09-dev (@rajdeep09-dev); the current version is v0.1.0.

💬 Comments