Windows部署Openclaw

AI摘要
Deepseek提供支持

一、前置准备

以管理员身份打开 PowerShell

开始菜单搜索 PowerShell → 右键 → 选择 以管理员身份运行

广告
广告图片

执行下面的脚本:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

运行完成之后输入下面的Openclaw安装命令:

iwr -useb https://openclaw.ai/install.ps1 | iex
PS C:\Windows\system32> iwr -useb https://openclaw.ai/install.ps1 | iex

  OpenClaw Installer

[OK] Windows detected
[!] Node.js v20.10.0 found, but v22+ required
[*] Installing Node.js...
  Using winget...
已找到 Node.js (LTS) [OpenJS.NodeJS.LTS] 版本 24.14.1
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://nodejs.org/dist/v24.14.1/node-v24.14.1-x64.msi
  ██████████████████████████████  30.8 MB / 30.8 MB
已成功验证安装程序哈希
正在启动程序包安装...
已成功安装
[OK] Node.js v24.14.1 found
[OK] Node.js installed via winget
[OK] Node.js v24.14.1 found
[*] Git not found; bootstrapping user-local portable Git...
  Downloading v2.53.0.windows.2...
[OK] User-local Git ready: git version 2.53.0.windows.2
[*] Installing OpenClaw (openclaw@latest)...
[OK] OpenClaw installed

OpenClaw installed successfully (OpenClaw 2026.4.1 (da64a97))!

The lobster has landed. Your terminal will never be the same.

Starting setup...


🦞 OpenClaw  2026.4.1 (da64a97) — Automation with claws: minimal fuss, maximal pinch.

Windows detected - OpenClaw runs great on WSL2!
Native Windows might be trickier.
Quick setup: wsl --install (one command, one reboot)
Guide: https://docs.openclaw.ai/windows
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██
██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██
██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                  🦞 OPENCLAW 🦞

T  OpenClaw setup
|
o  Security ---------------------------------------------------------------------------------+
|                                                                                            |
|  Security warning — please read.                                                           |
|                                                                                            |
|  OpenClaw is a hobby project and still in beta. Expect sharp edges.                        |
|  By default, OpenClaw is a personal agent: one trusted operator boundary.                  |
|  This bot can read files and run actions if tools are enabled.                             |
|  A bad prompt can trick it into doing unsafe things.                                       |
|                                                                                            |
|  OpenClaw is not a hostile multi-tenant boundary by default.                               |
|  If multiple users can message one tool-enabled agent, they share that delegated tool      |
|  authority.                                                                                |
|                                                                                            |
|  If you’re not comfortable with security hardening and access control, don’t run           |
|  OpenClaw.                                                                                 |
|  Ask someone experienced to help before enabling tools or exposing it to the internet.     |
|                                                                                            |
|  Recommended baseline:                                                                     |
|  - Pairing/allowlists + mention gating.                                                    |
|  - Multi-user/shared inbox: split trust boundaries (separate gateway/credentials, ideally  |
|    separate OS users/hosts).                                                               |
|  - Sandbox + least-privilege tools.                                                        |
|  - Shared inboxes: isolate DM sessions (`session.dmScope: per-channel-peer`) and keep      |
|    tool access minimal.                                                                    |
|  - Keep secrets out of the agent’s reachable filesystem.                                   |
|  - Use the strongest available model for any bot with tools or untrusted inboxes.          |
|                                                                                            |
|  Run regularly:                                                                            |
|  openclaw security audit --deep                                                            |
|  openclaw security audit --fix                                                             |
|                                                                                            |
|  Must read: https://docs.openclaw.ai/gateway/security                                      |
|                                                                                            |
+--------------------------------------------------------------------------------------------+
|
o  I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?
|  Yes

会在Powershell顶部显示安装进程,耐心等待安装即可

广告
广告图片

Writing web request                                                                                                                                                                                                                             Writing request stream... (Number of bytes written: 18200906)                                                                                                                                                                                                                                                                       

验证安装

打开 PowerShell

执行以下命令检查版本:

openclaw --version
where openclaw

启动 OpenClaw 并完成初始化:

openclaw onboard

WSL2 部署方案

启用 WSL2:

wsl --install

打开 Ubuntu 终端,执行 Linux 一键脚本:

curl -fsSL https://openclaw.ai/install.sh | bash

国内镜像

curl -fsSL https://open-claw.org.cn/install-cn.sh | bash  

卸载OpenClaw

npm uninstall -g openclaw

pnpm uninstall -g openclaw
广告
广告图片
温馨提示 : 非特殊注明,否则均为©李联华的博客网原创文章,本站文章未经授权禁止任何形式转载;来自:俄亥俄州·哥伦布 ,欢迎您的访问!
文章链接:https://www.lilianhua.com/deploying-openclaw-on-windows.html
请先登录才能参与答题
距本场结束剩 00 00 00 00
轻量应用服务器 2核2G
200M峰值带宽,适用于网站搭建、Web应用、容器环境、电商独立站等
立即前往
扫码进入
扫描二维码购买
文澜千文

文澜千文

请登录以使用此功能。

法丽兹抹茶慕斯味巧克力夹心曲奇饼干休闲零食团购食品礼物115g/盒 法丽兹抹茶慕斯味巧克力夹心曲奇饼干休闲零食团购食品礼物115g/盒
Loading...
OpenClaw

OpenClaw 龙虾

AI AGENT GATEWAY
在您的服务器部署 OpenClaw,打造专属极速 AI 助手。
零门槛一键部署环境
支持 QQ/飞书/微信 渠道
跨平台指令分发执行
立即安装