Run it on a VPS
From a fresh login to a runcastle that keeps burning after you log out, reached from your own browser over an SSH tunnel.
In order
-
Log in as a normal user with
sudo. The install refuses to run as root, and tells you how to make that user if you only have root. -
Run the install. It shows the list and asks once.
Unattended, answer for it:$ curl -fsSL https://runcastle.dev/install.sh | bash$ curl -fsSL https://runcastle.dev/install.sh | bash -s -- --yes --agent claude - Log out and back in, so the
dockergroup applies. - Sign in to Claude Code:
claude auth login. -
Save the burn token:
runcastle token. It has you runclaude setup-tokenand checks what you paste. -
Keep it running:
runcastle service install. It starts at boot, after Docker, and restarts if it stops. -
Reach it from your own machine, then open
http://localhost:4512:$ ssh -L 4512:localhost:4512 user@host
The server has no login. It listens on 127.0.0.1 only, so the tunnel is the
way in. Never expose it publicly.
Firewall and SSH hardening are yours to do.