OpenClaw接入企业微信
OpenClaw是一个强大的AI助手框架,可以运行在各种通信平台中。将其接入企业微信后,能够实现工作智能化、自动化通知、数据表格处理等多种应用场景。企业员工可以直接在工作群中与AI助手交互,提升工作效率。
本文将详细介绍如何将OpenClaw接入企业微信,提供完整的操作接入指南。
前置准备工作
在开始接入之前,请确保完成以下准备工作:
- 安装好企业微信并注册登录
- 部署好OpenClaw,可以看我另一篇博文有介绍如何安装。
注册企业微信
官方下载并安装企业微信,注册登录,这里按提示操作,不多做说明。 官方地址:https://work.weixin.qq.com/
创建智能机器人
打开企业微信,找到工作台,点击智能机器人,创建智能机器人。
机器人创建成功后,在页面中找到”botId”和”secret”两个参数。后续配置需要使用这些信息。

创建好机器人后,消息列表,会看到新建的openclaw机器人已被添加到消息列表中。
安装企业微信机器人插件
安装命令如下openclaw plugins install @wecom/wecom-openclaw-plugin如果已安装则更新企业微信插件命令openclaw plugins update wecom-openclaw-plugin重启网关openclaw gateway restart
通道配置(配置机器人botId和secret)
在”openclaw.json”配置文件中找到”Channel配置”,配置如下。
配置完后重启网关服务。
说明: OpenClaw支持同一台服务器配置多个通道。如当前服务器已经接入了其他通道(如飞书机器人),可以继续添加更多通道,看下面的完整配置,我配置了飞书、QQ、企业微信。
在企业微信中与智能机器人互动
完成通道配置后,就可以在手机企业微信或电脑版企业微信上与已接入OpenClaw机器人进行聊天了。第一次聊天需要配对,会提示配对码
执行命令配对openclaw pairing approve wecom YU*****

