File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ sidebar_position : 16
3+ ---
4+
5+ # OpenClaw接入QQ
6+
7+ ## 1.创建QQ BOT
8+
9+ 打开 QQ 官方机器人入口:https://q.qq.com/qqbot/openclaw/login.html
10+
11+ ![ image-20260312151240316] ( images/image-20260312151240316.png )
12+
13+ 可以看到这个界面,扫码注册开发者账号。
14+
15+ ![ image-20260312151409231] ( images/image-20260312151409231.png )
16+
17+ 扫码完成后可以看到以上界面,点击** 创建机器人** 。
18+
19+ ![ image-20260312152056352] ( images/image-20260312152056352.png )
20+
21+ 创建成功后,有看到生成的AppID和AppSecret,请记住这两个。并且还提供了后面再OpenClaw中执行的命令。同时机器人还会给你注册开发者账号的QQ发送一条信息。
22+
23+ ![ image-20260312151833469] ( images/image-20260312151833469.png )
24+
25+
26+
27+ ## 2.配置OpenClaw
28+
29+ 回到OpenClaw主机界面,根据QQ Bot界面提供的命令进行执行:
30+
31+ ![ image-20260312152237999] ( images/image-20260312152237999.png )
32+
33+ 打开终端,** 安装OpenClaw开源社区QQBot插件** ,输入:
34+
35+ ```
36+ openclaw plugins install @tencent-connect/openclaw-qqbot@latest
37+ ```
38+
39+ ![ image-20260312152527028] ( images/image-20260312152527028.png )
40+
41+
42+
43+ ** 配置绑定当前QQ机器人** ,输入:
44+
45+ ```
46+ openclaw channels add --channel qqbot --token "19xxxxxx:HVxxxxxxxxx"
47+ ```
48+
49+ 上面的token需要根据你QQ Bot界面提供的token而修改!!!
50+
51+ ![ image-20260312152733353] ( images/image-20260312152733353.png )
52+
53+
54+
55+ ** 重启本地OpenClaw服务** ,输入:
56+
57+ ```
58+ openclaw gateway restart
59+ ```
60+
61+ ## 3.测试
62+
63+ 打开 QQ,找到对应的机器人,可以向他发送消息。或者点击QQ Bot界面的扫码聊天。
64+
65+ ![ image-20260312153349051] ( images/image-20260312153349051.png )
66+
67+ 例如:你好。如果配置成功了,OpenClaw会回复你。
68+
69+ ![ image-20260312152939901] ( images/image-20260312152939901.png )
70+
You can’t perform that action at this time.
0 commit comments