Install
openclaw skills install skylv-openclaw-quick-deployOpenClaw 一键部署助手。5 分钟快速部署 OpenClaw 到 VPS/Docker/本地,包含环境检测、依赖安装、配置生成。Triggers: deploy openclaw, install openclaw, openclaw setup, quick start.
openclaw skills install skylv-openclaw-quick-deploy5 分钟快速部署 OpenClaw 到 VPS、Docker 或本地环境。自动检测系统环境、安装依赖、生成配置文件,让 OpenClaw 开箱即用。
| 平台 | 支持状态 | 部署时间 |
|---|---|---|
| Ubuntu 20.04/22.04 | ✅ 原生支持 | 5 分钟 |
| Debian 11/12 | ✅ 原生支持 | 5 分钟 |
| CentOS 7/8 | ✅ 原生支持 | 7 分钟 |
| Docker | ✅ 容器化部署 | 3 分钟 |
| macOS | ✅ Homebrew 安装 | 5 分钟 |
| Windows (WSL2) | ✅ WSL2 部署 | 7 分钟 |
# Ubuntu/Debian/CentOS
curl -fsSL https://raw.githubusercontent.com/SKY-lv/awesome-openclaw-skills/main/scripts/deploy.sh | bash
# 部署完成后
openclaw gateway status
# 拉取镜像
docker pull sky lv/openclaw:latest
# 运行容器
docker run -d \
--name openclaw \
-p 8080:8080 \
-v ~/.openclaw:/root/.openclaw \
-e OPENCLAW_CONFIG=/root/.openclaw/config.json \
skylv/openclaw:latest
# 查看日志
docker logs -f openclaw
# Node.js 环境(v18+ required)
git clone https://github.com/openclaw/openclaw.git
cd openclaw
npm install
npx openclaw gateway start
# 验证安装
openclaw gateway status
checks:
- nodejs: ">=18.0.0"
- npm: ">=9.0.0"
- git: installed
- disk_space: ">=1GB free"
- memory: ">=512MB free"
- ports: "8080 available"
dependencies:
- openclaw (core)
- openclaw-gateway (daemon)
- openclaw-cli (command line)
- optional: playwright (browser automation)
- optional: puppeteer (headless Chrome)
config:
- gateway.port: 8080
- gateway.host: 0.0.0.0
- session.timeout: 3600s
- log.level: info
- plugins: []
# 启动 Gateway
openclaw gateway start
# 设置开机自启
openclaw gateway enable
# 验证状态
openclaw gateway status
1. 端口被占用
# 查看端口占用
lsof -i :8080
# 修改端口
openclaw config set gateway.port 8081
openclaw gateway restart
2. 内存不足
# 查看内存使用
free -h
# 优化配置
openclaw config set session.max_concurrent 5
3. 依赖安装失败
# 清理缓存
npm cache clean --force
# 重新安装
npm install --legacy-peer-deps
4. Gateway 无法启动
# 查看日志
openclaw gateway logs --tail 100
# 重置配置
rm ~/.openclaw/config.json
openclaw gateway init
#!/bin/bash
set -e
echo "🦞 OpenClaw Quick Deploy"
echo "========================"
# 检测系统
if [ -f /etc/debian_version ]; then
OS="debian"
elif [ -f /etc/redhat-release ]; then
OS="centos"
else
echo "❌ Unsupported OS"
exit 1
fi
# 安装 Node.js
if ! command -v node &> /dev/null; then
echo "📦 Installing Node.js..."
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
fi
# 安装 OpenClaw
echo "📦 Installing OpenClaw..."
npm install -g openclaw
# 初始化配置
echo "⚙️ Initializing configuration..."
openclaw gateway init
# 启动服务
echo "🚀 Starting Gateway..."
openclaw gateway start
echo "✅ OpenClaw deployed successfully!"
echo "📍 Access: http://localhost:8080"