Architecture
This page explains how OpenClaw and SimpleX integrate through this plugin.
High-level diagram
text
+-------------------------+
| OpenClaw |
| (agent + router/core) |
+------------+------------+
|
| channel plugin API
v
+-------------------------+
| @dangoldbj/openclaw- |
| simplex |
| - inbound monitor |
| - outbound actions |
| - policy enforcement |
| - account/runtime state |
+------------+------------+
|
| WebSocket API
v
+-------------------------+
| SimpleX CLI Runtime |
| (simplex-chat) |
+------------+------------+
|
| network
v
+-------------------------+
| SimpleX Network |
+-------------------------+Data flow
- SimpleX emits events through CLI WebSocket API.
- Plugin monitor parses and normalizes events.
- OpenClaw applies policy checks and agent logic.
- Plugin sends replies/actions through SimpleX command API.
Control points
- Access control:
dmPolicy,allowFrom,groupPolicy,groupAllowFrom. - Runtime mode:
managed(plugin starts CLI) vsexternal(plugin connects only). - Account-level config through
channels.simplex.accounts.
Failure boundaries
- If SimpleX WS is unavailable, plugin reports runtime status errors.
- Outbound/inbound are isolated at channel boundary, so other OpenClaw channels keep working.