在docker中为OpenClaw配置微信官方插件,遇到Channel login failed: Error: Unsupported channel: openclaw-weixin错误

技术
发布于 05/03/2026, 08:58 PM2 人读过

我按照 https://docs.openclaw.ai/zh-CN/install/docker在docker 安装OpenClaw后,进入容器,使用npx -y @tencent-weixin/openclaw-weixin-cli@latest install安装微信插件,出现了Channel login failed: Error: Unsupported channel: openclaw-weixin错误。

解决方案

# (在gateway容器中)
# 1. 创建 extensions 目录(如果不存在)
mkdir -p /home/node/.openclaw/extensions

# 2. 把微信插件链接过去
ln -sf /home/node/.openclaw/npm/node_modules/@tencent-weixin/openclaw-weixin /home/node/.openclaw/extensions/openclaw-weixin

# 3. 确保权限正确
chown -R node:node /home/node/.openclaw/extensions

# 4. 退出容器
exit

# 5. 重启网关(这里我使用clawdock)
clawdock-restart