Use this file to discover all available pages before exploring further.
Bridge protocol
warning
The TCP bridge has been **removed**. Current OpenClaw builds do not ship the bridge listener and `bridge.*` config keys are no longer in the schema. This page is kept for historical reference only. Use the [Gateway Protocol](/gateway/protocol) for all node/operator clients.
Why it existed
- Security boundary: the bridge exposes a small allowlist instead of the
full gateway API surface.
- Pairing + node identity: node admission is owned by the gateway and tied
to a per-node token.
- Discovery UX: nodes can discover gateways via Bonjour on LAN, or connect
directly over a tailnet.
- Loopback WS: the full WS control plane stays local unless tunneled via SSH.
Transport
- TCP, one JSON object per line (JSONL).
- Optional TLS (when is true).
- Historical default listener port was (current builds do not start a
TCP bridge).
When TLS is enabled, discovery TXT records include
plus
as a non-secret hint. Note that Bonjour/mDNS TXT records are
unauthenticated; clients must not treat the advertised fingerprint as an
authoritative pin without explicit user intent or other out-of-band verification.
Handshake + pairing
- Client sends with node metadata + token (if already paired).
- If not paired, gateway replies (/).
- Client sends .
- Gateway waits for approval, then sends and .
Historically,
returned
and could include
.
Frames
Client → Gateway:
- / : scoped gateway RPC (chat, sessions, config, health, voicewake, skills.bins)
- : node signals (voice transcript, agent request, chat subscribe, exec lifecycle)
Gateway → Client:
- / : node commands (, , ,
, )
- : chat updates for subscribed sessions
- / : keepalive
Legacy allowlist enforcement lived in
src/gateway/server-bridge.ts
(removed).
Exec lifecycle events
Nodes can emit
or
events to surface system.run activity.
These are mapped to system events in the gateway. (Legacy nodes may still emit
.)
Payload fields (all optional unless noted):
- (required): agent session to receive the system event.
- : unique exec id for grouping.
- : raw or formatted command string.
- , , , : completion details (finished only).
- : denial reason (denied only).
Historical tailnet usage
- Bind the bridge to a tailnet IP: in
~/.openclaw/openclaw.json
(historical only; is no longer valid).
- Clients connect via MagicDNS name or tailnet IP.
- Bonjour does not cross networks; use manual host/port or wide-area DNS‑SD
when needed.
Versioning
The bridge was implicit v1 (no min/max negotiation). This section is
historical reference only; current node/operator clients use the WebSocket
Gateway Protocol.
Related