惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - ZXJ~佳

openclaw错误之令牌过期 openclaw 常用操作命令 windows部署ruoyiAI应用-nginx配置后台管理端和用户管理端 Windows安装向量数据库weaviate java冒泡排序 layer实现表格大图预览功能 js中Enter切换文本框,方便快捷输入 前端密码加密后端解密保证登录安全 java面试题 mysql8新特性CTE递归实现30天时间日期 Vala之入门篇(二)Vala安装 Vala之入门篇(一)Vala简介 Mybatis—Generator使用教程 JAVA8十大新特性详解 博客主题 nideshop小程序商城部署 Eclipse创建Maven多模块工程Module开发(图文教程) 将博客搬至CSDN
windows10本地部署openclaw
ZXJ~佳 · 2026-03-08 · via 博客园 - ZXJ~佳

本文章主要是自己手动在windows10部署openclaw遇到的问题以及部署步骤总结

1. 前置依赖安装(核心工具:Node.js)

(1)Windows 10/11系统
  1. 管理员模式打开PowerShell,安装Node.js(v24.x稳定版,2026年最优适配):
    # 国内镜像加速,避免下载超时
    iwr -useb https://npmmirror.com/mirrors/node/v24.5.0/node-v24.5.0-x64.msi -OutFile node-install.msi
    Start-Process .\node-install.msi -Wait
  2. 验证安装:
    node --version  # 需显示v24.x.x
    npm --version   # 需显示v10.x.x及以上

    这里特别要注意node版本得是v24以上

  3. 2. OpenClaw核心安装与初始化
  4. 全局安装OpenClaw:
  5. npm install -g openclaw@latest
  6. 第三个需要注意的问题:由于 Windows 下编译`node-llama-cpp` 可能失败,建议使用`--ignore-scripts`跳过本地 LLM 编译(如需本地 LLM 支持,需先安装 Visual Studio Build Tools)
    powershell

    npm install -g openclaw@latest --ignore-scripts
  7. 遇到问题总结(1):

    [openclaw] Unhandled promise rejection: TypeError: Invalid URL
        at new URL (node:internal/url:826:25)
        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)

    原因可能有两类:

    1. Gateway 没启动
    2. 端口未开放 / 被占用

    正确启动方式:

    openclaw gateway

    然后访问:

    http://127.0.0.1:18789

    http://localhost:18789
    (端口可能随配置不同)

    若你启用了 dev 模式,端口变为 19001:

    openclaw --dev gateway
    1. 验证安装:
      openclaw --version  # 需显示2026.x.x及以上版本
    2. 初始化工作空间:
      # 创建工作目录(存储配置、技能与数据)
      mkdir ~/OpenClaw-Workspace && cd ~/OpenClaw-Workspace
      # 初始化配置,按提示选择默认值(新手无需修改)
      openclaw init

    3. 启动服务与访问控制台

    1. 启动Gateway服务:
      # 前台启动(测试用,关闭终端服务停止)
      openclaw gateway start
      # 后台启动(推荐,支持关闭终端后持续运行)
      # Windows(PowerShell):Start-Job -ScriptBlock {openclaw gateway start}
      # MacOS/Linux:nohup openclaw gateway start &
    2. 访问控制台:
      1. 浏览器输入http://localhost:18788,无需登录直接进入操作界面,本地部署完成。
      2. 934697070286ced332721fe857d8534

        621ccf5a92179bca9a4ab2323c0c1c8

        75c2b59f8e53d8b3b841853c4e50c25

        e5fac8051a02fb4f65eecd26d15e8ac

        56ec506b8d2c60c529e256f9edd2789

        41a35a33b7411805c10b046c089e61f