据 AlphaMoat 统计,截至 2026-09,Wecom Channel Fix 累计下载 1,244 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,914 位,在「运维安全」分类(264 个)中排名第 262 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 26 | 987 | - | - |
| SkillHub ↗ | 306 | 1,244 | - | — |
各平台的计数口径不同,统计时间不一致。
检查通道状态、插件标识、凭据和日志,说明备份后配置修复及单账号回退。改配置或重启前确认兼容性,遮盖含秘密输出并限制群组访问。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 1,244 | — | - |
| 2026-08 | 1,033 | +7.3% | - |
| 2026-07 | 963 | +14.9% | - |
| 2026-06 | 838 | +6.1% | - |
| 2026-05 | 790 | — | - |
| 2026-03 | 539 | — | - |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
---
name: wecom-channel-fix
description: 企业微信通道配置诊断与修复。当用户遇到企微通道无法连接、配置错误、插件 ID 不匹配、多账号模式不支持等问题时激活。支持配置检测、自动修复、单账号/多账号模式切换。
version: 1.0.0
license: MIT
author: OpenClaw Community
homepage: https://github.com/YOUR_USERNAME/openclaw-skill-wecom-channel-fix
metadata:
{
"openclaw": {
"emoji": "🔧",
"always": false,
"requires":
{
"bins": [],
},
},
}
---
# 企业微信通道配置诊断与修复技能
当用户遇到企业微信通道无法连接、消息无回复、配置错误等问题时,使用此技能进行诊断和修复。
## 触发场景
- "企微没反应"
- "企业微信通道配置错误"
- "wecom 连不上"
- "插件 ID 不匹配"
- "多账号模式不支持"
- "企微消息无回复"
## 诊断流程
### 步骤 1:检查通道状态
```bash
openclaw channels status 2>&1
```
**判断标准:**
- `enabled, configured, running` ✅ 正常
- `enabled, not configured, stopped` ❌ 配置缺失
- `error:*` ❌ 错误状态
### 步骤 2:检查配置文件
```bash
openclaw config get channels.wecom 2>&1
```
**检查项:**
1. `botId` 是否存在
2. `secret` 是否存在
3. 是否使用了不支持的 `accounts.*` 多账号结构
### 步骤 3:检查插件配置
```bash
grep -A 10 '"plugins"' ~/.openclaw/openclaw.json
```
**常见问题:**
- 插件 ID 不匹配(配置用 `wecom-openclaw-plugin`,实际导出 `wecom`)
- 插件未启用
### 步骤 4:查看日志
```bash
cat /tmp/openclaw/openclaw-$(date +%Y-%m-%d).log | grep -i wecom | tail -20
```
**关键错误:**
- `plugin id mismatch`
- `Invalid WebSocket frame`
- `Authentication failed`
- `not configured`
---
## 修复方案
### 问题 A:插件 ID 不匹配
**症状:**
```
[plugins] plugin id mismatch (config uses "wecom-openclaw-plugin", export uses "wecom")
plugins.entries.wecom: plugin not found: wecom
```
**修复:**
将 `openclaw.json` 中的插件配置从:
```json
{
"plugins": {
"allow": ["wecom-openclaw-plugin"],
"entries": {
"wecom-openclaw-plugin": {"enabled": true}
}
}
}
```
改为:
```json
{
"plugins": {
"allow": ["wecom"],
"entries": {
"wecom": {"enabled": true}
}
}
}
```
**原因:** 企微插件的 `openclaw.plugin.json` 中定义 `id: "wecom"`,但安装包名为 `@wecom/wecom-openclaw-plugin`,配置时应使用导出 ID 而非包名。
---
### 问题 B:多账号模式不支持
**症状:**
```
wecom default: 企业微信机器人 ID 或 Secret 未配置
config reload skipped (invalid config)
```
**当前配置(错误):**
```json
{
"channels": {
"wecom": {
"enabled": true,
"defaultAccount": "main",
"accounts": {
"main": {"botId": "...", "secret": "..."},
"ai-engineer": {"botId": "...", "secret": "..."}
}
}
}
}
```
**修复(回退单账号模式):**
```json
{
"channels": {
"wecom": {
"enabled": true,
"botId": "你的 botId",
"secret": "你的 secret",
"dmPolicy": "pairing"
}
},
"bindings": [
{
"agentId": "main",
"match": {"channel": "wecom", "accountId": "*"}
}
]
}
```
**原因:** 企微插件(v1.0.8)不支持多账号模式,只接受扁平的 `botId`/`secret` 配置。
---
### 问题 C:通道未配置
**症状:**
```
企业微信 default: enabled, not configured, stopped
企业微信机器人 ID 或 Secret 未配置
```
**修复:**
1. 确认已安装企微插件:
```bash
openclaw plugins list | grep wecom
```
2. 配置 botId 和 secret:
```bash
openclaw config set channels.wecom.botId <YOUR_BOT_ID>
openclaw config set channels.wecom.secret <YOUR_SECRET>
openclaw config set channels.wecom.enabled true
```
3. 重启 gateway:
```bash
openclaw gateway restart
```
---
## 完整修复脚本
当用户确认需要修复时,可执行以下操作:
### 1. 备份当前配置
```bash
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.backup.$(date +%Y%m%d%H%M%S)
```
### 2. 修复插件 ID
使用 `edit` 工具将 `wecom-openclaw-plugin` 替换为 `wecom`
### 3. 修复通道配置
如使用多账号模式,回退到单账号扁平结构
### 4. 验证修复
```bash
openclaw channels status 2>&1
openclaw gateway status 2>&1
```
### 5. 测试消息
让用户在企微发送测试消息,确认回复正常
---
## 配置模板
### 单账号模式(推荐,当前插件支持)
```json
{
"channels": {
"wecom": {
"enabled": true,
"botId": "aibXXXXXXXXXXXXXXXXXX",
"secret": "XXXXXXXXXXXXXXXXXXXXXXXX",
"dmPolicy": "pairing",
"allowFrom": [],
"groupPolicy": "open"
}
},
"bindings": [
{
"agentId": "main",
"match": {
"channel": "wecom",
"accountId": "*"
}
}
]
}
```
### 多账号模式(需要插件支持,当前不可用)
```json
{
"channels": {
"wecom": {
"enabled": true,
"defaultAccount": "main",
"accounts": {
"main": {
"botId": "aibXXXXXXXXXXXXXXXXXX",
"secret": "XXXXXXXXXXXXXXXXXXXXXXXX",
"dmPolicy": "pairing"
},
"agent-2": {
"botId": "aibYYYYYYYYYYYYYYYYYY",
"secret": "YYYYYYYYYYYYYYYYYYYYYYYY",
"dmPolicy": "pairing"
}
}
}
},
"bindings": [
{
"agentId": "main",
"match": {"channel": "wecom", "accountId": "main"}
},
{
"agentId": "agent-2",
"match": {"channel": "wecom", "accountId": "agent-2"}
}
]
}
```
> ⚠️ 注意:企微插件 v1.0.8 **不支持**多账号模式,使用上述配置会导致通道无法启动。
---
## 验证清单
修复完成后,确认以下项:
- [ ] `openclaw channels status` 显示 `enabled, configured, running`
- [ ] 日志中无 `plugin id mismatch` 警告
- [ ] 日志中 `Authentication successful`
- [ ] 企微发送测试消息能收到回复
- [ ] WebSocket 心跳正常(日志中每 30s 一次 heartbeat)
---
## 常见问题 FAQ
**Q: 为什么插件 ID 不匹配?**
A: 企微插件的包名是 `@wecom/wecom-openclaw-plugin`,但插件导出的 ID 是 `wecom`。配置时应使用导出 ID。
**Q: 多账号模式什么时候支持?**
A: 需要联系企微插件开发者添加此功能。目前只能使用单账号模式。
**Q: 如何在单账号模式下使用多个 agent?**
A: 可以通过 main 代理转发消息,或使用 Web Dashboard 直接访问不同 agent。
**Q: 配对码在哪里查看?**
A: `openclaw pairing list wecom`
**Q: 如何批准配对?**
A: `openclaw pairing approve wecom <CODE>`
---
## 参考资料
- [企微插件 GitHub](https://github.com/openclaw/wecom-openclaw-plugin)
- [企业微信 AI Bot 文档](https://open.work.weixin.qq.com/help?doc_id=21657)
- [OpenClaw 通道配置文档](https://docs.openclaw.ai/channels)
---
## 注意事项
1. **修改配置前务必备份** `openclaw.json`
2. 修改配置后需要 **重启 gateway** 才能生效
3. 多账号模式需要等待插件更新支持
4. 如修复后仍有问题,查看完整日志:`/tmp/openclaw/openclaw-YYYY-MM-DD.log`
在使用技能包之前做安全扫描,并按结论决定放行或拦截的技能。
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
备份与恢复 OpenClaw 配置、凭据与工作区的技能。
配置并使用 1Password CLI 处理密钥。
一款被描述为可检测提示注入与危险命令的 OpenClaw 安全插件。
远程控制 tmux 会话,向交互式命令行发送按键并抓取输出。
以应用安全工程师视角做代码与架构的安全审计。
管理腾讯云对象存储与数据万象的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。