1、一键安装(采用官方推荐的一条指令安装方式)

macOS / Linux:

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

Windows(管理员运行PowerShell):

iwr -useb https://openclaw.ai/install.ps1 | iex

脚本会自动完成下载、安装和环境变量配置。

2、运行配置向导(Onboard

openclaw onboard --install-daemon

新手引导会配置认证、Gateway 网关设置和可选渠道等。

如果后续需要修改配置,可以运行如下指令重新进入向导:

openclaw configure

3、打开Control UI

openclaw dashboard

在windows上安装过程中遇到的问题:

1、openclaw : 无法加载文件 C:\Users\xxxxx\AppData\Roaming\npm\openclaw.ps1,因为在此系统上禁止运行脚本

原因:PowerShell 执行策略(Execution Policy)限制导致的错误

解决:管理员身份运行PowerShell,执行:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

然后输入:Y

openclaw其他常用的一些指令:

检查网关运行状态:

openclaw gateway status

重启网关:

openclaw gateway restart

官方文档链接:

https://docs.openclaw.ai/zh-CN/start/getting-started

Logo

小龙虾开发者社区是 CSDN 旗下专注 OpenClaw 生态的官方阵地,聚焦技能开发、插件实践与部署教程,为开发者提供可直接落地的方案、工具与交流平台,助力高效构建与落地 AI 应用

更多推荐