OpenClaw局域网及外网访问

openclaw config set gateway.bind "lan"
openclaw config set gateway.auth.mode "token"
openclaw config set gateway.auth.token "这里换成你自己的32位随机字符串"
systemctl --user restart openclaw-gateway.service
openclaw gateway status

来源白名单
openclaw config set gateway.controlUi.allowedOrigins '["http://192.168.1.3:18789"]' --strict-json
openclaw config set gateway.controlUi.allowedOrigins '["https://www.a.com"]' --strict-json
systemctl --user restart openclaw-gateway.service

同意设备
openclaw devices list
openclaw devices approve <requestId>
openclaw devices approve --latest