@azure1489/openclaw-csw-web
v1.0.0
Published
OpenClaw CSW Web Channel plugin — SSE + POST
Downloads
72
Readme
@azure1489/openclaw-csw-web
OpenClaw Channel plugin for CSW Web frontend. Enables AI chat via SSE (server-sent events) + POST.
Install
openclaw plugins install @azure1489/openclaw-csw-webConfigure
# Set authentication token
openclaw config set channels.csw-web.token "your-secret-token"
# Enable the channel
openclaw config set channels.csw-web.enabled true
# Optional: allow all senders
openclaw config set channels.csw-web.allowFrom '["*"]'Start
openclaw gateway runHow It Works
The plugin registers HTTP routes on the OpenClaw Gateway:
| Route | Method | Purpose |
|-------|--------|---------|
| /api/csw/send | POST | Receive user messages, dispatch to agent |
| /api/csw/events?session_id=UUID | GET (SSE) | Stream agent responses |
| /api/csw/sessions | GET | List sessions |
| /api/csw/sessions/:id | GET/DELETE | Session detail / delete |
All routes use Gateway bearer token authentication.
Configuration Options
| Field | Type | Description |
|-------|------|-------------|
| enabled | boolean | Enable the channel (default: false) |
| token | string | Bearer token for authentication |
| dmPolicy | string | DM policy (default: allowlist) |
| allowFrom | string[] | Allowed senders list |
License
MIT
