at #getUrl (C:\Users\Administrator\AppData\Roaming\npm\node_modules\openclaw\node_modules\undici\lib\dispatcher\proxy-agent.js:231:14)
at new ProxyAgent (C:\Users\Administrator\AppData\Roaming\npm\node_modules\openclaw\node_modules\undici\lib\dispatcher\proxy-agent.js:109:29)
at new EnvHttpProxyAgent (C:\Users\Administrator\AppData\Roaming\npm\node_modules\openclaw\node_modules\undici\lib\dispatcher\env-http-proxy-agent.js:28:31)
at file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/http-proxy.js:11:29
复制代码
解决办法(1):
# powershell 命令
$env:HTTP_PROXY = ""
$env:HTTPS_PROXY = ""
复制代码
(2)Gateway 无法访问(127.0.0.1 refused)
原因可能有两类:
Gateway 没启动
端口未开放 / 被占用
正确启动方式:
openclaw gateway
复制代码
然后访问:
http://127.0.0.1:18789
或
http://localhost:18789
(端口可能随配置不同)
若你启用了 dev 模式,端口变为 19001:
openclaw --dev gateway
复制代码
验证安装:
openclaw --version # 需显示2026.x.x及以上版本
复制代码
初始化工作空间:
# 创建工作目录(存储配置、技能与数据)
mkdir ~/OpenClaw-Workspace && cd ~/OpenClaw-Workspace