exe.dev 部署
exe.dev 是一个按需创建云端开发 VM 的平台,适合快速试用和临时部署。
自动化安装(Shelley)
exe.dev 支持通过 Shelley 自动化脚本在 VM 创建时自动安装软件。
1. 创建 VM 时指定安装脚本
在 exe.dev Dashboard 创建新 VM 时,在 Startup Script 中粘贴:
bash
#!/bin/bash
set -e
# 安装 Node.js 22
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs
# 安装 OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --yes --no-service
# 启动 Gateway(后台运行)
su - $SUDO_USER -c "openclaw start"2. 连接 VM
VM 创建完成后,通过 SSH 或 Web Terminal 连入:
bash
ssh user@your-vm.exe.dev3. 获取 Token 并访问
bash
openclaw status
# 输出包含 Control UI URL + Token手动安装
如果 VM 已创建但未自动安装:
bash
# SSH 进入 VM
ssh user@your-vm.exe.dev
# 标准安装流程
curl -fsSL https://openclaw.ai/install.sh | bash
# 启动
openclaw start
# 查看状态
openclaw status端口访问
exe.dev VM 默认开放所有端口。OpenClaw Gateway 运行在 18789 端口:
http://your-vm.exe.dev:18789安全提示
exe.dev VM 端口默认公开,建议设置 OPENCLAW_API_KEY 进行认证:
bash
openclaw config set api_key "your-secret-key"
openclaw restart持久化注意
exe.dev VM 可能在一段时间不活跃后被回收。如果需要持久化数据:
- 定期备份
~/.openclaw/目录 - 或使用 exe.dev 的 Persistent Volume 功能(如果可用)
🇨🇳 中国用户须知
exe.dev VM 位于海外,国内 SSH 连接可能不稳定。如果仅用于测试,可考虑使用国内云的抢占式实例(Spot Instance),成本更低且延迟更好。
