xCloudxCloudDownload
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

SymptomLikely layer
App says no URL configuredxCloud settings
Connection timed outNetwork or SSH tunnel
Connection refusedGateway not listening
Token rejectedGateway auth
Agents missingWrong active engine
Tools missingRemote helper not installed or outdated

Local Engine

Check gateway status:

openclaw gateway status

Restart gateway:

openclaw gateway restart

If Local still fails, restart xCloud.

PC / Mac mini Engine

From your laptop:

nc -vz <engine-ip> 18789

On the engine computer:

openclaw gateway status

If 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 18790

If the tunnel works, the xCloud Gateway URL should be:

ws://127.0.0.1:18790

Repair 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-only

This repairs the xCloud helper plugin and restarts the gateway without changing the token.

Common Errors

ErrorFix
ECONNREFUSEDGateway is not running or wrong port
Connection timed outHost unreachable or tunnel closed
Permission denied (publickey)Wrong SSH key, user, or host
Address already in useChange the local tunnel port
WebSocket closedGateway restarted, crashed, or rejected auth
Agents disappear after switchingSwitch back to the engine where they were created