WebSocket Integration and Troubleshooting Guide | Generated by AI

Home 2026.03

These are separate concerns:

Why WebSocket?

OpenClaw uses WebSocket as its core real-time transport between the browser Control UI and the gateway process. The gateway runs as a persistent background service that manages AI agents, message routing, and channel connections. WebSocket gives:

The URL ws://192.168.1.36:18789 is just the plain-HTTP equivalent of the gateway’s WebSocket endpoint — same host/port as the HTTP server, but upgraded to WebSocket protocol.

Copy button issue

Likely related, yes. The copy button in the Control UI almost certainly uses the WebSocket connection to send a command to the gateway (e.g. copy message content via the native clipboard on the gateway host). If the WS connection isn’t fully established or is being dropped, any button that fires a WS message will silently fail or error.

Fix the WS connection first (origin allowlist + dangerouslyDisableDeviceAuth), then retest the copy button.


Back Donate