安装

一键安装脚本支持下轻松部署 OpenClaw

macOS 安装

一键安装脚本

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

手动安装

git clone https://github.com/openclaw/openclaw.git
cd openclaw
npm install

Linux 安装

一键安装脚本

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

或使用包管理器

# Ubuntu/Debian
sudo apt install openclaw

# CentOS/RHEL
sudo yum install openclaw

Windows 安装

PowerShell 一键安装

irm https://clawd.org.cn/install.ps1 | iex

手动安装

  1. 下载 最新版本
  2. 解压到任意目录
  3. 运行 openclaw.exe

npm/pnpm 安装

# 使用 npm
npm install -g @openclaw/cli

# 使用 pnpm
pnpm add -g @openclaw/cli

Docker 安装

docker pull openclaw/openclaw:latest
docker run -d --name openclaw openclaw/openclaw:latest

国内镜像

中国大陆用户可使用国内镜像源加速安装:

# npm 镜像
npm config set registry https://registry.npmmirror.com

# 安装脚本镜像
curl -fsSL https://mirror.clawd.org.cn/install.sh | bash