Install
openclaw skills install qqbot-add-accountAdd new QQ Bot accounts to an existing OpenClaw Gateway instance. Use when a user provides a new QQ Bot appId and clientSecret (or app token) and wants to run multiple QQ bots under one Gateway. Covers both CLI and direct config edit approaches.
openclaw skills install qqbot-add-accountThis skill adds a new QQ Bot account as a secondary bot under an existing channels.qqbot configuration.
channels.qqbot entry with enabled: true in openclaw.jsonQQ Bot supports multi-account via the accounts field inside channels.qqbot:
"channels": {
"qqbot": {
"enabled": true,
"appId": "existing-bot-id",
"clientSecret": "existing-bot-secret",
"accounts": {
"bot2": {
"enabled": true,
"appId": "new-bot-id",
"clientSecret": "new-bot-secret"
},
"bot3": {
"enabled": true,
"appId": "another-bot-id",
"clientSecret": "another-bot-secret"
}
}
}
}
"bot2", "bot3") is an arbitrary alias you chooseappIdopenclaw channels add --channel qqbot --account <alias> --token "<appSecret>"
This stores credentials in the OpenClaw credentials store. Note: --token-file only sets AppSecret; you still need appId in config or QQBOT_APP_ID env var.
~/.openclaw/openclaw.json and locate the channels.qqbot blockaccounts (or note there are none yet)enabled: true, appId, and clientSecret, comma-separated from the previous entry默认新 bot 的消息会走默认 agent(通常是 main)。一般用户只需要这样,不用额外操作。
如果用户希望新 bot 有独立的人格和记忆(多 agent 模式),完成上述步骤后询问:
"要不要给这个新 bot 创建独立的 agent?这样它会有单独的记忆和人格。"
答是 → 继续以下步骤 答否 → 结束
agents.list 中新增一个 agent 条目:{
"id": "<accountId>",
"name": "<bot名称>",
"workspace": "~/.openclaw/workspaces/<accountId>"
}
bindings 中添加路由规则:{
"agentId": "<agentId>",
"match": {
"channel": "qqbot",
"accountId": "<accountId>"
}
}
mkdir -p ~/.openclaw/workspaces/<accountId>/skills
在该工作区中放置 SOUL.md、USER.md 等文件定义其人格。
通知用户:新 bot 现在拥有独立的 agent,重启 gateway 后生效。
openclaw.json by default. For production, consider SecretRef (env var or file-backed).tts block inside the account config.enabled: false or delete the entry.