moving-day
Moving Day
Your laptop closes. Your agent shouldn't. This skill moves the brain to a VPS and keeps the window on your machine.
Prereqs the user must provide: VPS IP + root SSH access (hosting.com 12-month XS or S unmanaged Linux plan), and optionally a domain. Ask for these first, then run the phases IN ORDER, verifying each before the next. Announce each phase in one line as you go.
Phase 1 — Harden the box (5 min)
ssh root@<IP> "apt update && apt upgrade -y && adduser --disabled-password --gecos '' claudeos && usermod -aG sudo claudeos && mkdir -p /home/claudeos/.ssh && cp ~/.ssh/authorized_keys /home/claudeos/.ssh/ && chown -R claudeos:claudeos /home/claudeos/.ssh"
ssh root@<IP> "ufw allow OpenSSH && ufw allow 80,443/tcp && ufw --force enable && sed -i 's/#PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config && systemctl restart ssh"
Verify: ssh claudeos@<IP> whoami returns claudeos; root login refused.
Phase 2 — Runtime + agents (10 min)
As claudeos: install bun + node + git + tmux, clone the Claude OS repo (VPS-mode branch with deploy/ units) to /opt/claude-os/app, bun install, copy .env.example → .env.local and set: CLAUDE_OS_TRUSTED_HOSTS=<domain>, HERMES_HOME, CLAUDE_OS_CLAUDE_DIR, plan declarations (CLAUDE_OS_CLAUDE_PLAN), CLAUDE_OS_AGENT_DREAM_DIR=/opt/agent-dream. Install Hermes agent under the same user with its data dir on a mounted volume.