官方网站:http://openclaw.ai/ · 本站基于官网提供更快更易部署的中文教程与 GitHub 快装方案

Star FastOpenClaw
FastOpenClaw 快速一键安装OpenClaw官方教程百科

三种安装方案对比:脚本 / 启动器 / 手工配置

2026-03-03

方案总览

方案适合人群速度可控性推荐指数
A 一行脚本新手、快速验证最高5/5
B 双击启动器非命令行用户4/5
C 手工配置运维、团队规范化最高5/5

方案 A:脚本安装(推荐)

curl -fsSL https://raw.githubusercontent.com/upgiorgio/FastOpenClaw/main/install.sh | bash
openclaw onboard --install-daemon
openclaw status

优点:快、改动少、最适合第一次搭建。

方案 B:启动器安装

  • macOS:launch.command
  • Linux:launch.sh
  • Windows:launch.bat

优点:给非技术同学最友好。

注意:启动器失败时,先看权限与执行策略(Windows PowerShell 策略 / Linux 文件可执行位)。

方案 C:手工配置(生产建议)

npm i -g openclaw@latest
mkdir -p ~/.openclaw
cp ./example.env ~/.openclaw/.env

然后按你的模型与通道逐项写入配置,最后执行:

openclaw gateway restart
openclaw status
openclaw health

安装后统一验收

  1. 能成功调用模型(无 401)
  2. 至少一个机器人可收发
  3. 日志无持续错误刷屏
  4. 可执行重启并恢复

下一步