#如下

1 messages · Page 1 of 1 (latest)

hollow stirrup
#

微信接入openclaw显示安装失败,如下显示,怎么解决:[openclaw-weixin] 已找到本地安装的 openclaw
[openclaw-weixin] 检测到 OpenClaw 版本: 2026.3.8
[openclaw-weixin] 匹配 dist-tag: compat-host-gte2026.3.0-lt2026.3.22
[openclaw-weixin] 正在安装插件 @tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22...
[openclaw-weixin] 插件安装失败,请手动执行:
npm pack failed: npm error code ECONNREFUSED
npm error syscall connect
npm error errno ECONNREFUSED
npm error FetchError: request to https://registry.npmjs.org/@tencent-weixin%2Fopenclaw-weixin failed, reason: connect ECONNREFUSED 127.0.0.1:10809
npm error at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
npm error at ClientRequest.emit (node:events:508:28)
npm error at emitErrorEvent (node:_http_client:108:11)
npm error at _destroy (node:_http_client:963:9)
npm error at onSocketNT (node:_http_client:983:5)
npm error at process.processTicksAndRejections (node:internal/process/task_queues:91:21) {
npm error code: 'ECONNREFUSED',
npm error errno: 'ECONNREFUSED',
npm error syscall: 'connect',
npm error address: '127.0.0.1',
npm error port: 10809,
npm error type: 'system'
npm error }
npm error
npm error If you are behind a proxy, please make sure that the
npm error 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache_logs\2026-04-08T09_07_06_400Z-debug-0.log

openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22"
npm notice
npm notice New minor version of npm available! 11.9.0 -> 11.12.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.1
npm notice To update run: npm install -g npm@11.12.1

fallen ridgeBOT
hollow stirrup
#

中文回答

hollow stirrup
#

@在

#

hollow stirrup
#

您好

#

@quartz edge

hollow stirrup
#

quartz edgeBOT
#

⚠️ Missing API key for provider "openai". Configure the gateway auth for that provider, then try again.

hollow stirrup
#

quartz edgeBOT
#

⚠️ Missing API key for provider "openai". Configure the gateway auth for that provider, then try again.

hollow stirrup
#

quartz edgeBOT
#

看这个报错,不是 OpenClaw 版本不匹配,而是 npm 被配置成走本地代理 127.0.0.1:10809,但这个代理没开

关键报错是这行:

request to https://registry.npmjs.org/... failed, reason: connect ECONNREFUSED 127.0.0.1:10809

先补一条确认版本:

openclaw --version

如果确实是 2026.3.8,那下一步就查/清 npm 代理。

1. 先检查代理配置

#

Windows PowerShell 里执行:

npm config get proxy
npm config get https-proxy
echo $env:HTTP_PROXY
echo $env:HTTPS_PROXY
echo $env:ALL_PROXY

如果输出里有 127.0.0.1:10809,说明命中了残留代理配置。

2. 如果你不需要代理,清掉它

PowerShell:

#
npm config delete proxy
npm config delete https-proxy
Remove-Item Env:HTTP_PROXY -ErrorAction SilentlyContinue
Remove-Item Env:HTTPS_PROXY -ErrorAction SilentlyContinue
Remove-Item Env:ALL_PROXY -ErrorAction SilentlyContinue

如果你之前用 setx 写进系统环境变量了,再执行:

setx HTTP_PROXY ""
setx HTTPS_PROXY ""
setx ALL_PROXY ""

然后关掉当前终端,重新开一个终端

#

3. 如果你就是要走代理

那就先把你本地的代理软件开起来,确认 127.0.0.1:10809 这个端口真的在监听,再重试安装。

4. 重新安装插件

openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22"

5. 如果还不行

把这几个命令的输出贴出来,我继续帮你看:

openclaw --version
npm config get proxy
npm config get https-proxy
npm ping
hollow stirrup
#

PS C:\Users\Administrator> npm config get proxy

npm config get https-proxy
echo $env:HTTP_PROXY
echo $env:HTTPS_PROXY
echo $env:ALL_PROXY
null
null,输出是这个

quartz edgeBOT
#

这就把范围缩小了 👍

