60-Second Quickstart¶
Get StackPilot running and manage your first host in under two minutes.
1. Deploy the Central Hub¶
The Central Hub is distributed as a signed multi-architecture container image: ghcr.io/byte-builderr/stackpilot. Use the included rootless Podman Quadlet manifest for a persistent, systemd-managed deployment.
mkdir -p ~/.config/containers/systemd ~/.config/stackpilot/hub
for secret in stackpilot-csrf-secret stackpilot-session-secret stackpilot-agent-token stackpilot-master-key; do
podman secret exists "$secret" || openssl rand -hex 32 | podman secret create "$secret" -
done
curl -fsSLo ~/.config/containers/systemd/stackpilot.container \
https://raw.githubusercontent.com/byte-builderr/stackpilot/main/deploy/podman/stackpilot.container
sed -i 's|ghcr.io/OWNER/stackpilot:latest|ghcr.io/byte-builderr/stackpilot:latest|' \
~/.config/containers/systemd/stackpilot.container
systemctl --user daemon-reload
systemctl --user enable --now stackpilot.service
git clone https://github.com/byte-builderr/stackpilot.git
cd stackpilot/deploy/docker-compose
umask 077
cat > .env <<EOF
STACKPILOT_IMAGE_OWNER=byte-builderr
STACKPILOT_VERSION=latest
STACKPILOT_PUBLIC_URL=http://<hub-host>:8081
CSRF_SECRET=$(openssl rand -hex 32)
STACKPILOT_SESSION_SECRET=$(openssl rand -hex 32)
AGENT_TOKEN=$(openssl rand -hex 32)
STACKPILOT_MASTER_KEY=$(openssl rand -hex 32)
EOF
docker compose up -d
Pin a release tag or image digest for production. The checked-in Podman Quadlet manifest documents the available environment variables, persistent data path, and reverse-proxy settings.
The Hub listens on http://<hub-host>:8081 by default. Put it behind a TLS-terminating reverse proxy before exposing it beyond a trusted network.
Initial Admin Account
Upon visiting the dashboard for the first time, you will be prompted to create your initial admin account. Additional accounts with operator or viewer roles can be configured from Settings.
2. Onboard a Managed Node¶
To connect a Linux host to StackPilot:
- Open the Hub web console at
https://<hub-host>:8081. - Click Add Host in the top navigation bar.
- Choose the target runtime engine:
- Podman (Rootless) (Recommended): Installs under the current Linux user account.
- Docker (System Mode): Installs as a system service with Docker daemon access, which is effectively root-equivalent on typical hosts.
- Copy the generated enrollment command and run it on the target machine:
curl -fsSL https://<hub-host>:8081/api/agents/install.sh?ip=192.168.1.100 \
-H "Authorization: Bearer <enrollment-token>" | bash
3. Verify Node Connectivity¶
Once installed, the agent automatically starts and reports health back to the Central Hub:
# Check agent status on the managed host
systemctl --user status stackpilot-agent.service
# Check watchdog self-heal timer
systemctl --user list-timers stackpilot-agent-self-heal.timer
In the Central Hub dashboard, the new host will appear in the sidebar with live CPU, memory, and container workload status!