返回顶部
q

qqbot-multi-bind多账号绑定

快速配置 OpenClaw 多 QQBot 账号绑定到不同 Agent。用于首次安装 QQBot、新增 QQBot 账号、创建 agent 绑定关系、重启 gateway 使配置生效。当用户需要安装 QQBot 插件、添加新的 QQBot 机器人或配置多账号路由时使用此技能。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
398
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

qqbot-multi-bind

QQBot 多账号绑定配置

配置格式说明

channels.qqbot.accounts 使用对象格式,每个 accountId 作为 key:

json
accounts: {
: {
enabled: true,
appId: ,
clientSecret:
}
}

  • - 顶层 appId/clientSecret 是默认账户(accountId = default)
  • accounts 下的每个 key 就是该账户的 accountId
  • 每个账户可独立配置 enabled、name、allowFrom、systemPrompt 等

首次安装 QQBot(从零开始)

Step 1 — 在 QQ 开放平台创建机器人

  1. 1. 访问 QQ 开放平台,用手机 QQ 扫码登录
  2. 点击「创建机器人」
  3. 记录 AppIDAppSecret(AppSecret 只显示一次,务必保存好)

⚠️ 注意:创建后机器人会出现在 QQ 消息列表,但会回复机器人去火星了,需完成配置才能正常使用。

Step 2 — 安装插件

方式 A:npm 安装(推荐)
bash
openclaw plugins install @tencent-connect/openclaw-qqbot

方式 B:源码一键安装
bash
git clone https://github.com/tencent-connect/openclaw-qqbot.git && cd openclaw-qqbot
bash ./scripts/upgrade-via-source.sh --appid YOURAPPID --secret YOURSECRET

方式 C:手动安装
bash
git clone https://github.com/tencent-connect/openclaw-qqbot.git && cd openclaw-qqbot
npm install --omit=dev
openclaw plugins install .

Step 3 — 配置 OpenClaw

CLI 方式(推荐)
bash
openclaw channels add --channel qqbot --token AppID:AppSecret

手动编辑配置文件

编辑 ~/.openclaw/openclaw.json:
json
{
channels: {
qqbot: {
enabled: true,
appId: Your AppID,
clientSecret: Your AppSecret
}
}
}

Step 4 — 启动测试

bash openclaw gateway

多账号配置(新增第二个机器人)

前置条件

  • - 已有 OpenClaw 安装并运行
  • 已有 qqbot 插件安装
  • 已有至少一个 agent(如 main)
  • 新的 QQBot AppID 和 ClientSecret

方式一:CLI 命令添加(推荐)

bash
openclaw channels add --channel qqbot --account --token AppID:AppSecret

示例:
bash
openclaw channels add --channel qqbot --account bot2 --token 222222222:secret-of-bot-2

然后添加 agent 绑定:
bash
openclaw agents add # 如需要新 agent

编辑 ~/.openclaw/openclaw.json,在 bindings 中添加:
json
{
agentId: ,
match: {
channel: qqbot,
accountId:
}
}

方式二:手动编辑配置

1. 创建新 Agent(如需要)

bash openclaw agents add

2. 编辑 ~/.openclaw/openclaw.json

添加账号到 accounts
json
channels: {
qqbot: {
enabled: true,
allowFrom: [*],
accounts: {
main: {
enabled: true,
appId: 1903000001,
clientSecret: your-secret-here
},
: {
enabled: true,
appId: ,
clientSecret:
}
}
}
}

添加路由到 bindings
json
bindings: [
{
agentId: main,
match: { channel: qqbot, accountId: main }
},
{
agentId: ,
match: { channel: qqbot, accountId: }
}
]

3. 重启并验证

bash openclaw gateway restart openclaw agents list --bindings

完整示例配置

json
{
agents: {
list: [
{ id: main, model: bailian/kimi-k2.5 },
{ id: coding, model: bailian/kimi-k2.5 },
{ id: notify, model: bailian/kimi-k2.5 }
]
},
channels: {
qqbot: {
enabled: true,
allowFrom: [*],
accounts: {
main: { enabled: true, appId: 1903000001, clientSecret: secret-1 },
coding: { enabled: true, appId: 1903000002, clientSecret: secret-2 },
notify: { enabled: true, appId: 1903000003, clientSecret: secret-3 }
}
}
},
bindings: [
{ agentId: main, match: { channel: qqbot, accountId: main } },
{ agentId: coding, match: { channel: qqbot, accountId: coding } },
{ agentId: notify, match: { channel: qqbot, accountId: notify } }
]
}



常见问题

问:一个 agent 可以绑定多个 QQBot 吗?
答:可以!添加多个 bindings 指向同一个 agentId。

问:一个 QQBot 可以发给多个 agent 吗?
答:不可以,一个消息只能路由到一个 agent。

问:如何删除某个 QQBot?
答:从 accounts 和 bindings 中删除对应条目,重启 gateway。

问:如何与另一个 agent 对话?
答:openclaw agent --agent --message 你的消息

问:如何启用跨 agent 会话访问?
答:在 openclaw.json 中添加:
json
{
tools: {
sessions: {
visibility: all
}
}
}

然后重启 gateway。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 qqbot-multi-bind-1776128468 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 qqbot-multi-bind-1776128468 技能

通过命令行安装

skillhub install qqbot-multi-bind-1776128468

下载

⬇ 下载 qqbot-multi-bind v1.0.1(免费)

文件大小: 2.74 KB | 发布时间: 2026-4-15 14:04

v1.0.1 最新 2026-4-15 14:04
Version 1.0.1

- 配置文档全面切换至 `accounts` 对象格式,每个 QQBot 账号由 accountId 显式标识,不再使用数组。
- 新增 CLI 添加多账号与 agent 绑定的命令示例,优化首次与多账号配置流程说明。
- 完善手动和命令行配置流程,更新配置文件示例,提升多账号绑定灵活性与可读性。
- 增补了跨 agent 会话访问的常见问题解答与配置示例。

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部