cost-optimizer
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. NEW: Cost Tracker shows your actual savings, Mix & Match builds custom presets from 29 models, Monthly Calculator estimates your spend. Built by Jeff J Hunter.
Why use this skill?
Reduce your OpenRouter API spending by up to 90% with OpenClaw Cost Optimizer. Add powerful model aliases, track savings, and optimize your budget effortlessly.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jeffjhunter/openclaw-cost-optimizerWhat This Skill Does
The OpenClaw Cost Optimizer is a powerful utility designed to drastically reduce your OpenRouter API expenditures by 50-90%. By intelligently layering cost-effective yet performant model aliases over your existing configuration, it ensures that high-cost models are reserved only for complex architectural tasks. The tool introduces a specialized routing system that advises you when to switch to a cheaper model for simple tasks like 'heartbeats' or 'what time is it?', while maintaining your original default model setup. It includes a comprehensive Cost Tracker for visibility into savings, a Mix & Match feature for custom presets, and a Monthly Calculator to help you forecast your API usage.
Installation
Installation is seamless and requires zero manual terminal configuration or file editing. Simply initiate the skill within OpenClaw by using the install command provided by the agent. The system handles all backend alias mapping securely via the built-in exec tool, ensuring your primary configuration remains untouched and your environment stable. Follow the prompts in the chat interface to select one of the 8 verified presets: balanced, code-machine, claude-diehards, big-context, openai-focused, tool-master, ultra-budget, or free-tier.
Use Cases
This skill is perfect for developers, power users, and AI enthusiasts who rely on OpenRouter models for daily workflows. Use it when you are scaling up your agent's capabilities but want to keep the monthly bill predictable. It is particularly effective for users who perform a mix of low-complexity tasks (which shouldn't drain your balance) and high-complexity creative or technical work. It also serves as a financial management tool for budgeting and monitoring API spend in real-time.
Example Prompts
- 'Cost Optimizer, show me how much I have saved since I installed this skill.'
- 'I want to switch to a different configuration; please help me configure the tool-master preset.'
- 'Calculate my estimated monthly expenses based on my current usage patterns and model preferences.'
Tips & Limitations
Always adhere to the provided preset names; inventing your own will result in configuration errors. Remember that this skill adds models to your registry but never removes or overwrites your current default. If you are unsure which preset to choose, start with 'balanced' to get a feel for how the agent recommends model swaps. The agent manages all commands via secure execution; you never need to leave the OpenClaw interface to configure the optimizer.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jeffjhunter-openclaw-cost-optimizer": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: code-execution, external-api
Related Skills
astrai-inference-router
Route all LLM calls through Astrai for 40%+ cost savings with intelligent routing and privacy controls
mempalace-integration
MemPalace记忆系统集成 - AAAK压缩 + Hall分类 + L0-L3分层 30x无损压缩(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens),facts/events/preferences/advice分类,加载优先级
aethercore
AetherCore v3.3.4 - Security-focused final release. High-performance JSON optimization with universal smart indexing for all file types. All security review issues fixed, ready for production.
trustlog-guard
Financial governance for OpenClaw agents. Tracks API spend, enforces budget limits, detects runaway loops, delivers cost briefings. Reads session .jsonl logs locally. 100% private.
arch-optimization
OpenClaw通信协议架构优化技能包 - 提供高性能、可靠的agent间通信框架。实现大消息59%性能提升,MessagePack 35%体积减少,统一传输层架构,智能路由算法,完整错误恢复和监控体系。