官网

https://docs.openclaw.ai/zh-CN

安装前置需要的环境

安装 git nodejs

根据不同的环境自己安装,ubuntu可以直接使用以下

1
2
3
4
#安装git 
apt install git
# 安装nodejs

安装nodejs比较复杂,ubuntu自带的nodejs版本很低,需要安装新的源,见 ubuntu 安装nodejs

安装主程序

1
2
3
sudo curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard
# 或者npm安装
npm install -g openclaw@latest

配置

初始化快速配置

1
openclaw onboard --install-daemon

建议配置

配置项 选择
I understand this is powerful and inherently risky. Continue? 选择 Yes
Onboarding mode 选择 QuickStart
Model/auth provider 选择 Skip for now(稍后配置百炼模型)
Filter models by provider 选择 All providers
Default model 选择 Keep current
Select channel (QuickStart) 选择 Skip for now(稍后配置渠道)
onfigure skills now? (recommended) 选择 No
Enable hooks? 按空格键选中选项,按回车键进入下一步
How do you want to hatch your bot? 选择Do this later

启动

1
openclaw dashboard --no-open

可以得到进入链接

1
2
3
4
5
6
7
8
kewen@DESKTOP-S0UMKGA:~$ openclaw dashboard --no-open

🦞 OpenClaw 2026.3.13 (61d171a) — Built by lobsters, for humans. Don't question the hierarchy.

Dashboard URL: http://127.0.0.1:18789/#token=c8cd7fd579b852ffd4....918b03833dd
Copied to clipboard.
Browser launch disabled (--no-open). Use the URL above.