Host Onboarding
There are two ways to connect GPU machines to the console:
- Fleet token (recommended, for one or more machines): a single tenant-wide token that goes to every machine as part of the install command. Once the agent is installed, it shows up in the console as
pending_claim, and an admin claims it. - One-time registration token (legacy): create a single host in the UI → get a single-use token → install. Not practical for 16 machines.
This guide covers the fleet token flow.
Prerequisites (on the host)
| Component | Required? | Note |
|---|---|---|
| NVIDIA Driver | Yes for Linux + NVIDIA | Already installed on Azure NCasv3/NCv4 images. nvidia-smi must work. |
| CUDA | Comes with the driver | The vLLM/TGI/Whisper-CUDA images bring it at runtime. |
| Docker | Yes | Engine 24+. |
| nvidia-container-toolkit | Yes on NVIDIA hosts | nvidia-ctk must be on the PATH. |
| Root privileges | Yes for the first install | The agent is installed as a systemd unit. |
Apple Silicon host: Python 3.11+ or uv for MLX models (the installer can install uv with --auto-install-prereqs); Docker Desktop is needed only for Docker runtimes, which run on the CPU. See Mac (Apple Silicon) and MLX. CPU-only host: Docker only.
How the console reaches the models on a host (direct, agent gateway or relay) is set on the machine's Connection tab: see Networking and connection modes.
Step 1 — Generate a fleet token
In the UI: GPU Fleet → Onboarding → pick a platform (linux-x64, darwin-arm64, …) → Generate.
TIP
The token is shown only once; only its SHA-256 hash is written to the database. When you rotate it, the old token is invalid immediately. Keep the generated install command in a password manager.
The UI gives you a command like this:
curl -fsSL https://console.example.com/api/gpu-fleet/installer.sh | sudo bash -s -- \
--console-url https://console.example.com \
--tenant-slug acme \
--fleet-token gpuflt_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
--asset-url https://console.example.com/api/gpu-fleet/agent-bundle/linux-x64.tar.gzStep 2 — Install on the host
Run the command on the host as root:
ssh root@gpu-01.your-network
# install.sh checks the prerequisites:
# nvidia-smi
# docker
# nvidia-container-toolkit
# and fails if one is missing. Then:
# /opt/cognipeer-gpu-agent/cognipeer-gpu-agent → systemd service
# /etc/cognipeer-gpu-agent.env → COGNIPEER_* env varsSuccessful output:
==> Installed. Tail logs with:
journalctl -u cognipeer-gpu-agent -fYou can follow the log with journalctl -u cognipeer-gpu-agent -f. As soon as the agent starts, it:
- Selects the platform adapter (linux-nvidia / macos-apple-silicon / cpu-only).
- Takes the GPU/MIG inventory with
nvidia-smi --query-gpuandnvidia-smi -L. - Calls
POST /api/gpu/agent/<tenantSlug>/fleet-handshakeon the console. - The console generates an agent token, and the host is recorded as
pending_claim. - The agent token is persisted (
/var/lib/cognipeer-gpu-agent/agent-token); no new handshake is needed after a reboot.
Step 3 — Claim it in the UI
The GPU Fleet → Onboarding page refreshes every 5 seconds. Newly arrived hosts are listed in the Pending claim section with toolchain badges (driver / cuda / docker / ctk).
Each row has:
- Display name — how you want to refer to the host in the UI (for example
gpu-prod-istanbul-01). - Service address — the IP the agent suggests (the first non-loopback NIC). The pool proxy will send HTTP requests to this address; if there is NAT or a different network, an admin can override it.
- Terminal access — an opt-in switch. If you leave it off, the terminal button is disabled in the UI.
Claim → the host moves to online. Reject → it is deleted from the database; the agent keeps running but lands in pending_claim again (it comes back). If you want to stop the agent, run systemctl stop cognipeer-gpu-agent on the machine.
Bulk claim
If you do not want to go through 16 machines one by one: select them all at once (Shift+Click), enter the naming template gpu-{n} → all of them are claimed in one go. Labels can be edited later from the host detail.
Heartbeat and offline detection
- The agent sends
POST /heartbeatevery 15 seconds. - The console marks a host
offlinewhen it has received no heartbeat for 60 seconds. - The
offline → onlinetransition happens automatically the moment a new heartbeat arrives.
Rotate / revoke
To revoke the fleet token because you suspect it leaked: Settings → Rotate fleet token. The old token is rejected immediately; already paired agents are not affected (they continue with their own agent tokens). You cannot add new machines until a new token is generated; after that it is possible again.
To revoke the agent token of a single host: Delete host in the host detail. The agent gets a 401 on its next heartbeat and stops; to clean the machine, an admin runs sudo systemctl stop cognipeer-gpu-agent && sudo rm -rf /var/lib/cognipeer-gpu-agent.
Next step
→ Deploying Models — deploy a model from the catalog.

