Deploy to your own host
This guide installs the stack under /opt/claude-sandbox on a remote server and supervises it with systemd, so it survives reboots and restarts on failure.
Prerequisites
Section titled “Prerequisites”- A Linux host running systemd and Docker with the compose plugin
- SSH access with sudo, ideally as an alias in your
~/.ssh/config - A local clone of this repository with
justinstalled
Deploy
Section titled “Deploy”-
Stage and install the stack. Replace
MY-SERVERwith your SSH alias oruser@host.Terminal window just deploy host=MY-SERVERThe recipe rsyncs the repository (excluding secrets and build artifacts) to a staging directory, then runs
scripts/deploy.shon the host, which installs to/opt/claude-sandbox, builds the images, and installs the systemd unit. The script checks nothing into place twice; re-running it is safe. -
Fill in credentials on the host, first deploy only.
Terminal window ssh MY-SERVER sudo nano /opt/claude-sandbox/.envThe installer seeds
.envfrom the example when it is missing and reminds you on stdout. -
Start and enable the service.
Terminal window just remote-up host=MY-SERVERjust remote-status host=MY-SERVER -
Follow logs when you need them.
Terminal window just remote-logs host=MY-SERVER
Roll back or remove
Section titled “Roll back or remove”Stop the service and remove the unit and directory; nothing else is touched.
ssh MY-SERVER "sudo systemctl disable --now claude-sandbox.service"ssh MY-SERVER "sudo rm -rf /opt/claude-sandbox /etc/systemd/system/claude-sandbox.service"ssh MY-SERVER "sudo systemctl daemon-reload"