与机器人聊天会产生一个专门的会话session
如果机器人能够以AI的方式对话,说明接入成功。
企业微信上使用openclaw操作文档请看说明: https://work.weixin.qq.com/nl/act/p/a7f3ca5679c9419d?invitesource=19&invitechannel=6&inviteolduser=1&inviteridentity=2&platform=win&version=5.0.7.6005&vid=1688851221727630&logintype=none
openclaw.json完整配置
{"meta":{"lastTouchedVersion":"2026.4.1","lastTouchedAt":"2026-04-02T01:25:49.167Z"},"wizard":{"lastRunAt":"2026-03-09T02:43:41.787Z","lastRunVersion":"2026.3.2","lastRunCommand":"configure","lastRunMode":"local"},"browser":{"enabled":true},"auth":{"profiles":{"zai:default":{"provider":"zai","mode":"api_key"},"minimax-cn:default":{"provider":"minimax-cn","mode":"api_key"}}},"models":{"mode":"merge","providers":{"zai":{"baseUrl":"https://open.bigmodel.cn/api/coding/paas/v4","api":"openai-completions","models":[{"id":"glm-5","name":"GLM-5","reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":204800,"maxTokens":131072},{"id":"glm-4.7","name":"GLM-4.7","reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":204800,"maxTokens":131072},{"id":"glm-4.7-flash","name":"GLM-4.7 Flash","reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":204800,"maxTokens":131072},{"id":"glm-4.7-flashx","name":"GLM-4.7 FlashX","reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":204800,"maxTokens":131072}]},"minimax-cn":{"baseUrl":"https://api.minimaxi.com/anthropic","api":"anthropic-messages","authHeader":true,"models":[{"id":"MiniMax-M2.5","name":"MiniMax M2.5","reasoning":true,"input":["text"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.03,"cacheWrite":0.12},"contextWindow":200000,"maxTokens":8192}]}}},"agents":{"defaults":{"model":{"primary":"zai/glm-4.7","fallbacks":["minimax-cn/MiniMax-M2.5","zai/glm-5"]},"models":{"zai/glm-5":{"alias":"GLM"},"zai/glm-4.7":{},"minimax-cn/MiniMax-M2.5":{"alias":"Minimax"}},"compaction":{"mode":"safeguard"},"maxConcurrent":4,"subagents":{"maxConcurrent":8}},"list":[{"id":"main","default":true,"name":"Main","workspace":"C:\\Users\\admin\\.openclaw\\workspace","model":"zai/glm-4.7"},{"id":"dev-engineer","name":"Dev Engineer","workspace":"C:\\Users\\admin\\.openclaw\\workspace-dev-engineer","agentDir":"C:\\Users\\admin\\.openclaw\\agents\\dev-engineer\\agent","model":"zai/glm-4.7"},{"id":"product-manager","name":"Product Manager","workspace":"C:\\Users\\admin\\.openclaw\\workspace-product-manager","agentDir":"C:\\Users\\admin\\.openclaw\\agents\\product-manager\\agent","model":"zai/glm-4.7"},{"id":"architect","name":"Architect","workspace":"C:\\Users\\admin\\.openclaw\\workspace-architect","agentDir":"C:\\Users\\admin\\.openclaw\\agents\\architect\\agent","model":"zai/glm-4.7"},{"id":"project-manager","name":"Project Manager","workspace":"C:\\Users\\admin\\.openclaw\\workspace-project-manager","agentDir":"C:\\Users\\admin\\.openclaw\\agents\\project-manager\\agent","model":"minimax-cn/MiniMax-M2.5"},{"id":"test-engineer","name":"Test Engineer","workspace":"C:\\Users\\admin\\.openclaw\\workspace-test-engineer","agentDir":"C:\\Users\\admin\\.openclaw\\agents\\test-engineer\\agent","model":"zai/glm-4.7"},{"id":"tech-blog-writer","name":"Tech Blog Writer","workspace":"C:\\Users\\admin\\.openclaw\\workspace-tech-blog-writer","agentDir":"C:\\Users\\admin\\.openclaw\\agents\\tech-blog-writer\\agent","model":"zai/glm-4.7"},{"id":"tech-blog-analyzer","name":"Tech Blog Analyzer","workspace":"C:\\Users\\admin\\.openclaw\\workspace-tech-blog-analyzer","agentDir":"C:\\Users\\admin\\.openclaw\\agents\\tech-blog-analyzer\\agent","model":"zai/glm-4.7"}]},"tools":{"alsoAllow":["wecom_mcp"],"agentToAgent":{"enabled":true,"allow":["main","dev-engineer","product-manager","architect","project-manager","test-engineer","tech-blog-writer","tech-blog-analyzer"]}},"bindings":[{"agentId":"main","match":{"channel":"feishu","accountId":"main"}},{"agentId":"product-manager","match":{"channel":"feishu","accountId":"product-manager"}},{"agentId":"project-manager","match":{"channel":"feishu","accountId":"project-manager"}},{"agentId":"architect","match":{"channel":"feishu","accountId":"architect"}},{"agentId":"dev-engineer","match":{"channel":"feishu","accountId":"dev-engineer"}},{"agentId":"test-engineer","match":{"channel":"qqbot","accountId":"test-engineer"}},{"agentId":"tech-blog-writer","match":{"channel":"qqbot","accountId":"qqbot:c2c:326C544E59690EB7D4D3680FCE0B3FCD"}},{"agentId":"tech-blog-analyzer","match":{"channel":"qqbot","accountId":"qqbot:c2c:326C544E59690EB7D4D3680FCE0B3FCD"}}],"messages":{"ackReactionScope":"group-mentions"},"commands":{"native":"auto","nativeSkills":"auto","restart":true,"ownerDisplay":"raw"},"session":{"dmScope":"per-channel-peer"},"hooks":{"internal":{"enabled":true,"entries":{"boot-md":{"enabled":true},"bootstrap-extra-files":{"enabled":true},"command-logger":{"enabled":true},"session-memory":{"enabled":true}}}},"channels":{"feishu":{"enabled":true,"appId":"cli_a92e*********","appSecret":"hKWPmFqFuWpCb************Jge","domain":"feishu","groupPolicy":"open","dmPolicy":"open","allowFrom":["*"],"streaming":true,"blockStreaming":true},"qqbot":{"enabled":true,"appId":"102***********","clientSecret":"KOTZfmu2BLVg***********wIe1O"},"wecom":{"enabled":true,"botId":"aibqFJSdqu29***********qt8mNtE","secret":"ECPs89XafqmpAcj1****************t7SJkFrEx"}},"gateway":{"port":18789,"mode":"local","bind":"loopback","auth":{"mode":"token","token":"7a026189da7c***********1b2aa01149fdfc93c273"},"tailscale":{"mode":"off","resetOnExit":false},"nodes":{"denyCommands":["camera.snap","camera.clip","screen.record","calendar.add","contacts.add","reminders.add"]}},"skills":{"entries":{"coding-agent":{"enabled":true}}},"plugins":{"allow":["feishu","qqbot","wecom-openclaw-plugin","browser"],"load":{"paths":["C:\\Users\\admin"]},"entries":{"feishu":{"enabled":true},"qqbot":{"enabled":true},"wecom-openclaw-plugin":{"enabled":true},"browser":{"enabled":true}},"installs":{"qqbot":{"source":"npm","spec":"@sliverp/qqbot@latest","installPath":"C:\\Users\\admin\\.openclaw\\extensions\\qqbot","version":"1.6.1","resolvedName":"@sliverp/qqbot","resolvedVersion":"1.6.1","resolvedSpec":"@sliverp/qqbot@1.6.1","integrity":"sha512-8cPcFiWSTWV10wb84waoiNKrxtp0pk6gZ3xZhtI/HsB9tmH/tyIsadkhJYq7w4xyeTzfQDDJHOBCM1JaIUCEmQ==","shasum":"dd78bdb0516adf11599202b3d377e4cfeb235a66","resolvedAt":"2026-04-02T01:23:32.765Z","installedAt":"2026-04-02T01:24:57.472Z"},"wecom-openclaw-plugin":{"source":"npm","spec":"@wecom/wecom-openclaw-plugin","installPath":"C:\\Users\\admin\\.openclaw\\extensions\\wecom-openclaw-plugin","version":"2026.4.1","resolvedName":"@wecom/wecom-openclaw-plugin","resolvedVersion":"2026.4.1","resolvedSpec":"@wecom/wecom-openclaw-plugin@2026.4.1","integrity":"sha512-wD9AxjakWZzf0ffikv7ClGWvKz0C5yLy9eRBUWsA9lKG+Gr6Bl+NBqAH45MU6S6/dOCP6BqU81xgWCr44FzNBA==","shasum":"8fdfe3bc45f3ba58e8f1e96a372070b240a82720","resolvedAt":"2026-04-02T01:25:00.563Z","installedAt":"2026-04-02T01:25:05.634Z"},"feishu":{"source":"npm","spec":"@openclaw/feishu","installPath":"C:\\Users\\admin\\.openclaw\\extensions\\feishu","version":"2026.3.13","resolvedName":"@openclaw/feishu","resolvedVersion":"2026.3.13","resolvedSpec":"@openclaw/feishu@2026.3.13","integrity":"sha512-D5vPkgGZ9lfCQnDFlGrQN6NCSUYRgYW9k7amW3qlm9zBI4Sp+alRZVqLZ4yZ2eCXHjw9RVp/L75wjJ7NBQyfEw==","shasum":"39128ff918f8d3387331818cbe3f8b24a82e4c0d","resolvedAt":"2026-04-02T01:25:07.007Z","installedAt":"2026-04-02T01:25:12.280Z"}}}}
夜雨聆风