Download & install

sg is one static binary. It runs on your workstation (the docs call it the controller) and reaches your servers over SSH. Nothing gets installed on the servers ahead of time.

Install with one command

curl -fsSL https://gen.slostack.io/install.sh | bash

The script picks the right build for your OS and CPU, checks it against the published SHA256SUMS, and puts sg in ~/.local/bin. It never uses sudo.

VariableDefaultUse it to
SG_INSTALL_DIR~/.local/binInstall somewhere else, e.g. SG_INSTALL_DIR=/usr/local/bin (run as a user who can write there)
SG_VERSIONthe latest releasePin a release, e.g. SG_VERSION=v0.1.0-dev
curl -fsSL https://gen.slostack.io/install.sh | SG_INSTALL_DIR="$HOME/bin" bash

Check it:

sg version
# sg 0.1.0-dev
sg help

If your shell says command not found, add the install directory to your PATH and open a new terminal.

Download directly

PlatformArchive
Linux x86-64sg_0.1.0-dev_linux_amd64.tar.gz
Linux ARM64sg_0.1.0-dev_linux_arm64.tar.gz
macOS Apple siliconsg_0.1.0-dev_darwin_arm64.tar.gz
macOS Intelsg_0.1.0-dev_darwin_amd64.tar.gz

v0.1.0-dev, built 2026-12-05 from genesis 95b3126. SHA256SUMS

Install a download by hand:

tar -xzf sg_0.1.0-dev_linux_amd64.tar.gz
sha256sum -c --ignore-missing SHA256SUMS     # macOS: shasum -a 256 -c SHA256SUMS
install -m 0755 sg_0.1.0-dev_linux_amd64/sg ~/.local/bin/sg

Build from source

You need Go 1.22 or newer. No CGO; the SQLite ledger is pure Go.

git clone https://gitlab.com/slostack/genesis.git
cd genesis
make build            # CGO_ENABLED=0 go build -o bin/sg ./cmd/sg
./bin/sg version

What the controller needs

NeedWhy
An SSH private key that logs into each server as rootsg connects with it. Set as machine.ssh.key_path.
The matching public key fileInstalled for the deploy user sg creates. Set as bootstrap.deploy_user.key_path.
Each server's host key in ~/.ssh/known_hostssg checks every connection against it and never edits the file. SSH in once and check the fingerprint.
A Tailscale auth key in an environment variableEach machine joins your tailnet with it. The default name is TS_AUTHKEY.
Tailscale on the controller, in the same tailnetCluster addresses, the LXD API and your application ports all live on the tailnet.

The servers need Ubuntu 22.04 or 24.04 LTS and root SSH access with your key. A fresh VPS is perfect.

Next: Quick start, or go straight to Launch your first machine.