微信官方 openclaw 插件配置不同 agent 的方法

刚刚试了一下微信官方出的 openclaw 插件,发现扫码之后默认绑定的是“main” agent ,要绑定到其他 agent 需要执行以下步骤: 1 ) 去 openclaw 安装目录找到 openclaw-weixin 目录,然后读取 accounts.json 中的 id 内容: cat accounts.json [ "xx-im-bot" ]

2 ) 修改 openclaw 配置文件,在 binding 中新增: 这里的 agentId 是你需要绑定到的对应 agent { "agentId": "weixin", "match": { "channel": "openclaw-weixin", "accountId": "xx-im-bot" } }

3 ) (这一步不知道要不要)在 channels 中新增:
"openclaw-weixin": { "enable": true, "accounts": { "xx-im-bot": {

}
  }
}

4 ) 然后重启即可