+
20
-

回答

修改openclaw配置文件~/.openclaw/config.json,找到gateway节点,改成

{
  "gateway": {
    "mode": "local",
    "port": 18789,            
    "bindMode": "lan",
    "auth": {
      "mode": "token",
      "token": "你的真实TOKEN"
    },
    "controlUi": {
      "allowedOrigins": ["*"],
      "allowInsecureAuth": true,  // 关键:允许不安全认证(HTTP 下使用 token)
      "dangerouslyDisableDeviceAuth": true  // 有些版本需要这个
    }
  }
}

保存重启openclaw即可

openclaw gateway restart

网友回复

我知道答案,我要回答