企业微信(WeCom)集成插件,支持接收和发送企业微信消息。
# 安装发布包(GitHub 仓库名)
openclaw plugins install magicwang1111/openclaw-wechat-plugin
# 或直接从源码目录加载(取决于你的 OpenClaw 插件加载方式)openclaw plugins enable openclaw-wechat-plugin# 企业微信应用配置(必需)
openclaw config set channels.openclaw-wechat.corpid "ww1234567890abcdef"
openclaw config set channels.openclaw-wechat.corpsecret "your-corp-secret"
openclaw config set channels.openclaw-wechat.token "your-token"
openclaw config set channels.openclaw-wechat.encodingAESKey "your-aes-key"
openclaw config set channels.openclaw-wechat.enabled trueopenclaw config set gateway.mode "local"
openclaw config set gateway.bind "0.0.0.0"
openclaw config set gateway.port 18789openclaw gateway restartopenclaw channels status- 登录 企业微信管理后台
- 进入"应用管理" → 选择或创建应用
- 在应用详情页获取:
AgentId:应用IDSecret:点击"查看Secret"获取
- 在"接收消息"设置中获取:
Token:点击"随机获取"EncodingAESKey:点击"随机获取"
- 在"我的企业"中查看
企业ID (CorpID)
在企业微信管理后台,配置应用回调 URL:
http://your-gateway-host:18789/openclaw-wechat/message
- ✅ 企业微信消息接收与解密
- ✅ 多种消息类型支持(文本、图片、语音、视频、位置、链接)
- ✅ 企业微信 API 消息发送
- ✅ 文件附件支持
- ✅ 同步/异步模式
- ✅ 多账号管理
MIT
欢迎提交 Issue 和 Pull Request!