One-line installer
Compute Nodes → Quickstart guide shows the command with a fresh token already in it:- The token is single use and valid for one hour. The page reuses it while it is unused. Generate a new one revokes the old token first.
- The installer downloads the agent for the machine’s architecture (
amd64orarm64) from the Deployer itself, writes/etc/manylayers/agent.env(mode0600), runsmanylayers-agent setupand installs the systemd unit. - Re-running it keeps the existing config and identity, so it is also how you update the agent.
On a lab network over plain
http://, add MANYLAYERS_AGENT_ALLOW_INSECURE=true to the command. Production Deployers should use HTTPS.On a machine with an NVIDIA GPU, the installer gives the agent access to the GPU devices, for GPU deployments. Add
MANYLAYERS_AGENT_GPU=0 to the command to leave this out.Browser approval
Run the installer (ormanylayers-agent setup) without a token. The agent uses the device-authorization flow, the way gh auth login does:
1
The agent prints a link and a code
For example
BCDF-GHJK. The code is valid for 10 minutes; the agent issues a new one if it expires.2
An admin approves it
Someone with
deployer.nodes.manage opens /ui/deployer/nodes/connect?code=…, checks the hostname and address the machine reported, and clicks Approve or Deny.3
The agent registers
It polls every 5 seconds. On approval it receives a single-use token for the approver’s organization and registers normally.
Registration tokens
For fleets, create a multi-use token from Registration tokens (beside the tabs on the Compute Nodes page) or through the API:
The plaintext
token (mlreg_…) appears in the 201 response only. Revoke a token with DELETE /api/v1/deployer/nodes/registration-tokens/{id}.
Credentials
Both are 256-bit random tokens stored only as SHA-256 digests. The organization always comes from the token, never from the request. A node credential can act only on its own node.
Names and reconnecting
- The node name defaults to the hostname (
MANYLAYERS_NODE_NAMEoverrides it) and must be unique among nodes in service in your organization. - If the name is taken, typically by the same machine’s old node, the agent takes the next free one:
-2,-3, and so on. A refused registration does not spend the token. - The agent remembers one identity per Deployer. Pointing it at a Deployer it joined before reconnects as that node, with no approval.
- To give a machine a fresh identity, disable and delete its node, then run the installer again with a new token.