Skip to content
Free test

Install the agent (Ubuntu, deb)

In development. Not available. Packages are not yet published for download.

Applies to: Reach 0.1.1, built from commit 08df4b0. There is no release.

Copied word for word from docs/install/linux-deb.md in the private Reach repository, commit 08df4b0, 21 November 2026.

The guide: Installing the Reach agent on Ubuntu Server 24.04 LTS (deb)

Reach is in development. Its packages are not published.

What ran: installed and run on Ubuntu Server 24.04 LTS in our own lab (16 November 2026), on one x86_64 virtual machine with AppArmor enabled, against a Reach server on the same machine; no separate tester has followed this guide yet. What ran, as written here: apt install of the agent package; enrol --machine (the token file was removed); the service active and the first report delivered within 45 seconds; the machine listed in the console with "What we could not see"; sandbox score 1.7; a reboot (the service came back by itself); no AppArmor denial naming Reach. A second run (build 0.1.1-280, 16 November 2026): apt install over the earlier build 0.1.1-273 restarted the service once and a report was delivered; apt remove kept the identity and the reach-agent account; installing again brought the service back enabled, active and still enrolled; apt purge deleted the state, the account, the unit and the binary. Not yet run on Ubuntu: other users' collectors, and a long run.

For the IT person installing the Reach agent: the read-only program that reports a machine's AI tools to your Reach server. This is an unsigned evaluation build (labelled -evaluation-unsigned), for evaluation only, not for production machines.

What ran on Ubuntu is listed above; the rest follows the code and the Rocky guide. Ubuntu gets the same unit, the same account and the same folders. Windows and macOS builds of the service exist in the source. The Windows service, named pipe and installer ran on one Windows 11 virtual machine in our own lab, in the builds of 16 to 17 November only (see Windows), and the macOS launchd files have not run on a Mac.

What runs, and as whom#

ProcessRuns asHoldsTalks to
reach-agent.service (reach-agent service)the reach-agent system account, never rootthe machine's identity, the spool of the latest snapshot per profilethe server over HTTPS, and the local socket
reach-agent-user.service (reach-agent user), one per signed-in userthat usernothing between runsonly the local socket /run/reach-agent/collect.sock

The service cannot read anyone's home folder (ProtectHome=yes). Each signed-in user's collector (the part of the agent that runs in that user's session and reads their AI tools' settings) reads only what that user can read, and sends the service the tools it found. The service decides which profile that is from the user ID the kernel reports for the connection, never from what the collector says, and replaces the user's name with a keyed label before anything leaves the machine. The socket accepts at most 32 KiB, one submission per user per 60 seconds and four connections at once.

Users who never sign in have no profile in the report. The agent does not look through home folders it was not invited into.

Install#

The packages are not published. To evaluate Reach before release, ask Sys-Ki through the contact page on sys-ki.com and choose "Evaluation build". Evaluation builds are internal and not yet proven on real hardware. When one is ready it is handed over with its SHA256SUMS file; if none is ready, you are told so plainly. Building the packages from the source applies only to people with access to the private source. How to check the files: Install the server (Ubuntu), step 1. With the package on the machine:

Shell
sudo apt install ./reach-agent_<version>-<build>_<arch>.deb

Run it from the folder that holds the file, or give the full path starting with /; the ./ is what makes apt install a local file. <arch> is amd64 or arm64 to match the machine (dpkg --print-architecture).

If the folder holds only one CPU type's files, check yours from inside that folder with cd <folder> && sha256sum -c --ignore-missing SHA256SUMS (from any other folder it reports "no file was verified"): FAILED open or read means a file is absent, FAILED alone means a damaged file.

If you also want to run the Reach server and see this machine in its console, follow Install the server (Ubuntu) first or after this page.

The install enables and starts the service and enables the per-user unit for every user. Until the machine is enrolled the service does nothing except look for its identity every 30 seconds; it logs how to enrol when it starts and then once an hour. It sends nothing.

Enrol the machine#

Mint an enrolment token (a secret that lets a machine join the server) in the console (step 6 of the server guide), save it with (umask 077; cat > ~/reach-token), then paste the token, press Enter and press Ctrl-D (the file is readable only by you; enrol ignores the line ending), then put it where only the agent account can read it and enrol as that account. The service notices the identity within 30 seconds; no restart is needed.

Shell
sudo install -o reach-agent -g reach-agent -m 0600 ~/reach-token /var/lib/reach-agent/token
sudo -u reach-agent reach-agent enrol --machine --token-file /var/lib/reach-agent/token

enrol deletes the copy in /var/lib/reach-agent, not ~/reach-token: delete that yourself with rm ~/reach-token, since the token may have uses left. If the server was rebuilt and its certificate changed, enrolment and sending fail with a message that says so, and the service log gives the full command, the same as the one below with the token file path /var/lib/reach-agent/token. Get a new token, put it in that file as above, and run the same command with --force:

Shell
sudo -u reach-agent reach-agent enrol --machine --force --token-file /var/lib/reach-agent/token

The running service switches to the new identity by itself, as on Rocky (how soon).

