openclaw-cost-optimizer
v1.0.0
Published
OpenClaw skill that audits your config and rewrites it to minimize Anthropic API costs
Maintainers
Readme
openclaw-cost-optimizer
An OpenClaw skill that reads your live config, audits it for token cost inefficiencies, and rewrites it — with your confirmation — to cut Anthropic API spend by 60–85%.
Timing: Anthropic ended flat-rate subscription coverage for OpenClaw on April 4 2026. This skill is the fastest way to fix your config before your next bill.
Install
# From ClawHub (recommended)
openclaw skills install cost-optimizer
# Or via npm
openclaw plugins install openclaw-cost-optimizerUsage
Just ask your agent:
optimize my openclaw config for costwhy is my anthropic bill so highcheck if my config has caching enabledThe agent will find your config, audit it across five cost levers, show you what it plans to change and the estimated monthly savings, then write the optimized config back with your confirmation.
What it checks
| Lever | Typical savings | Severity |
|---|---|---|
| Prompt caching (cacheRetention) | 60–90% input cost | HIGH |
| Model routing (Opus vs Sonnet vs Haiku) | 40–80% | HIGH |
| Thinking level scope | 10–30% | MEDIUM |
| 1M context window (context1m) | 5–20% | MEDIUM |
| Fast mode on Sonnet | 5–10% | LOW |
Pricing reference (April 2026)
| Model | Input /MTok | Output /MTok | Cached /MTok | |---|---|---|---| | claude-opus-4-6 | $15.00 | $75.00 | $1.50 | | claude-sonnet-4-6 | $3.00 | $15.00 | $0.30 | | claude-haiku-4-5 | $0.25 | $1.25 | $0.025 |
License
MIT
