OpenClaw接入QQ Bot

OpenClaw打通了飞书、企业微信、Telegram 等二十多个平台,在国内很多人都喜欢用OpenClaw去接飞书,这还是得去注册个飞书的账号,下载个飞书的App,我平时QQ用得多一点,所以,这里就先试试QQ中的效果怎么样

首先,我们需要去QQ开放平台去创建机器人,获取到AppIDAppSecret

先需要去QQ开放平台注册开发者账号->新建机器人
alt text
alt text
alt text
alt text
alt text
alt text
alt text
alt text
alt text
alt text

经过上面的操作之后,我们能拿到AppIDAppSecret了,现在开始去OpenClaw配置QQ Bot;

现需要安装插件openclaw plugins install @sliverp/qqbot@latest;

1
2
3
4
5
6
7
8
9
10
11
12

🦞 OpenClaw 2026.3.2 (85377a2) — I don't judge, but your missing API keys are absolutely judging you.

Downloading @sliverp/qqbot@latest…
Extracting /tmp/openclaw-npm-pack-ONpmIt/sliverp-qqbot-1.5.1.tgz…
WARNING: Plugin "qqbot" contains dangerous code patterns: Shell command execution detected (child_process) (/tmp/openclaw-plugin-NfQXeA/extract/package/bin/qqbot-cli.js:109)
Installing to /home/openclaw/.openclaw/extensions/qqbot…
Installing plugin dependencies…
00:40:40 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: qqbot (/home/openclaw/.openclaw/extensions/qqbot/index.ts). Set plugins.allow to explicit trusted ids.
Config overwrite: /home/openclaw/.openclaw/openclaw.json (sha256 8c464a00c370cf4d0f448aa947b364a03e04b23ff49097306db7159071b81db8 -> 0223e49e6f17d3cc2c9ba6d3c5b3d62ef260ed57565ea23f8a415b0579fad741, backup=/home/openclaw/.openclaw/openclaw.json.bak)
Installed plugin: qqbot
Restart the gateway to load plugins.

安装好之后,需要重启一下

1
2
systemctl --user restart openclaw-gateway.service

再执行配置命令openclaw channels add --channel qqbot --token "AppID:AppSecret";

1
2
3
4
5
6
🦞 OpenClaw 2026.3.2 (85377a2) — I run on caffeine, JSON5, and the audacity of "it worked on my machine."

01:38:00 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: qqbot (/home/openclaw/.openclaw/extensions/qqbot/index.ts). Set plugins.allow to explicit trusted ids.
Config overwrite: /home/openclaw/.openclaw/openclaw.json (sha256 0223e49e6f17d3cc2c9ba6d3c5b3d62ef260ed57565ea23f8a415b0579fad741 -> a66351affdab7ed05c44b756791be4f2abd22d99925224d2e455b2a17370f818, backup=/home/openclaw/.openclaw/openclaw.json.bak)
Added QQ Bot account "default".

我们再重启一下systemctl --user restart openclaw-gateway.service

这里,我们先测试机器人能不能使用,先进入到开发->沙箱配置

alt text
alt text
alt text
然后再扫描机器人的二维码,
alt text

至此,咱们也就能通过QQ机器人来和大模型聊天
alt text
那么OpenClaw还能干些啥,后面咱们再继续探索。

作者

eyiadmin

发布于

2026-03-06

更新于

2026-03-06

许可协议

评论