OpenClaw配置外部访问
2026年3月31日需要额外进行一些配置:
以下配置,均在{USER_DIR}/.openclaw/openclaw.json下配置
- 配置允许的源
gateway.controlUi.allowedOrigins = [
"http://192.168.x.x:18789",
...
]
- 设置允许外部访问
gateway.controlUi.allowInsecureAuth = true
- 设置取消设备验证
gateway.controlUi.dangerouslyDisableDeviceAuth = true