yuocean-xiaota-openclaw-plugin
v0.2.0
Published
OpenClaw 小沓渠道插件(本地开发版)
Maintainers
Readme
小沓 OpenClaw 插件(本地骨架)
这个插件用于给 OpenClaw 增加一个新渠道:xiaota(小沓)。
0.2.0 开始包含可用 Bridge 能力:
- Webhook 入站:
POST /xiaota/inbound - 健康检查:
GET /xiaota/healthz - 调用本地小龙虾 API
- 可选回推到你的 Chat Server
- 支持
message_id幂等去重(内存 5 分钟窗口) - 支持
x-xiaota-signatureHMAC-SHA256 验签(可选)
本地安装
openclaw plugins install /Users/yokaiyou/Desktop/1data/chatclaw/xiaota-openclaw-plugin启用渠道
openclaw config set channels.xiaota.enabled true
openclaw gateway restart可选配置
openclaw config set channels.xiaota.name "小沓"
openclaw config set channels.xiaota.dmPolicy pairing
openclaw config set channels.xiaota.allowFrom '["*"]'
openclaw config set channels.xiaota.inboundPath "/xiaota/inbound"
openclaw config set channels.xiaota.healthPath "/xiaota/healthz"
openclaw config set channels.xiaota.xlxApiUrl "http://127.0.0.1:8080/xiaolongxia/chat"
openclaw config set channels.xiaota.xlxTimeoutMs 60000
openclaw config set channels.xiaota.inboundSecret "<YOUR_HMAC_SECRET>"
openclaw config set channels.xiaota.chatCallbackUrl "http://127.0.0.1:7001/chat/send_message"
openclaw config set channels.xiaota.chatCallbackToken "<OPTIONAL_BEARER_TOKEN>"入站请求格式
{
"message_id": "msg_123456",
"sender_id": "user_001",
"session_id": "sess_user_001",
"content": "你好,小龙虾"
}入站联调命令
curl -X POST "http://127.0.0.1:3000/xiaota/inbound" \
-H "content-type: application/json" \
-d '{
"message_id":"msg_001",
"sender_id":"user_001",
"session_id":"sess_user_001",
"content":"你好"
}'