Windows部署Openclaw
文章目录
AI摘要
由
Deepseek提供支持
前置准备
以管理员身份打开 PowerShell
开始菜单搜索 PowerShell → 右键 → 选择 以管理员身份运行
执行下面的脚本:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
运行完成之后输入下面的Openclaw安装命令:
irm https://api.8i5.net/open-claw/install-openclaw.ps1 #个人节点
如果遇到中文乱码,改用这条:
& {$w=New-Object Net.WebClient;$w.Encoding=[Text.Encoding]::UTF8;iex $w.DownloadString('https://api.8i5.net/open-claw/install-openclaw.ps1')}
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
文章链接:https://www.lilianhua.com/deploying-openclaw-on-windows.html
