Troubleshooting
Engine Troubleshooting
Fix common Local, PC, and VPS engine connection problems.
Most engine issues come from one of four layers: network, tunnel, gateway, or token.
Fast Diagnosis
| Symptom | Likely layer |
|---|---|
| App says no URL configured | xCloud settings |
| Connection timed out | Network or SSH tunnel |
| Connection refused | Gateway not listening |
| Token rejected | Gateway auth |
| Agents missing | Wrong active engine |
| Tools missing | Remote helper not installed or outdated |
Local Engine
Check gateway status:
openclaw gateway statusRestart gateway:
openclaw gateway restartIf Local still fails, restart xCloud.
PC / Mac mini Engine
From your laptop:
nc -vz <engine-ip> 18789On the engine computer:
openclaw gateway statusIf the port is blocked, check firewall, sleep mode, network, and IP address.
VPS Engine
Confirm SSH first:
ssh <user>@<host>Then test the tunnel:
ssh -N -L 18790:127.0.0.1:18789 <user>@<host>In another terminal:
nc -vz 127.0.0.1 18790If the tunnel works, the xCloud Gateway URL should be:
ws://127.0.0.1:18790Repair Remote Helper
Use this when xCloud connects but tools, imported agents, terminal, or channels act broken:
curl -fsSL https://xcloud.dev/setup-remote.sh | bash -s -- --update-onlyThis repairs the xCloud helper plugin and restarts the gateway without changing the token.
Common Errors
| Error | Fix |
|---|---|
ECONNREFUSED | Gateway is not running or wrong port |
Connection timed out | Host unreachable or tunnel closed |
Permission denied (publickey) | Wrong SSH key, user, or host |
Address already in use | Change the local tunnel port |
WebSocket closed | Gateway restarted, crashed, or rejected auth |
| Agents disappear after switching | Switch back to the engine where they were created |