Skip to content

Gateway(网关)使用与排错

常用命令

bash
openclaw gateway status
openclaw gateway start
openclaw gateway stop
openclaw gateway restart
openclaw gateway probe

常见问题

1) 网关不启动/启动就退出

  • 先看日志:
bash
openclaw logs --follow
  • 有时是因为默认安全策略要求 gateway.mode=local 等配置完成。 临时开发/临时启动可以用:
bash
openclaw gateway --allow-unconfigured

2) 能启动但 Control UI 连不上

  • gateway status 确认端口/探测
  • 再用 gateway probe 扫一遍本机与远程(如果有)
bash
openclaw gateway probe