OpenClaw 接入
1. 前提条件
- 已注册并获取本平台 API Key。
- 已安装 Node.js 环境。
2. 安装与配置
bash
# MacOS/Linux 安装 OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash
# Windows 安装 OpenClaw
iwr -useb https://openclaw.ai/install.ps1 | iex3. 修改配置
bash
# 打开文件 ~/.openclaw/openclaw.json
# 在对应字段增加以下配置
{
"models": {
"providers": {
"aiwith.chat": {
"baseUrl": "http://aiwith.chat/",
"apiKey": "YOUR_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "claude-opus-4-6",
"name": "claude-opus-4-6",
"reasoning": true,
"input": [
"text",
"image"
]
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "claude-opus-4-6",
"fallbacks": [
"claude-opus-4-6"
]
},
"models": {
"aiwith.chat/claude-opus-4-6": {}
}
}
}
}4. 重新启动
bash
openclaw gateway restart