环境要求
- Node.js 18+
- npm 或 yarn
- 一台 Linux 服务器(推荐)
1安装 Node.js
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
2下载 OpenClaw
git clone https://github.com/openclaw/openclaw.git
cd openclaw
npm install
3配置环境
cp .env.example .env
# 编辑 .env 文件,配置 API 密钥
启动成功后,访问 http://your-server:8080 即可使用!