Managed Agents
Managed Agents let one Borg UI server coordinate backups on client machines. The client runs borg-ui-agent, polls Borg UI for work, runs Borg locally, and streams progress and logs back to the server.
This feature is currently behind the Managed CLI Agents beta switch.
Enable the UI
- Open Settings > Advanced > Beta.
- Enable Managed CLI Agents.
- Open Managed Agents from the Backup navigation group.
Install on a Client Machine
Run this on the machine that owns the files you want Borg to back up:
git clone https://github.com/karanhudia/borg-ui.git
cd borg-ui
python3.11 -m venv .venv
. .venv/bin/activate
pip install .Verify the CLI:
borg-ui-agent statusRegister the Client
In Borg UI, create an enrollment token from Managed Agents. Tokens are shown once, so copy the token or generated command before closing the dialog.
Run the registration command on the client:
borg-ui-agent register \
--server http://borg-ui-host:7879 \
--token borgui_enroll_example \
--name laptopThe --server value must be reachable from the client machine. If Borg UI is running on the same machine as the agent, http://localhost:7879 is valid. If the agent runs on another machine, localhost points at that client machine, so use the Borg UI server host name, IP address, reverse-proxy URL, or HTTPS URL.
Run the Agent
Poll once:
borg-ui-agent onceRun continuously:
borg-ui-agent runThe machine appears in Managed Agents after registration and its first heartbeat.
Run on Startup
Linux systemd and macOS launchd templates are included in the repository under agent/install/.
For Linux, edit agent/install/systemd/borg-ui-agent.service so ExecStart, User, Group, and the config path match the client machine. Then install it:
sudo cp agent/install/systemd/borg-ui-agent.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now borg-ui-agentFor macOS, edit agent/install/launchd/com.borg-ui.agent.plist so the binary, config, and log paths match the client machine. Then install it:
sudo cp agent/install/launchd/com.borg-ui.agent.plist /Library/LaunchDaemons/
sudo launchctl bootstrap system /Library/LaunchDaemons/com.borg-ui.agent.plistKeep the agent config file readable only by the service user or local admin. It contains the agent credential used to authenticate with Borg UI.