npm config get proxy / https-proxy 都是 null,说明当前这个 PowerShell 里没有显式 npm 代理配置
但报错还是去连 127.0.0.1:10809,所以大概率是下面这几种之一:

  1. 别的层在注入代理,比如系统代理 / Clash / v2rayN 之类
  2. 启动 openclaw-weixin 的进程环境 和你现在这个 PowerShell 不一样
  3. 某个更隐蔽的 npm 配置文件里还有代理

127.0.0.1:10809 很像本地代理软件端口。

先试一个最快的绕过办法

直接手动 npm pack,如果成功就用本地 .tgz 安装:

$env:HTTP_PROXY=""
#
$env:HTTPS_PROXY=""
$env:ALL_PROXY=""
npm pack @tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22 --registry https://registry.npmjs.org/

如果这一步成功,会生成一个 .tgz 文件,然后执行:

openclaw plugins install .\生成出来的那个.tgz

OpenClaw 文档里也支持从本地 .tgz 安装插件: https://docs.openclaw.ai/tools/plugin


如果上面还是报 127.0.0.1:10809

#

请再贴这几条输出,我就能继续往下定位了:

openclaw --version
npm config list -l | findstr /i proxy
Get-ChildItem Env: | Where-Object Name -match 'proxy'
netsh winhttp show proxy
Test-NetConnection 127.0.0.1 -Port 10809

额外建议

如果你机器上装了 Clash / v2rayN / 其他代理软件,先看下它是不是:

  • 开了系统代理
  • 但本地代理程序没启动
  • 或端口不是 10809

如果你把上面几条输出贴出来,我可以直接帮你判断是哪一层在塞这个代理。

hollow stirrup
#

执行openclaw plugins install .\生成出来的那个.tgz后,出现这个Path not found: C:\Users\Administrator\生成出来的那个.tgz

quartz edgeBOT
#

对,这里卡住只是因为你把占位符原样复制了 😅

生成出来的那个.tgz 不是固定文件名,要换成 npm pack 真正输出的文件名

按这个顺序来

npm pack @tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22 --registry https://registry.npmjs.org/
dir *.tgz

第二条会列出当前目录下真实生成的 .tgz 文件,比如可能像这样:

tencent-weixin-openclaw-weixin-xxx.tgz
#

然后用真实文件名安装:

openclaw plugins install .\真实文件名.tgz

比如如果 dir *.tgz 显示的是:

tencent-weixin-openclaw-weixin-1.2.3.tgz

那就执行:

openclaw plugins install .\tencent-weixin-openclaw-weixin-1.2.3.tgz
#

更省事的 PowerShell 写法

如果当前目录里只有一个 .tgz,可以直接:

$tgz = (Get-ChildItem *.tgz | Select-Object -First 1).FullName
openclaw plugins install $tgz

如果 dir *.tgz 什么都没有

那说明 npm pack 实际上还是没成功。
这种情况下,把 npm pack ... 的完整输出 贴出来,我继续帮你看。

如果这次装好了,也记得右键解决消息 → Apps → ✅ Mark Solution,方便后面的人搜到。

hollow stirrup
#

是这样,我之前开了v2rayn的代理,因为我需要开代理,现在关掉,执行这个

4. 重新安装插件

openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22"

就可以了

quartz edgeBOT
#

那就对上了,根因就是 v2rayN 的本地代理端口被 npm 命中了,但当时代理链路不可用

现在这个结论基本可以定了:

  • 关掉代理后能装成功
  • 所以不是 OpenClaw 版本问题
  • 也不是插件包本身有问题
  • 就是 代理配置 / 代理软件状态 导致 npmregistry.npmjs.org 失败

如果你后面还需要开代理,比较稳的做法是二选一:

  1. 装插件时临时关代理
  2. 确认 v2rayN 正在运行,且对应端口真的可用

Glad that helped! 🎉
如果这次已经解决了,请 右键解决消息 → Apps → ✅ Mark Solution,这样 Answer Overflow 会把方案收录,后面的人就能直接搜到了。

hollow stirrup
#

