Skip to content

magicwang1111/openclaw-wechat-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openclaw-wechat-plugin

企业微信(WeCom)集成插件,支持接收和发送企业微信消息。

安装

# 安装发布包(GitHub 仓库名)
openclaw plugins install magicwang1111/openclaw-wechat-plugin

# 或直接从源码目录加载(取决于你的 OpenClaw 插件加载方式)

快速开始

1. 启用插件

openclaw plugins enable openclaw-wechat-plugin

2. 配置企业微信

# 企业微信应用配置(必需)
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 true

3. 配置 Gateway

openclaw config set gateway.mode "local"
openclaw config set gateway.bind "0.0.0.0"
openclaw config set gateway.port 18789

4. 重启 Gateway

openclaw gateway restart

5. 验证

openclaw channels status

配置说明

如何获取企业微信配置参数

  1. 登录 企业微信管理后台
  2. 进入"应用管理" → 选择或创建应用
  3. 在应用详情页获取:
    • AgentId:应用ID
    • Secret:点击"查看Secret"获取
  4. 在"接收消息"设置中获取:
    • Token:点击"随机获取"
    • EncodingAESKey:点击"随机获取"
  5. 在"我的企业"中查看 企业ID (CorpID)

配置回调 URL

在企业微信管理后台,配置应用回调 URL:

http://your-gateway-host:18789/openclaw-wechat/message

功能特性

  • ✅ 企业微信消息接收与解密
  • ✅ 多种消息类型支持(文本、图片、语音、视频、位置、链接)
  • ✅ 企业微信 API 消息发送
  • ✅ 文件附件支持
  • ✅ 同步/异步模式
  • ✅ 多账号管理

许可证

MIT

贡献

欢迎提交 Issue 和 Pull Request!

About

openclaw-wechat-plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published