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

推荐订阅源

V2EX - 技术
V2EX - 技术
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
S
Securelist
P
Privacy & Cybersecurity Law Blog
Scott Helme
Scott Helme
T
Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
Cyberwarzone
Cyberwarzone
Cisco Talos Blog
Cisco Talos Blog
量子位
博客园 - Franky
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Latest news
Latest news
T
Troy Hunt's Blog
N
News | PayPal Newsroom
Google Online Security Blog
Google Online Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
N
Netflix TechBlog - Medium
小众软件
小众软件
P
Palo Alto Networks Blog
Spread Privacy
Spread Privacy
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
L
Lohrmann on Cybersecurity
L
LINUX DO - 最新话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Last Watchdog
The Last Watchdog
S
Security @ Cisco Blogs
P
Privacy International News Feed
Last Week in AI
Last Week in AI
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
博客园_首页
云风的 BLOG
云风的 BLOG
V
Vulnerabilities – Threatpost
D
DataBreaches.Net
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
Engineering at Meta
Engineering at Meta
Forbes - Security
Forbes - Security
T
Tenable Blog

博客园 - 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. 端口未开放 / 被占用

    正确启动方式:

    然后访问:

    http://127.0.0.1:18789

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

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

    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