@superdad/xiaochuang_ws
v1.3.2
Published
OpenClaw Xiaochuang channel plugin — WebSocket-based real-time integration
Downloads
616
Readme
@superdad/xiaochuang_ws
OpenClaw channel plugin for Xiaochuang — WebSocket-based real-time bidirectional integration.
Install
openclaw plugins install @superdad/xiaochuang_wsQuick Start
- Install the plugin:
openclaw plugins install @superdad/xiaochuang_wsOpen the Xiaochuang miniprogram, navigate to the OpenClaw activation page, and generate an activation code (e.g.
ABCD-EFGH).Fill in the activation code in
openclaw.json:
{
"channels": {
"xiaochuang_ws": {
"activationCode": "ABCD-EFGH"
}
}
}- Add the channel:
openclaw channels add --channel xiaochuang_ws- Restart the gateway:
openclaw gateway restartOn first start the plugin connects to the provision endpoint, exchanges the activation code for a token, saves the token to openclaw.json, and removes the activation code (one-time use). Subsequent starts use the saved token directly.
Configuration
| Key | Description |
|-----|-------------|
| channels.xiaochuang_ws.enabled | Enable/disable the channel |
| channels.xiaochuang_ws.activationCode | One-time activation code from the miniprogram (cleared after use) |
| channels.xiaochuang_ws.token | API token (auto-populated after activation) |
| channels.xiaochuang_ws.wsUrl | WebSocket endpoint URL (optional, has default) |
| channels.xiaochuang_ws.dmPolicy | DM policy: open / pairing / allowlist |
| channels.xiaochuang_ws.allowFrom | Allowed sender IDs when dmPolicy is allowlist |
| channels.xiaochuang_ws.blockStreaming | Enable block-streaming replies for this channel, default true |
License
MIT
