🦞 OpenClaw 文档中心

完整的OpenClaw安装、配置和使用指南

阿里云百炼配置

获取API Key

登录 阿里云百炼官网,获取Coding Plan专属API Key。

修改配置文件

编辑 /root/.openclaw/openclaw.json

nano /root/.openclaw/openclaw.json

找到或添加models字段,配置为:

{
  "models": {
    "mode": "merge",
    "providers": {
      "bailian": {
        "baseUrl": "https://coding.dashscope.aliyuncs.com/v1",
        "apiKey": "YOUR_API_KEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "qwen3.5-plus",
            "name": "qwen3.5-plus",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          }
        ]
      }
    }
  }
}

替换YOUR_API_KEY为你的实际API Key

应用配置

rm -f /root/.openclaw/agents/main/agent/models.json
systemctl restart openclaw-gateway