安装插件 安装插件一般使用npm安装,如果安装失败,则检查网络
1 2 3 4 5 6 7 8 9 10 11 ┘ kewen@DESKTOP-S0UMKGA:~/.openclaw$ npx -y @tencent-weixin/openclaw-weixin-cli@latest install [openclaw-weixin] 已找到本地安装的 openclaw [openclaw-weixin] 检测到 OpenClaw 版本: 2026.3.22 [openclaw-weixin] 匹配兼容版本: 2.0.x (新宿主线) (dist-tag: latest) [openclaw-weixin] 正在安装插件 @tencent-weixin/openclaw-weixin@latest... [openclaw-weixin] 插件安装失败,请手动执行: fetch failed openclaw plugins install "@tencent-weixin/openclaw-weixin@latest"
npm 设置源 npm config set registry https://registry.npmmirror.com
安装微信插件(聊天插件) 1 npx -y @tencent-weixin/openclaw-weixin-cli@latest install
正常如果安装成功,则会出现二维码,微信直接扫描
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 🦞 OpenClaw 2026.3.22 (4dcc39c) — Your AI assistant, now without the $3,499 headset. 22:00:58 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: openclaw-weixin (/home/kewen/.openclaw/extensions/openclaw-weixin/index.ts). Set plugins.allow to explicit trusted ids. 正在启动微信扫码登录... 22:01:17 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: openclaw-weixin (/home/kewen/.openclaw/extensions/openclaw-weixin/index.ts). Set plugins.allow to explicit trusted ids. 使用微信扫描以下二维码,以完成连接: ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █ ▄▄▄▄▄ █ ██▀▀ ▄▄▄▀▀▀▄█▄▄▄▄█▄▀█ ▄▄▄▄▄ █ █ █ █ █ ▀█ ▀▄ ▄▄ █ ▄█▄▀█ █▀█ █ █ █ █ █▄▄▄█ █▀ █▄▀█▄ █ ▀ ▀█▄ ▄▄▄▀█ █▄▄▄█ █ █▄▄▄▄▄▄▄█▄█ ▀▄█ ▀ ▀ ▀ ▀▄█ █ ▀ █▄▄▄▄▄▄▄█ █▄▄█▀ ▄██▀▄█▄▀▄ ▄▀▄▀▄▀▀▄█▀▀ ██▄▀▄ ▄█ ██ ▄█▄▄▄ █▀▄█▀▄▀ ▄▀██ ▀▀▄▀█▀▄█▄▄ █ ▀▄▀█ ██▄███▀▄▄▀▀█▄▀▄ ▀ ▄▄▄▄▄▀▀ █ █ ▄▄▀▀ ▀▄█ █ █▀███▄ ██▄ ▄ ▄▄█ ▀▀▄ ▀ ▀█▀ █ ▄ ▄▀▀▀██ █ ▄▀█▄ ▄ █ █▄ ▀▄ ▄▀▄▄▄▄▀▄▀█ ▀▄▄█▀▀ ▀▄█ █ ▀ ▀▄▄▄ ▄▀█▀█▀ ▄▀▀█ ▀▄ █ ▄█▄▄▀ █▀▀██ █▄▄▄▄ █▄▀▄▀█▄▀▄▄▀ ▄▄▄▄▄▄ ▀▀▄ ▀▄▄ ▀▀ ▄█ █ ▀▄ ▄▄▄▄▀ ▄ ▄ ▄▄█ ▀█▄ █ █▀▄▀▀ ██▄ ▀██ █ ▀█▄▀▀▄▀██▀█▄ ▀ ▀▄▄▄▄▄▄▀▄█▄▀▀█▄█▀█ ▄█ ███▄▄ ▄▄ █▄█▀█▀▄ ▄▀█ ▀ ▀▄ ▄▄▀ ███ ▀██ █▄▄█▄██▄▄▀▄▀▄▀▄▄▀▀▄▄▄▄▄▄▀▄▀█▄ ▄▄▄ ▄███ █ ▄▄▄▄▄ █▀ ▄ ▄ ▄▄▄▀▄▀▀ ▄▄ █▀▀ █▄█ ▄ ███ █ █ █ █▄█▀█▄ ▀▀█▄▄▄▀▄▀ ▄▀█▀▄ ▄▄▀▄▀▀█ █ █▄▄▄█ █▀▀▀█▀█▀▄▄▀██▄▀█▄▄▄█▄▄▀▄ ██ ▀██ █▄▄▄▄▄▄▄█▄▄█▄█▄▄█▄▄▄██▄██▄██▄█▄▄▄▄█▄▄▄█ 如果二维码未能成功展示,请用浏览器打开以下链接扫码: https://liteapp.weixin.qq.com/q/7GiQu1?qrcode=d6f91cab9c14626&bot_type=3 等待连接结果... ✅ 与微信连接成功! Config overwrite: /home/kewen/.openclaw/openclaw.json (sha256 e6f58a1be95a51833268d0c27d4e6a7fde16e39b17b3a5863889332ea92427c7 -> 4e22426e15b74f3a7b89e0c161abf0fc3e22ae67323eb220e5be5631e156d75b, backup=/home/kewen/.openclaw/openclaw.json.bak) [openclaw-weixin] 正在重启 OpenClaw Gateway... 🦞 OpenClaw 2026.3.22 (4dcc39c) — I don't have opinions about tabs vs spaces. I have opinions about everything else. Gateway service disabled. Start with: openclaw gateway install Start with: openclaw gateway Start with: systemctl --user start openclaw-gateway.service
则说明安装完成
安装阿里云百炼(模型插件) 配置,通过json文件配置最方便,控制台可自行研究,比较麻烦
默认替换掉"apiKey": "DASHSCOPE_API_KEY"就可以了,APIkey在百炼平台 获取
其余可以自行对比配置
文件地址:~/.openclaw/openclaw.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 { "meta" : { "lastTouchedVersion" : "2026.2.1" , "lastTouchedAt" : "2026-02-03T08:20:00.000Z" } , "models" : { "mode" : "merge" , "providers" : { "bailian" : { "baseUrl" : "https://dashscope.aliyuncs.com/compatible-mode/v1" , "apiKey" : "DASHSCOPE_API_KEY" , "api" : "openai-completions" , "models" : [ { "id" : "qwen3.5-plus" , "name" : "qwen3.5-plus" , "reasoning" : false , "input" : [ "text" , "image" ] , "contextWindow" : 1000000 , "maxTokens" : 65536 } , { "id" : "qwen3-coder-next" , "name" : "qwen3-coder-next" , "reasoning" : false , "input" : [ "text" ] , "contextWindow" : 262144 , "maxTokens" : 65536 } ] } } } , "agents" : { "defaults" : { "model" : { "primary" : "bailian/qwen3.5-plus" } , "models" : { "bailian/qwen3.5-plus" : { } , "bailian/qwen3-coder-next" : { } } } } , "gateway" : { "mode" : "local" , "auth" : { "mode" : "token" , "token" : "test123" } } }
百炼平台官网 阿里云官网