Gateway Control Plane Architecture

Description

OpenClaw's architectural center: a persistent daemon that owns messaging-surface connections and coordinates clients, tools, and device nodes over a typed WebSocket protocol. The embedded agent runner (Pi-agent core) sits inside this dispatch layer rather than being the architectural center itself, with per-session queue serialization and an optional global lane to prevent tool/session races across multi-channel surfaces. Contrasts with Claude Code's queryLoop-as-center design.

Key claims

Relations

Sources

src-20260423-0cff68d3291b