ServerKeel Request early access
  1. Home
  2. Docs
  3. Add servers

Add servers

The install command

Servers › Add server (or step 3 of Welcome) makes a single-use token and shows the command. Run it as root on the server:

curl -fsSL https://console.example.com/agent/install.sh -o /tmp/fleet-install.sh && \
  echo '<sha256> */tmp/fleet-install.sh' | sha256sum -c --quiet && \
  FLEET_ENROLL_TOKEN='<one-time-token>' bash /tmp/fleet-install.sh

The command pins the installer's checksum, the installer pins each binary's checksum, and those come from the signed release you imported. The agent installs as a systemd service and the server shows up online within seconds. Tokens expire (two hours from Welcome) and work once.

The agent connects out to the gateway address on 443 (or the port you chose). Nothing connects to the server.

Supported systems

AgentLinux on amd64, arm64 and armv7 with systemd: Debian and Ubuntu, RHEL, AlmaLinux and Rocky, and Plesk and cPanel hosts (CentOS 7 cPanel servers included)
Web stackDebian 12 and 13, Ubuntu 22.04 and 24.04
ProxmoxHosts and their guests appear on the map; VMs and containers can be created from the console
VirtualizorVPSes on a Virtualizor master can be created and managed from the console

Agent settings live in /etc/fleet-agent/agent.yaml.

Private CA

With CADDY_TLS=internal, copy the console's root certificate to each server and trust it before running the install command:

docker compose cp caddy:/data/caddy/pki/authorities/local/root.crt fleet-ca.crt
# Debian and Ubuntu:
cp fleet-ca.crt /usr/local/share/ca-certificates/ && update-ca-certificates
# RHEL, Alma, Rocky, CentOS:
cp fleet-ca.crt /etc/pki/ca-trust/source/anchors/ && update-ca-trust

Removing the agent

Revoke the server in the console (the server's page › Revoke), then on the server run the install command without the token, adding --uninstall (or --uninstall --purge to delete its state too).

Upgrading agents

Import the new release under Settings › Agent releases, then Settings › Agents shows which servers are behind and upgrades them, one at a time or all at once.

The agent checks the release's signature against the key built into it, downloads the binary from your console, makes sure it starts, then swaps it in and restarts. If the new agent can't connect within a few minutes, it puts the previous binary back by itself and notes why.

Agents older than 1.6.1 need the install command once (without a token, it upgrades in place). For old agents inside Proxmox containers, the console can run that through the Proxmox host instead, so you never need a shell on the guest.