1 从现有安装迁移
重新进入配置向导,并选择自定义 Provider。
配置向导
bash
openclaw onboard --install-daemonClassic
bash
openclaw onboard --classic| 配置项 | 建议 / 值 |
|---|---|
Continue? | 阅读安全提示后选择 Yes |
Setup mode | 推荐选择 QuickStart |
Model/auth provider | 选择 Custom Provider |
Endpoint compatibility | 选择 OpenAI-compatible (/chat/completions) |
Base URL | https://maas-api.cn-huabei-1.xf-yun.com/v2 |
APIKEY | 填写 APIKEY |
Model ID | spark-x2.5 |
Model alias | Spark X2.5(可选) |
2 从零安装
- 安装
bash
curl -fsSL https://openclaw.ai/install.sh | bashpowershell
iwr -useb https://openclaw.ai/install.ps1 | iex- 配置默认模型
配置
bash
openclaw onboard --install-daemon- 开始使用
Web UI
bash
openclaw dashboardTUI
bash
openclaw tuiTerminal
bash
openclaw terminal- 验证要点
| 检查项 | 说明 |
|---|---|
| 地址 | 最终请求 /v2/chat/completions |
| 鉴权 | Authorization: Bearer APIKEY |
| 模型 ID | spark-x2.5 |
| 工具 | 验证 Function Calling 与参数回填 |