OpenClaw Router Skill
通用智能路由系统 - 自动选择最佳模型,节省 60% 成本
🚀 快速开始
安装
# 通过 ClawHub 安装
clawhub install openclaw-router
配置
安装后自动运行配置向导,或手动运行:
openclaw router config --init
启用
openclaw router enable
✨ 功能特性
🎯 智能模型选择
- ✅ 5 维度自评(知识/推理/上下文/质量/工具)
- ✅ 任务类型识别(代码/创意/分析/战略/学习/日常)
- ✅ 用户偏好学习
- ✅ 成本预算管理
💰 成本优化
- ✅ 本地模型优先(免费)
- ✅ 边界情况验证(L2)
- ✅ 复杂任务专家(L3)
- ✅ 预计节省 60% 成本
🌍 全场景支持
- ✅ 纯本地部署
- ✅ 纯云端部署
- ✅ 混合部署
- ✅ 多云端部署
- ✅ 企业私有化
📊 透明追踪
- ✅ Token 用量显示
- ✅ 成本实时追踪
- ✅ 套餐剩余监控
- ✅ 预算告警
📋 支持的模型
本地模型(Ollama)
| 模型 |
适用场景 |
成本 |
| qwen2.5:7b |
简单问答 |
¥0 |
| qwen2.5:14b |
日常开发 |
¥0 |
| qwen2.5:72b |
复杂任务 |
¥0 |
云端模型
| 提供商 |
模型 |
适用场景 |
成本/1k tokens |
| 阿里云 |
qwen3.5-plus |
日常主力 |
¥0.002 |
| 阿里云 |
qwen3-max |
复杂推理 |
¥0.04 |
| 阿里云 |
kimi-k2.5 |
长文本 |
¥0.04 |
| OpenAI |
gpt-4 |
创意/英文 |
¥0.03 |
| Anthropic |
claude-3 |
安全敏感 |
¥0.03 |
⚙️ 配置说明
配置文件位置
~/.openclaw/router_config.yaml
配置示例
version: "1.0.0"
models:
primary:
id: "qwen2.5:14b-32k"
location: "local"
verifier:
id: "dashscope/qwen3.5-plus"
location: "cloud"
expert:
id: "dashscope/qwen3-max"
location: "cloud"
thresholds:
mode: "balanced"
auto_pass: 3.5
verify_min: 3.0
verify_max: 3.5
escalate_below: 3.0
budget:
monthly: 200
currency: "CNY"
alert_at: [50, 80, 95]
💰 定价
免费版
- ✅ 基础路由
- ✅ Token 追踪
- ✅ 每月 1000 次请求
付费版(¥29/月)
- ✅ 无限请求
- ✅ 用户偏好学习
- ✅ 预算管理
- ✅ 时段优化
- ✅ 优先支持
企业版(¥199/月)
- ✅ 所有付费功能
- ✅ 多用户管理
- ✅ 自定义模型池
- ✅ API 访问
- ✅ SLA 保障
📖 文档
🤝 贡献
欢迎贡献代码!
git fork https://github.com/pepsiboy87/openclaw-router
git clone git@github.com:your-username/openclaw-router.git
git checkout -b feature/your-feature
git commit -m "Add your feature"
git push origin feature/your-feature
📄 许可证
MIT License
📞 支持
让每个 AI 助手都拥有智能路由能力!
1---
2name: openclaw-router
3version: 1.0.0
4description: "Intelligent Model Routing - Save 60% on AI Costs / 智能路由系统 - 节省 60% 成本"
5author: pepsiboy87
6homepage: https://github.com/pepsiboy87/openclaw-router
7
8metadata:
9 source: https://skillmd.com/skills/modbender/openclaw-router
10 category: automation
11 tags: [routing, model-selection, cost-optimization, llm, ai, i18n, global]
12 languages: [en, zh]
13 regions: [global, china, us, eu, asia]
14 requirements:
15 openclaw: ">=2026.2.24"
16 python: ">=3.8"
17 system:
18 memory_min_gb: 2
19 disk_min_gb: 1
20
21pricing:
22 type: freemium
23 currencies:
24 USD:
25 premium: 9.99
26 enterprise: 29.99
27 CNY:
28 premium: 29
29 enterprise: 199
30 EUR:
31 premium: 9.99
32 enterprise: 29.99
33 free_tier:
34 requests_per_month: 1000
35 features_en: [Basic Routing, Token Tracking, Environment Detection, Config Wizard]
36 features_zh: [基础路由,Token 追踪,环境检测,配置向导]
37 premium_tier:
38 features_en: [Unlimited Requests, User Preference Learning, Budget Management, Time Optimization, Multi-Model Support, Detailed Reports, Priority Support]
39 features_zh: [无限请求,用户偏好学习,预算管理,时段优化,多模型支持,详细报告,优先支持]
40---
41
42# OpenClaw Router Skill
43
44**通用智能路由系统 - 自动选择最佳模型,节省 60% 成本**
45
46---
47
48## 🚀 快速开始
49
50### 安装
51
52```bash
53# 通过 ClawHub 安装
54clawhub install openclaw-router
55```
56
57### 配置
58
59安装后自动运行配置向导,或手动运行:
60
61```bash
62openclaw router config --init
63```
64
65### 启用
66
67```bash
68openclaw router enable
69```
70
71---
72
73## ✨ 功能特性
74
75### 🎯 智能模型选择
76
77- ✅ 5 维度自评(知识/推理/上下文/质量/工具)
78- ✅ 任务类型识别(代码/创意/分析/战略/学习/日常)
79- ✅ 用户偏好学习
80- ✅ 成本预算管理
81
82### 💰 成本优化
83
84- ✅ 本地模型优先(免费)
85- ✅ 边界情况验证(L2)
86- ✅ 复杂任务专家(L3)
87- ✅ **预计节省 60% 成本**
88
89### 🌍 全场景支持
90
91- ✅ 纯本地部署
92- ✅ 纯云端部署
93- ✅ 混合部署
94- ✅ 多云端部署
95- ✅ 企业私有化
96
97### 📊 透明追踪
98
99- ✅ Token 用量显示
100- ✅ 成本实时追踪
101- ✅ 套餐剩余监控
102- ✅ 预算告警
103
104---
105
106## 📋 支持的模型
107
108### 本地模型(Ollama)
109
110| 模型 | 适用场景 | 成本 |
111|------|----------|------|
112| qwen2.5:7b | 简单问答 | ¥0 |
113| qwen2.5:14b | 日常开发 | ¥0 |
114| qwen2.5:72b | 复杂任务 | ¥0 |
115
116### 云端模型
117
118| 提供商 | 模型 | 适用场景 | 成本/1k tokens |
119|--------|------|----------|---------------|
120| 阿里云 | qwen3.5-plus | 日常主力 | ¥0.002 |
121| 阿里云 | qwen3-max | 复杂推理 | ¥0.04 |
122| 阿里云 | kimi-k2.5 | 长文本 | ¥0.04 |
123| OpenAI | gpt-4 | 创意/英文 | ¥0.03 |
124| Anthropic | claude-3 | 安全敏感 | ¥0.03 |
125
126---
127
128## ⚙️ 配置说明
129
130### 配置文件位置
131
132```
133~/.openclaw/router_config.yaml
134```
135
136### 配置示例
137
138```yaml
139version: "1.0.0"
140
141models:
142 primary:
143 id: "qwen2.5:14b-32k"
144 location: "local"
145
146 verifier:
147 id: "dashscope/qwen3.5-plus"
148 location: "cloud"
149
150 expert:
151 id: "dashscope/qwen3-max"
152 location: "cloud"
153
154thresholds:
155 mode: "balanced"
156 auto_pass: 3.5
157 verify_min: 3.0
158 verify_max: 3.5
159 escalate_below: 3.0
160
161budget:
162 monthly: 200
163 currency: "CNY"
164 alert_at: [50, 80, 95]
165```
166
167---
168
169## 💰 定价
170
171### 免费版
172
173- ✅ 基础路由
174- ✅ Token 追踪
175- ✅ 每月 1000 次请求
176
177### 付费版(¥29/月)
178
179- ✅ 无限请求
180- ✅ 用户偏好学习
181- ✅ 预算管理
182- ✅ 时段优化
183- ✅ 优先支持
184
185### 企业版(¥199/月)
186
187- ✅ 所有付费功能
188- ✅ 多用户管理
189- ✅ 自定义模型池
190- ✅ API 访问
191- ✅ SLA 保障
192
193---
194
195## 📖 文档
196
197- [配置指南](docs/CONFIGURATION.md)
198- [API 文档](docs/API.md)
199- [使用示例](docs/EXAMPLES.md)
200- [常见问题](docs/FAQ.md)
201
202---
203
204## 🤝 贡献
205
206欢迎贡献代码!
207
208```bash
209git fork https://github.com/pepsiboy87/openclaw-router
210git clone git@github.com:your-username/openclaw-router.git
211git checkout -b feature/your-feature
212git commit -m "Add your feature"
213git push origin feature/your-feature
214```
215
216---
217
218## 📄 许可证
219
220MIT License
221
222---
223
224## 📞 支持
225
226- **文档:** https://github.com/pepsiboy87/openclaw-router
227- **Issue:** https://github.com/pepsiboy87/openclaw-router/issues
228- **邮箱:** pepsiboy87@example.com
229
230---
231
232_让每个 AI 助手都拥有智能路由能力!_