Skip to content

Register a node

Agents run on nodes — remote Linux machines running the Halyard daemon. You can bring your own hardware: a laptop, a server, or a VM.

The daemon opens a single persistent outbound WebSocket to the Halyard control plane and keeps it open. There is no inbound network surface on the node — nothing listens for connections, and there is no broker in between. Over that one connection the node:

  • registers itself and advertises its capacity;
  • heartbeats so the control plane knows it is healthy;
  • receives dispatches and streams live output back.

If a node goes offline, its sessions stay queued; the control plane dispatches them the moment the node reconnects and reports capacity — durable-queue behavior without a queue to operate. A node that stops heartbeating past the timeout is marked offline and its in-flight sessions are unstuck.

Once the binary is on the machine, a single command sets everything up:

Terminal window
sudo halyard-node install \
--control-url <url> --bootstrap-token <token>

That copies the binary to /usr/local/bin/halyard-node, creates /opt/halyard, registers a systemd service (launches the daemon on boot, restarts it if it exits), enrolls the node, and starts it — so it reports online within seconds. After a reboot or a transient failure it recovers on its own, no manual restart. Manage it like any service: systemctl start|stop|status halyard-node, and read its logs with journalctl -u halyard-node.

The daemon is semantically versioned and does not update itself. Infrastructure in the app tells you when a node is behind, in two kinds:

BadgeWhat it means
Update availableA newer build is published. The node still runs sessions normally.
Update requiredThe node speaks an older wire protocol than the control plane. Sessions are not dispatched to it until you upgrade.

The second is the one to act on: a node in that state stays visibly online while quietly taking no work, which is otherwise a confusing thing to diagnose.

To upgrade, get the new binary onto the machine and re-run install. Open the node’s dialog in Infrastructure and use Download — or fetch it on the node itself, which is usually easier for a headless box:

Terminal window
curl -fsSL <binary-url> -o halyard-node && chmod +x halyard-node
sudo ./halyard-node install

install detects the version already at /usr/local/bin/halyard-node, replaces it in place, and restarts the service. It prints what it’s doing — for example upgrading halyard-node 0.1.0 → 0.2.0 — and keeps the node’s existing identity, so no re-enrollment and no new bootstrap token. Re-running the same version is a harmless no-op.

Check what a node is running with halyard-node version, which prints both numbers the app compares against:

halyard-node 0.2.0 (proto v3)

Prefer two steps? Run sudo halyard-node install on its own to set up the service without enrolling — it then waits, harmlessly retrying, until you run halyard-node enroll --control-url <url> --bootstrap-token <token> separately. No sudo on that second command: install already handed /opt/halyard to your account.

Re-installing or re-enrolling? If this machine was enrolled before — you deleted the node in the app and want to register it again, say — its old identity is still on disk. Re-run install with a new bootstrap token and it notices the existing enrollment and asks before overwriting it:

Terminal window
sudo halyard-node install \
--control-url <url> --bootstrap-token <new-token>
# This node is already enrolled (node_id=…). Overwrite it and re-enroll
# with the new token? … [y/N]

Answer y to discard the old identity and enroll fresh; anything else keeps the existing one untouched. For an unattended overwrite (scripts, config management — where there’s no terminal to answer the prompt), pass --force to skip the confirmation:

Terminal window
sudo halyard-node install \
--control-url <url> --bootstrap-token <new-token> --force

Without a new token, a plain re-run always keeps the existing identity, so upgrading the daemon never disturbs a live enrollment.

Agent CLIs such as claude often live in your ~/.local/bin. The installed service puts that directory on its PATH so the daemon can find them; if you install the CLI somewhere unusual, adjust the unit’s Environment=PATH= line.

A node belongs to your account, and any of your nodes can run any of your sessions; you choose which node a session runs on when you dispatch it. What keeps credentials from leaking between projects isn’t the node: an AI key or Git token only reaches a session because it was associated with that session’s specific project and dispatching user. See Security & credentials.

install also brings up rootless Docker and the devcontainers CLI for the service account, so the node can run sessions inside a devcontainer by default — see Execution environments for how Halyard picks the environment a session runs in.

Rootless is a deliberate choice, not a default anyone toggled off: the alternative — adding the node’s service account to the host’s docker group — is root-equivalent on the machine, and would hand that level of access to the account running agent-authored code. Rootless Docker runs as a per-user daemon, so an escape lands in the account the agent already runs as, with no new privilege granted.

Setup is almost entirely unprivileged. The one step that needs root is a one-off OS package install (uidmap, slirp4netns, docker-ce-rootless-extras, and on Ubuntu, an AppArmor profile for rootlesskit that newer Ubuntu releases require before the rootless daemon can even start). Everything after that — bringing up the rootless daemon itself, installing the devcontainers CLI, and enabling lingering (so the daemon keeps running as a systemd user service after you log out, rather than dying with your session) — runs unprivileged, as the same account the node daemon itself runs as.

On a distribution install doesn’t recognize, it prints the exact commands to run by hand and continues enrolling the node without the devcontainer capability, rather than failing outright — the node still runs sessions in place until you set up container support yourself.

Bring nodes online and offline and watch their health and capacity under Nodes in the app. Once a node is online, you can dispatch an agent onto it.