一些基础配置
openclaw config set gateway.bind lan
openclaw gateway restart
openclaw config set gateway.controlUi.allowedOrigins '[
"http://127.0.0.1:18789",
"http://localhost:18789"
]'
openclaw config set gateway.controlUi.allowInsecureAuth true
openclaw config set gateway.controlUi.dangerouslyDisableDeviceAuth true
进入容器
docker exec -it openclaw bash
设置 API Key(将 YOUR_API_KEY 替换为实际值)
openclaw config set models.providers.bailian.apiKey "YOUR_API_KEY"
设置 Base URL(根据你的地域选择)
openclaw config set models.providers.bailian.baseUrl "https://dashscope.aliyuncs.com/compatible-mode/v1"
设置默认模型
openclaw config set agents.defaults.model.primary "bailian/qwen3-max-2026-01-23"
重启网关使配置生效
openclaw gateway restart
docker run -d \
--name openclaw1 \
-p 18789:18789 \
-v /opt/openclaw/config:/app/config \
-v /opt/openclaw/data:/app/data \
--restart=always \
docker.xuanyuan.run/alpine/openclaw
