VPS Bootstrap
Bootstrap a fresh VPS from zero to a fully operational OpenClaw deployment, with backup/restore and post-recovery verification. Use when setting up OpenClaw...
lolaopenclaw
@lolaopenclaw
Install
$ openclaw skills install @lolaopenclaw/vps-bootstrapVPS Bootstrap
Full deployment and disaster recovery framework for OpenClaw on Ubuntu VPS.
Overview
Three scripts handle the complete lifecycle:
bootstrap.sh— Fresh VPS → fully operational OpenClaw (15-20 min)restore.sh— Restore workspace, config, secrets, and crons from backupverify.sh— Post-deployment verification (all-green = ready)
Quick Start
New VPS setup
# On fresh Ubuntu 24.04 VPS
bash scripts/bootstrap.sh
Restore from backup
bash scripts/restore.sh ~/openclaw-backup-*.tar.gz
Verify everything works
bash scripts/verify.sh
What bootstrap.sh does
Sequential installation with error handling at each step:
- System packages — build-essential, curl, git, jq, unzip, etc.
- Node.js — Latest LTS via NodeSource
- Google Chrome — Stable channel + headless shim for browser tools
- OpenClaw — Global npm install + gateway service setup
- Security baseline — UFW firewall, fail2ban, SSH key-only auth
- Service setup — systemd user service with auto-restart + linger
Each step is idempotent — safe to re-run if interrupted.
What restore.sh does
Extracts a backup tarball and restores:
- Workspace files (SOUL.md, MEMORY.md, AGENTS.md, memory/, scripts/)
- OpenClaw config (openclaw.json, .env)
- Cron database
- GPG keys + password store (encrypted secrets)
- OAuth credentials (GOG, rclone)
- System config snapshot
What verify.sh does
Runs 10+ checks and reports pass/fail:
- OpenClaw gateway running and healthy
- Telegram/Discord providers connected
- Browser tools functional
- Backup system operational
- Cron jobs loaded
- SSH security baseline
- Disk space and memory
Backup Script (Optional)
For automated daily backups, see references/backup-guide.md.
Customization
Edit scripts/bootstrap.sh variables at the top:
OPENCLAW_PORT=18789 # Gateway port
ENABLE_FIREWALL=true # UFW setup
ENABLE_FAIL2BAN=true # SSH protection
INSTALL_CHROME=true # Browser tools support
Requirements
- Ubuntu 22.04+ or Debian 12+
- Root or sudo access
- 2GB+ RAM recommended
- SSH key access configured
Security Notes
- Scripts never store secrets in plaintext in the skill itself
- GPG keys are backed up encrypted
- SSH is hardened to key-only authentication
- Gateway binds to localhost by default
Top skills in this category
API Gateway
@byungkyuCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected
Marketing Mode
@thesethroseMarketing Mode combines 23 comprehensive marketing skills covering strategy, psychology, content, SEO, conversion optimization, and paid growth. Use when users need marketing strategy, copywriting, SEO help, conversion optimization, paid advertising, or any marketing tactic.
Blogwatcher
@steipeteMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
Marketing Skills
@jchopard69Access 23 marketing modules offering checklists, frameworks, and ready-to-use deliverables for CRO, SEO, copywriting, analytics, launches, ads, and social me...
diagram-generator
@matthewyinGenerate and edit diagrams with the mcp-diagram-generator MCP server. Use this skill for new diagrams, existing .drawio/.mmd/.excalidraw edits, network topology, architecture, flowchart, swimlane, sequence, class, ER, and Excalidraw whiteboard work. Always use this skill when the user asks to draw,