- Extract inbound message handling to inbound.ts (WebSocket, pending Webhook migration) - Extract outbound message handling to outbound.ts with updated VoceChat API - Update authentication to use x-api-key header - Add support for text, markdown, file, and reply messages - Add file upload helper functions
OpenClaw VoceChat Plugin
VoceChat channel plugin for OpenClaw.
Features
- ✅ WebSocket 实时消息接收
- ✅ 支持私聊和群聊
- ✅ 支持文本、图片、文件消息
- ✅ 配对模式安全控制
- ✅ 多账号支持
Installation
From Git
git clone <your-repo-url> ~/.openclaw/extensions/vocechat
cd ~/.openclaw/extensions/vocechat
pnpm install
Enable Plugin
openclaw plugins enable vocechat
Configuration
Edit ~/.openclaw/openclaw.json:
{
channels: {
vocechat: {
enabled: true,
dmPolicy: "pairing", // "pairing" | "allowlist" | "open"
accounts: {
default: {
serverUrl: "https://your-vocechat-server.com",
apiKey: "your-api-key",
botName: "OpenClaw Bot",
},
},
},
},
}
Usage
-
Start the gateway:
openclaw gateway -
Send a message to your VoceChat bot
-
Approve pairing (if dmPolicy is "pairing"):
openclaw pairing approve vocechat <CODE>
Development
pnpm install
pnpm dev
License
MIT
Description
Languages
TypeScript
100%