OpenClaw Model Manager
by @notestone
Fetch and display OpenRouter AI models with pricing and context limits, and configure OpenClaw to use selected models via automatic or fallback settings.
clawhub install model-manager📖 About This Skill
OpenClaw Model Manager v1.5 🛠️
💰 Optimize Your API Costs: Route Simple Tasks to Cheaper Models.
Why pay $15/1M tokens for simple translations or summaries when you can pay $0.60/1M? That's a 25x price difference (96% savings) for suitable tasks.
🆕 NEW in v1.5:
🚀 Quick Start
# List models with real-time pricing
python3 skills/model-manager/manage_models.py listGet routing recommendations
python3 skills/model-manager/manage_models.py plan "write a Python script"Configure OpenClaw for cost optimization
python3 skills/model-manager/manage_models.py enable cheap
🇨🇳 中文说明
💰 拒绝冤枉钱!自动路由高性价比模型,最高节省 96% Token 费用。
🆕 v1.5 新功能:
这个 Skill 能帮你: 1. 即时比价:列出当前 OpenRouter 上的模型价格 2. 智能配置:自动将简单任务路由给高性价比的小模型(如 GPT-4o-mini) 3. 🆕 数据驱动推荐:结合 AI benchmark 数据提供最优模型建议 4. 🧠 自我进化 (Self-Healing):如果便宜模型经常失败,系统会自动切换到更稳定的模型
⚙️ Core Functions
1️⃣ list - Real-Time Model Pricing
python3 manage_models.py list
Fetches current OpenRouter pricing and displays cost-effective options.2️⃣ plan - Smart Task Routing
python3 manage_models.py plan "translate this to French"
python3 manage_models.py plan "debug this Python error: TypeError..."
python3 manage_models.py plan "design a database schema"
NEW in v1.5: Enhanced task classification with better accuracy for:
3️⃣ enable - Auto-Configuration
python3 manage_models.py enable cheap # Maximum cost savings
python3 manage_models.py enable balanced # Quality/cost balance
python3 manage_models.py enable quality # Best performance
4️⃣ benchmark - Performance Analysis (NEW v1.5)
python3 manage_models.py benchmark --task coding
Integrates with model-benchmarks skill for data-driven recommendations.💡 Integration with Model Benchmarks
Perfect Combo: Use Model Manager + Model Benchmarks together for maximum optimization:
# 1. Install both skills
openclaw skills install model-manager
openclaw skills install model-benchmarks2. Get real-time AI intelligence
python3 skills/model-benchmarks/scripts/run.py fetch3. Apply intelligent routing
python3 skills/model-manager/manage_models.py plan "your task" --use-benchmarks
Result: Up to 95% cost reduction with maintained or improved quality!
🎯 Task Classification Engine
Enhanced in v1.5 with better pattern recognition:
| Task Type | Optimal Models | Cost Savings | Use Cases | |-----------|---------------|--------------|-----------| | Simple | GPT-4o-mini, Gemini Flash | 85-96% | Translation, summarization, Q&A | | Coding | GPT-4o, Claude 3.5 Sonnet | 45-75% | Programming, debugging, code review | | Creative | Claude 3.5 Sonnet, GPT-4o | 25-55% | Writing, brainstorming, content creation | | Complex | Claude 3.5 Sonnet, GPT-4 | 15-35% | Architecture, research, complex analysis |
📊 Real-World Results
User Reports (v1.5):
🔄 Changelog v1.5
✅ New Features
🐛 Bug Fixes
⚡ Performance Improvements
🛠️ Advanced Usage
Custom Routing Rules
# Create custom routing in ~/.openclaw/model-routing.json
{
"patterns": {
"translation": ["gemini-2.0-flash", "gpt-4o-mini"],
"coding": ["claude-3.5-sonnet", "gpt-4o"],
"analysis": ["gpt-4o", "claude-3.5-sonnet"]
},
"fallbacks": ["gpt-4o-mini"],
"budget_limit": 50.00
}
Cost Monitoring
# Set up cost alerts
python3 manage_models.py monitor --budget 100 --alert-at 80%
Performance Analytics
# Generate routing report
python3 manage_models.py report --days 30 --export csv
🚀 Roadmap
v1.6 (Coming Soon)
v2.0 (Future)
🤝 Community
Pro Tip: Combine this skill with automated routing via openrouter/auto for hands-off cost optimization!
*Make every token count — route smart, save big! 🛠️*