Smart model router for OpenClaw. Automatically selects the optimal AI model based on query characteristics, balancing cost and performance.
Router NIMIMORE analyzes your queries and automatically routes them to the most appropriate AI model:
router.select - Select optimal model for queryrouter.analyze - Analyze query characteristicsrouter.demo - Run routing demonstration# Route a query
python scripts/router.py --query "帮我写个Python函数"
# Run demo
python scripts/router.py --demo
# With context length
python scripts/router.py --query "总结文档" --context-length 5000
No configuration required. Works out of the box.
| Model | Tier | Cost/1k | Use Case |
|---|---|---|---|
| ------- | ------ | --------- | ---------- |
| moonshot/kimi-k2.5 | Premium | $0.015 | Complex reasoning |
| bailian/qwen-max | Standard | $0.008 | Code & Chinese |
| bailian/qwen-plus | Standard | $0.004 | General tasks |
| bailian/qwen-turbo | Economy | $0.002 | Simple queries |
Franco
MIT-0
共 1 个版本