不过刚刚不小心粘贴执行这个命令,```powershell
npm config delete proxy
npm config delete https-proxy
Remove-Item Env:HTTP_PROXY -ErrorAction SilentlyContinue
Remove-Item Env:HTTPS_PROXY -ErrorAction SilentlyContinue
Remove-Item Env:ALL_PROXY -ErrorAction SilentlyContinue

会不会导致我的discord接入openclaw失效了
quartz edgeBOT
#

一般不会

你刚才那几条命令做的事情是:

  • npm config delete proxy / https-proxy
    • 只是在删 npm 自己的代理配置
  • Remove-Item Env:HTTP_PROXY / HTTPS_PROXY / ALL_PROXY
    • 只是在清 当前这个 PowerShell 窗口 的环境变量

它们不会动到这些东西:

  • Discord bot token
  • OpenClaw 的 pairing
  • OpenClaw 的 Discord 配置本身

所以正常来说,不会直接让 Discord 接入失效

#

只有一种情况要注意

如果你之前的 OpenClaw / Discord 出网就是依赖这个代理,那你之后重启 gateway 时,可能会因为没代理而连不上 Discord。

但这也不是“接入失效”,而是“重启后没有代理可用了”。

更稳的做法

如果 Discord 确实需要代理,不要靠 npm 代理,应该配 OpenClaw 自己的 Discord 代理配置。文档里对应的是:

  • channels.discord.proxy
  • channels.discord.accounts.<id>.proxy

文档: https://docs.openclaw.ai/channels/discord

你现在可以怎么确认

最简单就是:

  1. 先别重启 OpenClaw
#
  1. 给你的 Discord bot 发一条测试消息
  2. 如果还能正常回复,就说明没受影响

如果你愿意,我也可以下一条直接给你一份 Discord 代理配置示例

hollow stirrup
#

关掉代理后,安装出现这个 npx -y @tencent-weixin/openclaw-weixin-cli@latest install
[openclaw-weixin] 已找到本地安装的 openclaw
[openclaw-weixin] 检测到 OpenClaw 版本: 2026.3.8
[openclaw-weixin] 匹配 dist-tag: compat-host-gte2026.3.0-lt2026.3.22
[openclaw-weixin] 正在安装插件 @tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22...
[openclaw-weixin] 插件安装失败,请手动执行:
npm install failed:

quartz edgeBOT
#

这个信息说明得还不够,npx -y @tencent-weixin/openclaw-weixin-cli@latest install 只是个包装器,现在它只把里面的真实错误压成了:

npm install failed:

所以这一步别盯着 npx ... install 了,直接用 OpenClaw 原生命令 看真实结果。

先这样做

openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22"

分两种情况

1) 如果这条命令成功

那就说明插件其实已经装好了npx ... install 可以不用管了。

#

接着验证一下:

openclaw plugins list | findstr /i weixin

能看到 weixin 相关条目,就继续:

openclaw gateway restart

2) 如果这条命令失败

请把这条命令的完整输出贴出来。
另外再跑一条:

#
openclaw plugins doctor

一句话版:
不要再用 npx ... install 判断结果了,直接看 openclaw plugins install ... 的输出。
如果你把那条命令的完整输出贴出来,我就能继续往下定位。

hollow stirrup
#

那要开代理吗

quartz edgeBOT
#

现在这一步我建议先不要开代理。

原因很简单:

  • 你前面的报错就是 代理导致 npm 连不上
  • 至少目前看,不开代理更稳
  • 先把插件安装完成,再决定要不要给其他渠道单独配代理

我的建议

先保持代理关闭,直接执行:

openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22"

什么时候才需要开代理?

只有两种情况才考虑开:

#
  1. 你的机器直连 npmjs.org 不通
  2. 你后面某个渠道,比如 Discord,确实需要代理才能出网

但就你这个问题本身,不要先开代理
因为你之前那个 127.0.0.1:10809 已经证明,当前代理链路是不稳定/没配好的。

结论

  • 安装微信插件这一步:先关代理
  • 装完再说
  • 如果直连安装还是失败,再把 openclaw plugins install ... 的完整输出贴出来

你先按“关代理 + 直接跑 openclaw plugins install ...”试一下,这个是当前最稳的路线。

hollow stirrup
#

还是不行,执行第一条命令,出现这个Downloading @tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22…
Extracting C:\Users\Administrator\AppData\Local\Temp\openclaw-npm-pack-6X2GJz\tencent-weixin-openclaw-weixin-1.0.3.tgz…
WARNING: Plugin "openclaw-weixin" contains dangerous code patterns: Environment variable access combined with network send — possible credential harvesting (C:\Users\Administrator\AppData\Local\Temp\openclaw-plugin-ZMoFxt\extract\package\src\messaging\process-message.ts:428)
Installing to C:\Users\Administrator.openclaw\extensions\openclaw-weixin…
Installing plugin dependencies…
npm install failed:

quartz edgeBOT
#

别开代理

现在信息更清楚了:

  • Downloading ... 成功
  • Extracting ... 成功
  • 那个 WARNING: dangerous code patterns 只是警告,不是这次真正拦住安装的原因
  • 真正卡住的是这一步: Installing plugin dependencies… npm install failed:

也就是说,插件包已经下来了,卡在依赖安装阶段

下一步最有用,先看 npm 的真实日志

请直接执行这条,把最新 npm 日志最后 120 行贴出来:

Get-Content (Get-ChildItem "$env:LOCALAPPDATA\npm-cache\_logs\*.log" | Sort-Object LastWriteTime -Descending | Select-Object -First 1).FullName -Tail 120
#

再做一个脱离 OpenClaw 的纯 npm 测试

这个插件我看了,依赖就两个,先单独装一下看 npm 本身通不通:

mkdir $env:TEMP\owx-test -Force
cd $env:TEMP\owx-test
npm init -y
npm install zod@4.3.6 qrcode-terminal@0.12.0

这两步能帮我们立刻分流

  • 如果第二步也失败,那就是 npm/网络/代理残留问题
  • 如果第二步成功,但 openclaw plugins install ... 还是失败,那就更像是 OpenClaw 插件安装流程在 Windows 上的特定问题

把这两段输出贴出来,我就能继续往下判断。

hollow stirrup
#

第一步执行结果这样,PS C:\Users\Administrator> Get-Content (Get-ChildItem "$env:LOCALAPPDATA\npm-cache_logs*.log" | Sort-Object LastWriteTime -Descending | Select-Object -First 1).FullName -Tail 120
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@11.9.0
2 info using node@v24.14.0
3 silly config load:file:C:\Program Files\nodejs\node_modules\npm\npmrc
4 silly config load:file:C:\Users\Administrator.openclaw\extensions.openclaw-install-stage-O4ZVnF.npmrc
5 silly config load:file:C:\Users\Administrator.npmrc
6 silly config load:file:C:\Users\Administrator\AppData\Roaming\npm\etc\npmrc
7 verbose title npm install
8 verbose argv "install" "--omit" "dev" "--omit" "peer" "--loglevel" "silent" "--ignore-scripts"
9 verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache_logs\2026-04-10T07_20_15_621Z-
10 verbose logfile C:\Users\Administrator\AppData\Local\npm-cache_logs\2026-04-10T07_20_15_621Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly packumentCache heap:4496293888 maxSize:1124073472 maxEntrySize:562036736
13 silly logfile done cleaning log files
14 silly idealTree buildDeps
15 silly fetch manifest qrcode-terminal@0.12.0
16 silly packumentCache full:https://registry.npmjs.org/qrcode-terminal cache-miss
17 http fetch GET https://registry.npmjs.org/qrcode-terminal attempt 1 failed with ECONNREFUSED
18 http fetch GET https://registry.npmjs.org/qrcode-terminal attempt 2 failed with ECONNREFUSED
19 http fetch GET https://registry.npmjs.org/qrcode-terminal attempt 3 failed with ECONNREFUSED
20 http fetch GET 200 https://registry.npmjs.org/qrcode-terminal 70075ms (cache stale)

#

21 silly packumentCache full:https://registry.npmjs.org/qrcode-terminal set size:29799 disposed:false
22 silly fetch manifest zod@4.3.6
23 silly packumentCache full:https://registry.npmjs.org/zod cache-miss
24 http fetch GET https://registry.npmjs.org/zod attempt 1 failed with ECONNREFUSED
25 http fetch GET https://registry.npmjs.org/zod attempt 2 failed with ECONNREFUSED
26 http fetch GET https://registry.npmjs.org/zod attempt 3 failed with ECONNREFUSED
27 http fetch GET 200 https://registry.npmjs.org/zod 70048ms (cache stale)
28 silly packumentCache full:https://registry.npmjs.org/zod set size:3489329 disposed:false
29 silly fetch manifest @vitest/coverage-v8@^3.1.0
30 silly packumentCache full:https://registry.npmjs.org/@vitest%2Fcoverage-v8 cache-miss
31 http fetch GET https://registry.npmjs.org/@vitest%2Fcoverage-v8 attempt 1 failed with ECONNREFUSED
32 http fetch GET https://registry.npmjs.org/@vitest%2Fcoverage-v8 attempt 2 failed with ECONNREFUSED
33 http fetch GET https://registry.npmjs.org/@vitest%2Fcoverage-v8 attempt 3 failed with ECONNREFUSED
34 silly fetch manifest typescript@^5.8.0
35 silly packumentCache full:https://registry.npmjs.org/typescript cache-miss
36 http fetch GET https://registry.npmjs.org/typescript attempt 1 failed with ECONNREFUSED
37 http fetch GET https://registry.npmjs.org/typescript attempt 2 failed with ECONNREFUSED
38 http fetch GET https://registry.npmjs.org/typescript attempt 3 failed with ECONNREFUSED
39 http fetch GET 200 https://registry.npmjs.org/typescript 70074ms (cache stale)
40 silly packumentCache full:https://registry.npmjs.org/typescript set size:15399465 disposed:false
41 silly fetch manifest vitest@^3.1.0
42 silly packumentCache full:https://registry.npmjs.org/vitest cache-miss
43 http fetch GET https://registry.npmjs.org/vitest attempt 1 failed with ECONNREFUSED
44 http fetch GET https://registry.npmjs.org/vitest attempt 2 failed with ECONNREFUSED

quartz edgeBOT
#

这个日志已经把问题指向得很清楚了。

现在的阻塞点不是 OpenClaw 本身,也不是那个 warning,而是 npm 在拉插件依赖时访问 registry.npmjs.org 很不稳定:

  • qrcode-terminal@0.12.0 连续 3 次 ECONNREFUSED
  • 之后又拖了 70 秒 才拿到响应

所以我现在更建议你别折腾那个本地代理端口了,直接换一个稳定的 npm 源试一下。

先这样做

npm config set registry https://registry.npmmirror.com
openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22"

如果成功了

再验证一下:

#
openclaw plugins list | findstr /i weixin
openclaw gateway restart

如果你之后想切回官方 npm 源

npm config delete registry

如果换源后还是失败

请再跑这一条,把完整输出贴出来:

npm install zod@4.3.6 qrcode-terminal@0.12.0 --registry=https://registry.npmmirror.com
#

这个只是在测 npm 依赖下载,不影响你的 Discord pairing/token。
我现在最怀疑的就是 你本机到 npm 官方源的链路不稳定

#

这段日志已经基本坐实了,问题还是你机器到 registry.npmjs.org 的网络链路不稳定

关键信号很明显:

  • 每个包都先连续 ECONNREFUSED
  • 然后有的包要拖 70 秒 才勉强拿到响应
  • 插件安装要拉多个依赖,所以最后整体失败了

所以现在最直接的处理,不是继续折腾 OpenClaw,而是:

保持代理关闭,先切 npm 源

npm config set registry https://registry.npmmirror.com
npm config get registry

第二条应该输出:

#
https://registry.npmmirror.com/

然后重新安装插件

openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22"

如果装好了

openclaw gateway restart

如果以后想切回官方源

#
npm config delete registry

如果你切完源后还是不行,把这两条输出贴出来我继续看:

npm config get registry
openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22"

现在这一步我挺确定,不是 OpenClaw 配置错了,是 npm 官方源访问不稳

hollow stirrup
#

装好了,也切回官方源了,然后呢,怎么接入微信

quartz edgeBOT
#

好,装好就简单多了 🎉

接微信按这个顺序来:

1. 启用插件

openclaw config set plugins.entries.openclaw-weixin.enabled true

2. 扫码登录微信

openclaw channels login --channel openclaw-weixin

这一步终端会出二维码,用你的微信扫码并在手机上确认。

3. 重启 Gateway

#
openclaw gateway restart

4. 测试

现在用微信给这个 bot 发消息试一下。


如果微信里第一次发消息后出现 pairing code

那就再批准一下:

openclaw pairing list openclaw-weixin
openclaw pairing approve openclaw-weixin <CODE>
hollow stirrup
#

扫码登录微信失败,出现这个PS C:\Users\Administrator\AppData\Local\Temp\owx-test> openclaw channels login --channel openclaw-weixin
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)

🦞 OpenClaw 2026.3.8 (3caab92) — Your config is valid, your assumptions are not.

|
o Config warnings --------------------------------------------------------------------------+
| |
| - plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry |
| ignored; remove it from plugins config) |
| |
+--------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Channel login failed: Error: Unsupported channel: openclaw-weixin

quartz edgeBOT
#

这次不是“扫码失败”,而是 OpenClaw 根本没识别到微信插件

关键在这两句:

plugin not found: openclaw-weixin
Unsupported channel: openclaw-weixin

也就是说,当前运行的 OpenClaw 看不到这个插件,所以后面的 channels login 当然也跑不起来。

先别扫码了,先验证插件是不是真的在

先执行:

openclaw plugins list | findstr /i weixin
#

如果这条没有任何输出

说明插件其实还没被正确安装进 OpenClaw。
那就直接强制重装一次:

openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22" --force
openclaw plugins list | findstr /i weixin

如果这条能看到 weixin

再继续:

openclaw config set plugins.entries.openclaw-weixin.enabled true
openclaw channels login --channel openclaw-weixin
#

如果 --force 重装后还是看不到

再贴这两条输出:

openclaw plugins list
openclaw plugins doctor

一句话总结:
先确认插件被 OpenClaw 识别到了,再去扫码。
现在卡的不是微信登录,是插件没有真正进入可加载状态。

hollow stirrup
#

PS C:\Users\Administrator\AppData\Local\Temp\owx-test> openclaw plugins list | findstr /i weixin
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
| - plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin |
FINDSTR: 行 12 太长。

quartz edgeBOT
#

findstr 这个报错先不用管,真正的信息还是前面那句:

plugin not found: openclaw-weixin

所以结论没变,插件当前还是没被 OpenClaw 识别到

先别用 findstr 了,直接查插件目录

先执行:

cd $env:USERPROFILE
dir .\.openclaw\extensions

看看里面有没有一个目录叫:

#
openclaw-weixin

分两种情况

1) 如果 没有 openclaw-weixin

那就是插件根本没真正装进去。直接重装:

openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22" --force
dir .\.openclaw\extensions

2) 如果 openclaw-weixin

#

那就是“文件在,但 OpenClaw 没加载到”。这时再执行:

openclaw plugins doctor

把输出贴出来。


你现在最需要贴的,不是 findstr

而是下面这两条的输出:

dir $env:USERPROFILE\.openclaw\extensions
openclaw plugins doctor
#

我们先确认是:

  • 安装没落地
    还是
  • 插件在磁盘上,但加载失败

这两种处理方式不一样。

hollow stirrup
#

PS C:\Users\Administrator\AppData\Local\Temp\owx-test> cd $env:USERPROFILE

dir ..openclaw\extensions
PS C:\Users\Administrator> cd $env:USERPROFILE
dir ..openclaw\extensions
PS C:\Users\Administrator> openclaw plugins install "@tencent-weixin/openclaw-weixin@compat-host-gte2026.3.0-lt2026.3.22" --force
dir ..openclaw\extensions
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
error: unknown option '--force'

quartz edgeBOT
#

抱歉,--force 是我这边说快了,你这个 2026.3.8 版本不支持这个参数

而且你现在这个状态明显是 残留了一个 stale config entry,但插件本体没被正常识别
最稳的做法是按旧版本兼容线重新装一次

你现在直接按这个顺序做

npm config set registry https://registry.npmmirror.com
openclaw plugins uninstall @tencent-weixin/openclaw-weixin
openclaw plugins install @tencent-weixin/openclaw-weixin@legacy
openclaw config set plugins.entries.openclaw-weixin.enabled true
openclaw channels login --channel openclaw-weixin

为什么改成 @legacy

这个插件 README 里写了,OpenClaw < 2026.3.22 走的是 1.0.x / legacy 这条线。

#

你现在是 2026.3.8,正好在这个范围里。

插件说明: https://www.npmjs.com/package/@tencent-weixin/openclaw-weixin

如果扫码成功了

再执行:

openclaw gateway restart
npm config delete registry

如果某一步又报错

只贴报错那一步的完整输出就行,不用整串都贴。
我觉得现在这条路线是最对的。

hollow stirrup
#

还是报错,Channel login failed: Error: Unsupported channel: openclaw-weixin

quartz edgeBOT
#

先别继续试 channels login 了。
Unsupported channel: openclaw-weixin 只说明“插件还是没被加载到”,但它本身不告诉我们为什么。

现在最关键的是拿到插件诊断,不然只能猜。

只跑这两条,然后把完整输出贴出来

openclaw plugins doctor
dir $env:USERPROFILE\.openclaw\extensions

如果第二条里有 openclaw-weixin 目录,但 doctor 还是报找不到,那就是插件落盘了但加载失败
如果第二条里压根没有 openclaw-weixin,那就是安装根本没落盘成功

现在这一步已经不是微信扫码问题了,而是 OpenClaw 没把微信插件加载起来
把这两条输出贴出来,我就能继续往下拆。

hollow stirrup
#

PS C:\Users\Administrator> openclaw plugins doctor

dir $env:USERPROFILE.openclaw\extensions
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)

🦞 OpenClaw 2026.3.8 (3caab92) — Half butler, half debugger, full crustacean.

|
o Config warnings --------------------------------------------------------------------------+
| |
| - plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry |
| ignored; remove it from plugins config) |
| |
+--------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.openclaw-weixin: plugin not found: openclaw-weixin (stale config entry ignored; remove it from plugins config)
No plugin issues detected.

quartz edgeBOT
#

这个输出其实已经说明一件事了:

  • plugins doctor 只看到 stale config entry
  • 同时还说 No plugin issues detected
  • 这通常意味着 插件根本没装进去 / 没落盘成功,而不是“装上了但加载失败”

所以现在别再试 channels login 了,那个报错只是结果,不是原因。

现在请只做一件事

单独执行下面这条安装命令,不要和别的命令连在一起,不要再加 >> dir ...,然后把完整输出贴出来。

先临时切回镜像源:

npm config set registry https://registry.npmmirror.com
#

然后只执行这一条:

openclaw plugins install @tencent-weixin/openclaw-weixin@legacy

关键点

我现在最需要看到的是这条命令从第一行到最后一行的完整输出
因为目前能确定的只有一件事:

Unsupported channel: openclaw-weixin = 插件现在依然不存在于 OpenClaw 的已加载插件里

等你把这条安装命令的完整输出贴出来,我就能继续判断是:

  • 安装过程又卡在 npm
  • 安装成功但没写入
  • 还是 2026.3.8 这条线有兼容性问题
#

就先发这一条命令的完整输出,别混别的输出。

hollow stirrup
#

我觉得应该是openclaw版本3.8太低了,升级不知道可不可以

quartz edgeBOT
#

对,我现在也更倾向于这个判断。

升级是很值得试的,而且我会优先推荐这么做。

原因很简单:

  • 你现在是 2026.3.8
  • 微信插件的 新版本线要求 >= 2026.3.22
  • 你现在一直卡在旧兼容线,已经出现了“装上去但识别不到 / stale config”这种怪情况

与其继续折腾 legacy 兼容线,不如直接升到新版本,再走当前维护中的插件版本

我建议你这样做

先预览一下更新,不放心的话先 dry run:

#
openclaw update --dry-run

如果没问题,直接更新:

openclaw update

更新后再跑:

openclaw doctor
openclaw gateway restart
openclaw --version
#

升级后再装微信插件

升级到 >= 2026.3.22 后,直接装当前版本线:

openclaw plugins install @tencent-weixin/openclaw-weixin
openclaw config set plugins.entries.openclaw-weixin.enabled true
openclaw channels login --channel openclaw-weixin

我的建议

如果你现在不急着保守排查,直接升级是最省时间的路线

参考文档:

如果你愿意,升级完把这两条输出贴出来,我可以直接接着帮你走下一步: