OpenClaw安装(linux、macOS)接入微信
一、Linux系统 、macOS系统1. 依赖软件 nodeJs 安装 22版本 注意centos版本8# 1. 安装NVM curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash source ~/.bash_profile # 安装nodeJS nvm install 24.14.0 nvm use 24.14.0 node -v # 22.xx 才可以满足需要 npm -v # 10.xx 才可以满足需要2. 一键安装OpenClaw安装脚本会检测nodejs 和 git, 如果没有安装会自动安装依赖# 切换国内npm镜像源 npm install -g nrm nrm ls nrm use cnpm # 一键自动安装openclaw curl -fsSL https://openclaw.ai/install.sh | bash # 手动安装openclaw npm install -g openclawlatest openclaw onboard --install-daemon3. 配置OpenClaw 可以参考上一篇文章openclaw-配置二、OpenClaw接入飞书参考接入飞书三、接入微信必须已经注册完成企业微信用户本地PC机器打开远程云服务器openclaw工作台本地机器和访问原创云服务器ssh -N -L 18789:127.0.0.1:18789 rootx.x.x.x PS C:\Users\Administrator\ ssh -N -L 18789:127.0.0.1:18789 rootx.x.x.x The authenticity of host x.x.x.x (x.x.x.x) cant be established. ED25519 key fingerprint is SHA256:tEH4CwIYij3ib3FHm9yCqkxxsD4vrSYX4aw4wNWmU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added x.x.x.x (ED25519) to the list of known hosts. rootx.x.x.xs password:在本地浏览器访问远程openclaw 工作台 http://127.0.0.1:18789/c在企业微信管理后台创建应用信息完善完成应用信息、选择部分成员可见应用配置API 接受消息配置配置Openclaw 服务器后才可以正常保存应用否则会出现提示如下openclaw 云服务器插件安装与配置完成后才可以继续配置企业微信下一个阶段进入服务器配置四 、Openclaw 服务器企业微信插件安装与配置openclaw plugins install openclaw-china/wecom-app # 插件安装成功后 01:08:22 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes 01:08:22 [plugins] feishu_chat: Registered feishu_chat tool 01:08:22 [plugins] feishu_wiki: Registered feishu_wiki tool 01:08:22 [plugins] feishu_drive: Registered feishu_drive tool 01:08:22 [plugins] feishu_bitable: Registered bitable tools 01:08:24 [plugins] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 01:08:24 [plugins] OpenClaw China Channels 已就绪! 01:08:24 [plugins] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 01:08:24 [plugins] 01:08:24 [plugins] 项目仓库: 01:08:24 [plugins] https://github.com/BytePioneer-AI/openclaw-china 01:08:24 [plugins] 01:08:24 [plugins] ? 如果这个项目对你有帮助请给我们一个 Star? 01:08:24 [plugins] 01:08:24 [plugins] 下一步配置引导: 01:08:24 [plugins] 1. 运行交互式配置向导 01:08:24 [plugins] openclaw china setup 01:08:24 [plugins] 2. 按提示填写渠道凭据并保存配置 01:08:24 [plugins] 3. 启动网关并观察日志 01:08:24 [plugins] openclaw gateway --port 18789 --verbose # 配置引导 openclaw china setup配置 Wecom App token(从企业微信api消息配置copy)配置 Wecom App encodingAESKey(从企业微信api消息配置copy)配置corpId:从我的企业里找企业ID配置corpSecret: 在我的机器人应用里会发送到企业微信配置agentId: 在我的机器人应用里启用ASK: NO继续配置其他渠道NO修改一个openclaw网络配置openclaw config set gateway.bin lan这里回到上面企业微信 【API接受消息配置】现在可以正常保存不会报错了在企业微信后台应用管理配置企业可信IP