Access your OpenClaw (formerly Clawdbot and Moltbot) Gateway remotely via SSH, Tailscale, or discovery
By default, the Gateway runs on loopback (127.0.0.1) for security. However, you can access it remotely using SSH tunnels, Tailscale, or by configuring remote binding with proper authentication.
SSH tunnels provide secure encrypted access to your Gateway:
ssh -L 18789:localhost:18789 user@gateway-host
This creates a tunnel from your local port 18789 to the Gateway's port 18789 on the remote host.
Once the tunnel is established:
http://localhost:18789ws://localhost:18789Tailscale provides a secure VPN for remote access:
Configure Gateway to bind to Tailscale:
openclaw gateway --bind tailnet --token YOUR_TOKEN
Note: Token is required for non-loopback binds.
--bind tailnetMoltbot supports automatic Gateway discovery:
For production or when you need direct remote access:
{
"gateway": {
"bind": "0.0.0.0",
"port": 18789,
"auth": {
"mode": "token",
"token": "your-secure-token"
}
}
}
Security Warning: Only expose Gateway directly if:
iOS and Android nodes pair securely with the Gateway:
Pairing ensures only authorized devices can connect.
openclaw status