对接 OpenClaw
龙虾,基于大模型的个人助理
如果你使用 LLBot Desktop 版,可以在「对接框架」页面一键安装 OpenClaw,无需手动操作。
前置依赖
安装 OpenClaw CLI
npm install -g openclaw@latest --registry=https://registry.npmmirror.com安装 OpenClaw QQ 扩展
git clone https://github.com/constansino/openclaw_qq.git ~/.openclaw/extensions/openclaw_qq
cd ~/.openclaw/extensions/openclaw_qq
npm install --registry=https://registry.npmmirror.com配置 LLBot
在 LLBot 中启用 OneBot11,添加正向 WS 连接:
{
"type": "ws",
"enable": true,
"host": "127.0.0.1",
"port": 3001, // 使用未被占用的端口
"heartInterval": 60000,
"token": "",
"messageFormat": "array",
"reportSelfMessage": false
}OpenClaw 使用正向 WebSocket(ws 类型),LLBot 作为服务端。
配置 OpenClaw
编辑 ~/.openclaw/openclaw.json:
{
"channels": {
"qq": {
"wsUrl": "ws://127.0.0.1:3001",
"accessToken": "",
"requireMention": true,
"enableEmptyReplyFallback": false,
"admins": "你的QQ号"
}
},
"plugins": {
"entries": {
"qq": { "enabled": true }
}
}
}启动
openclaw gateway run