Install an agent
Bring up a second machine as a Dominevo agent — with Compose, the Unraid template or the Mac desktop app — and confirm the hub sees it.
This page walks you through joining a second machine to your hub and checking that it appears on the Cluster page.
Before you start
On a Linux machine, run npx dominevo host-check there first: it lists the
accelerators the agent could use (NVIDIA included) and the device flags and
image tag to use. On a Mac or Windows PC, use the desktop app; it finds the
hardware itself.
On the hub, open Network → Network Addresses and look at the Internal role in the Addresses card. The agent downloads addons and models from that address, so it must be one the agent can reach. It is picked automatically. If the hub runs under Docker bridge networking, behind NAT or over a VPN, add the address the agent dials as a custom address and tick it for Internal.
Do not run a hub and an agent on the same host. With host networking they collide on every port.
Compose
On the second machine, save this as docker-compose.yml:
services:
dominevo-agent:
image: ghcr.io/dominevo/dominevo:intel-latest
container_name: dominevo-agent
restart: unless-stopped
network_mode: host
pids_limit: 8192
# Uncomment the `devices:` key AND the entries this machine has.
# devices:
# - /dev/dri:/dev/dri
# - /dev/accel:/dev/accel
device_cgroup_rules:
- "c 189:* rmw"
volumes:
# Safe to wipe — it re-seeds from the hub on the next boot.
- ./dominevo-agent-data:/data
# Declared a volume by the image; map it or Docker makes an anonymous one.
- ./dominevo-agent-backups:/backups
# Media for the cameras assigned to THIS agent.
- ./dominevo-agent-recordings:/recordings
# Coral USB. Remove if you have none.
- /dev/bus/usb:/dev/bus/usb
environment:
- DOMINEVO_ROLE=agent
# IP or hostname of the hub to join.
- DOMINEVO_HUB_ADDRESS=10.0.0.5
- DOMINEVO_MEDIA_ROOT=/recordings
- DOMINEVO_MOLECULER_USE_HOSTNAME=false
- DOMINEVO_LOG_LEVEL=info
# Stable cluster id. Defaults to the container hostname.
# Must be unique, and must not change once the hub knows it.
# - DOMINEVO_NODE_ID=gpu-box
# How this agent is labelled in the topology view.
# - DOMINEVO_AGENT_NAME=GPU box
# Nothing secret goes here: pair the agent from the hub once it is up.docker compose up -dIf you keep the hub and the agent in one file, give the agent service
profiles: ["agent"] so it never starts by accident. Start it with
docker compose --profile agent up -d.
Unraid
Install this template on the other machine:
https://raw.githubusercontent.com/dominevo/unraid-templates/main/templates/camstack-agent.xmlSet Hub address to the hub's IP (or leave it blank), and use a different appdata folder from any other Dominevo container on that box. Then pair the agent.
Mac
On a Mac, the agent is the Dominevo desktop app. Install it as described on Mac (desktop app), then in the setup window:
Choose the agent role
Select Agent (worker).
Choose how it finds the hub
| Hub connection | When to use it |
|---|---|
| Auto (UDP discovery) | The hub is on the same network segment. The agent listens for the hub's announcement on the LAN and connects to it. You do not need its address, so this keeps working if the hub's IP changes. |
| Manual | Discovery is blocked, or the hub is on another subnet. Enter the hub's IP address or host name in Hub address. Leave Port at 4443 unless your hub uses another port. |
Name it
Agent name is optional. It is the label the hub shows for this Mac, and it defaults to the Mac's host name followed by its architecture. There is no secret to enter: you pair the Mac from the hub once it is running.
Save and start
Select Save and start. The window then shows the agent's own dashboard, at
http://localhost:4444.
The first start downloads a Python runtime, the CoreML inference packages and ffmpeg, and then the models it needs. Give it time before you look for the Mac on the hub.
Allow Local Network access. macOS asks whether Dominevo may find devices on your local network. Select Allow. Without it the agent still runs and answers on port 4444, but its announcement never leaves the Mac: the hub's Scan does not find it, and Auto cannot hear the hub. If you missed the prompt, turn on Dominevo in System Settings → Privacy & Security → Local Network, then quit and reopen the app from the menu-bar icon.
The agent keeps a generated node ID in its data folder, so its identity survives restarts and app updates. To point it at another hub later, use the agent dashboard in the app window. Setup / change role… in the menu-bar menu reopens the setup window, where you can also turn the Mac back into a hub.
A Mac agent needs nothing passed through. It finds the Neural Engine and VideoToolbox on its own, and the Neural Engine is enabled for detection by default. See Inference engines.
Pair it from the hub
An agent joins a hub only by being paired. There is no cluster secret and no join token to copy: the agent proves who it is with a certificate the hub issues during pairing, and you confirm that the hub and the agent are talking to each other by typing the six digits shown on the other screen, on both sides.
If you left the setup window's Hub connection on Choose later, the agent starts without a hub and waits to be paired. You can also enter the hub's address there instead; pairing works the same way.
Find the agent
On the hub, open Cluster → Nodes. Under Agents found on the
network, the agent appears by itself, listed with the agent's own name
(select Scan to look again). If it does not, select Add by address and
enter the agent's IP and, if it is not 4444, its port.
Start the pairing
Select Pair on the agent. The hub shows a six-digit Code on this hub,
and the agent's own page (http://<agent-ip>:4444, or the app window on a
Mac) shows the pairing request.
Confirm on the agent
On the agent, type the code the hub shows into Code shown on the hub and
select Confirm. Anywhere but on the agent machine itself, also type the
Local PIN, which is shown only on that machine: in the app window, in the
agent's console or docker logs, or in pairing-pin.txt in its data folder.
Only after you confirm does the agent show its own six-digit code.
Confirm on the hub
Type the code the agent now shows into Code shown on the agent on the hub. When both sides read confirmed, the agent gets a certificate from the hub and connects. Finding an agent grants nothing: nothing joins until you have confirmed. Three wrong codes cancel the pairing, and an unfinished request expires after five minutes. Select Reject on either side to stop it.
A pairing left open can be picked up again: on Cluster → Nodes, select Resume next to the agent. You can also start from the agent: its page shows a pending request as soon as the hub starts one, and tells you where to begin on the hub if it is not paired yet. On Compose or Unraid, leaving the hub address blank is fine; the agent is found on the network and paired the same way.
To remove an agent, select Unpair on it from the same list. Unpairing revokes its certificate.
Upgrading from an older agent
Older agents were given a cluster secret (in agent.json, or as
DOMINEVO_CLUSTER_SECRET) or a join token. Both are gone. A leftover secret
in agent.json or the environment variable is ignored, so you can leave them
or delete them. Pair the agent from the hub once; after that nothing else is
needed. An agent too old to be paired shows a message asking you to update it
from the hub (Cluster → Nodes) first.
Naming it
On Compose and Unraid, DOMINEVO_NODE_ID is the agent's stable cluster identity. It defaults to the
container hostname.
A node ID must be unique across the cluster and must not change once the hub
knows it. If your container hostname is not stable across re-creates, set
DOMINEVO_NODE_ID explicitly the first time rather than discovering the
problem later.
DOMINEVO_AGENT_NAME is only the label shown in the topology view, and is safe
to change.
Confirm it joined
Open the hub's admin UI and go to the Cluster page. The agent should appear as a node, with its hardware. Cluster → Nodes should list it as authenticated; if it is not, pair it as described above.
If it does not appear, work through Cluster troubleshooting.
What lives on the agent
The agent's /data is safe to wipe: it re-seeds from the hub on the next
boot. Its /recordings is not — that holds the media for the cameras assigned
to this node.
On a Mac, both live in one folder,
~/Library/Application Support/@dominevo/desktop/data, together with the agent's node
ID. Deleting that folder deletes the media of the cameras this Mac owns, and
the hub then sees the Mac as a new machine.