sudo reach-agent status --machine shows Last failed check-in: with the time and a short code (certificate_pin_mismatch, unreachable, retry_later, or the server's own error code), or none when the last check-in worked.

If the service crashes, systemd starts it again after 60 seconds (RestartSec=60, to avoid a restart loop); the same identity is used.

After that the service checks in about hourly and sends a report only when something changed or the server asks (timing, and how far behind the console can be); sudo systemctl restart reach-agent checks in at once. Each user's collector re-reads that user's configuration every 15 minutes, and sends it when it changed or once a day.

A user who signs in after the install gets a collector from their first session, because the unit is enabled for everyone. A user who was already signed in must sign out and in again. The collector keeps running until the user signs out.

Where a user's systemd manager stays running between logins (lingering sessions, common on servers and virtual machines), start their collector once, as that user: systemctl --user daemon-reload && systemctl --user start reach-agent-user (why). After the next reboot it starts by itself.

Look at it#

Shell
sudo reach-agent status --machine          # enrolled, paused, socket, last report, last send
sudo reach-agent show --last --machine     # the last report sent, exactly as sent
sudo reach-agent show --profiles           # which local user each profile label belongs to (root only)
sudo journalctl -u reach-agent             # the service's log (JSON lines; it never logs report bodies)

show --last prints the same bytes the server received. Nothing else leaves the machine.

Pause and resume#

Shell
sudo reach-agent pause
sudo reach-agent resume

Pausing works as on Rocky: the file /etc/reach-agent/paused, which only root can create, stops all sending, even check-ins, until resume; collectors keep working (details).

Configuration#

/etc/reach-agent/agent.toml takes the same keys as on Rocky (configuration). Restart the service after changing it: sudo systemctl restart reach-agent.

Enrol, the clock, and enrolling again#

To send reports to a Reach server, enrol with a token: see Enrol the machine above. Agent and server clocks must agree within 5 minutes (refused beyond 24 hours), and reach-agent enrol --force replaces an existing identity: both are explained in Look after agents.

What the package puts where#

PathWhatOwner and mode
/usr/bin/reach-agentthe agentroot, 0755
/etc/reach-agent/agent.tomlconfiguration; a package configuration file, so apt asks before replacing a copy you editedroot, 0644
/etc/reach-agent/pausedexists only while pausedroot, 0644
/var/lib/reach-agent/identity, spool, outbox (every body sent; at most about 2 MiB: the current file rotates at 1 MiB and one older file is kept), the last failed check-inreach-agent, 0700
/run/reach-agent/collect.sockthe local socket (the folder belongs to reach-agent, 0755; the socket is 0666)reach-agent
/usr/lib/systemd/system/reach-agent.serviceservice unit, enabledroot, 0644
/usr/lib/systemd/user/reach-agent-user.serviceper-user unit, enabled for all users (systemctl --global)root, 0644
/usr/lib/sysusers.d/reach-agent.conf, /usr/lib/tmpfiles.d/reach-agent.confcreate the reach-agent account (no login shell, /usr/sbin/nologin) and the state folderroot
/usr/share/doc/reach-agent/copyright, README.txtlicence and short readmeroot, 0644

Ubuntu uses AppArmor, not SELinux. Reach ships no AppArmor profile, so AppArmor does not confine the service; the systemd sandbox in the unit restricts it. systemd-analyze security reach-agent shows the score for the unit as shipped (1.7 on the Ubuntu virtual machine above).

Resource use#

The unit limits the service to 2 % of one CPU and 64 MB of memory, at idle priority. These are limits set in the unit file, not measurements: no footprint has been measured over days yet.

Remove#

Shell
sudo apt remove reach-agent

This stops and disables the service, disables the per-user unit for everyone and removes the binary. As Debian keeps a removed package's settings until it is purged, it keeps the reach-agent user, the state folder /var/lib/reach-agent (the machine's identity) and /etc/reach-agent/agent.toml. If the service was enabled when you removed it, installing the package again enables the service and the per-user unit again, and the machine reports under the same identity; a service you had disabled stays disabled. Collectors already running in a user's session keep trying until that user signs out.

Shell
sudo apt purge reach-agent

This deletes the rest: the state folder (the identity goes with it), the reach-agent user, agent.toml and the pause flag /etc/reach-agent/paused if the agent was paused (so an agent installed again after a purge is not left paused). Neither remove nor purge tells the server (on remove the identity is kept, and by purge the program is gone), so the server keeps the machine in its list, where it goes silent; retiring a machine from the console is not built yet. (On Rocky Linux, dnf remove deletes the user and the state at once, and tries to tell the server first.) Removal, installing again and purge ran on Ubuntu (build 0.1.1-280, 16 November 2026); the check that the service was enabled, and the removal of the pause flag, came after that run and follow the package scripts and their tests.

Other Debian-family systems#

Ubuntu Server 24.04 LTS is the only system this page targets. Ubuntu 26.04 LTS and Debian 13 use the same systemd layout the package relies on (systemd-sysusers, systemd-tmpfiles, units in /usr/lib/systemd/system and /usr/lib/systemd/user, a merged /usr), so the package is expected to install the same way there. Neither has been tried. Older systems (Ubuntu 22.04, Debian 12) are not targeted. The proof scripts have not yet been run on Ubuntu.

Test setting#

For install tests only: REACH_AGENT_TEST_CHECKIN_SECONDS (240 to 3600) replaces the check-in interval, and shortens the random delay to ten seconds. 240 is the server's own limit for one agent. Set it in a systemd drop-in; do not use it in production. The service logs a TEST SETTING line when it is in effect.