From the admin console: Settings > API Keys > Create. The token is prefixed ppk_.
On the target host, as root:
curl -fsSL https://patchpilot.co.uk/downloads/install-linux.sh \
| sudo bash -s -- \
--host https://patchpilot.co.uk \
--api-key ppk_your_token
The installer:
curl + jq are present./usr/local/bin/patchpilot-agent./etc/patchpilot/ (mode 0600, owned by root).patchpilot-agent.service (or a cron job on hosts without systemd)./etc/ and registers a system service. Pipe through sudo bash, not bare bash.Check the systemd unit:
systemctl status patchpilot-agent
journalctl -u patchpilot-agent -n 50
You should see successful check-in lines. The device will appear in Devices in the admin console within ~60 seconds.
If the target host can't reach the internet at install time, download the agent script and config separately on a connected jump-host and copy them over:
# From a connected machine
curl -fsSL https://patchpilot.co.uk/downloads/patchpilot-agent-linux.sh \
-o patchpilot-agent
chmod +x patchpilot-agent
# Copy patchpilot-agent + an /etc/patchpilot/config.json onto the target,
# then enable the systemd unit manually.
The shape of /etc/patchpilot/config.json:
{
"host": "https://patchpilot.co.uk",
"token": "ppdt_..."
}
sudo systemctl stop patchpilot-agent
sudo systemctl disable patchpilot-agent
sudo rm /etc/systemd/system/patchpilot-agent.service
sudo rm -rf /etc/patchpilot /usr/local/bin/patchpilot-agent
sudo systemctl daemon-reload