Skip to content
Free test

Install the agent (Rocky, RPM)

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-rpm.md in the private Reach repository, commit 08df4b0, 21 November 2026.

The guide: Installing the Reach agent on Rocky Linux 9 (RPM)

Reach is in development. Its packages are not published.

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, for evaluation only, not for production machines.

What was tested: the aarch64 RPM on Rocky Linux 9 in a virtual machine, against a Reach server on the same machine (packaging/test-agent-service-in-vm.sh, every check PASS or FAIL). On 16 November 2026 builds 0.1.0 and then 0.1.1 were installed in a Rocky Linux 9.8 x86_64 virtual machine in our own lab, SELinux enforcing: the agent RPM, enrol --machine (the token file was removed), the first report about 30 seconds after enrolling, the sandbox score below, and no SELinux denials naming Reach. After a reboot of that machine on build 0.1.0, it was back in about 26 seconds and the agent was active without anyone starting it, with no restarts and still enrolled (16 November 2026, one machine). A long run has not been finished there. On that stock Rocky Linux 9 cloud image /proc is not mounted with hidepid; the agent reads process names from /proc to see which known tools are running (what is read), and on a system that hides other users' processes it would see fewer (not tested). RHEL 9 and Rocky or RHEL 10 have not been tested. 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 (Rocky), step 1. With the RPM on the machine:

Shell
sudo dnf install <folder>/reach-agent-<version>-<build>.<arch>.rpm

dnf may warn that the package is not signed. That is expected for this build. Use <arch> aarch64 or x86_64 to match the machine (uname -m).

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 (Rocky) 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 and log 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 reads identity.json again before each check-in and switches to the new identity by itself; no restart is needed. While check-ins are failing it retries every minute at first (growing to six hours), so it picks the new identity up within a minute or so. A healthy service checks in about hourly, so after a forced re-enrolment the switch can take up to that long; sudo systemctl restart reach-agent does it at once. (Run as an ordinary user, reach-agent enrol --force makes a per-user identity and changes nothing for the service. The per-user form is only for a one-shot scan --send on a machine without the service.)

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.

One case needs a manual start. Where the user's systemd manager stays running between logins (lingering sessions, common on servers and virtual machines), a new login does not start the unit, because the manager started before the package was installed and does not run default.target again. A unit setting cannot fix this. Start it once for that user: systemctl --user daemon-reload && systemctl --user start reach-agent-user. After the next reboot the unit 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 writes the file /etc/reach-agent/paused, which only root can create. While it exists the service sends nothing at all, not even a check-in; collectors keep working and the service keeps their latest snapshots, and after resume a running, enrolled service tries to check in within about 30 seconds, or 4 minutes after its last check-in if that is later (the server's limit); when the server is reached that brings it up to date (the prompt check-in after resume has not been run on a Linux machine; on one Windows 11 virtual machine it came 27 seconds after a resume). sudo reach-agent status without --machine, for an account with no enrolment of its own such as root, shows the machine's service under the line This account has no enrolment of its own; this is the machine's service. A pause cannot be set by a message to the socket, and a user cannot pause or resume the agent. Pausing from the server's side is not built yet; the agent already obeys a server that says so.

Configuration#

/etc/reach-agent/agent.toml is read when the service starts. Keys: proxy (an http:// or https:// proxy address), tls_ca_file (extra CA certificates to trust, for example reach-ca.pem; see Certificates and TLS), log_level (debug, info, warn, error) and server_url (checked, but not used: after enrolment the server address comes only from the identity). The environment variables REACH_AGENT_PROXY, REACH_AGENT_TLS_CA_FILE and REACH_AGENT_LOG_LEVEL override the file. The agent refuses the file if it, or its folder, can be written by anyone but root, and refuses unknown keys. 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; kept on upgrade if you edit itroot, 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) and the state folderroot

In the Rocky Linux 9.8 x86_64 virtual machine above, systemd-analyze security reach-agent.service gave an exposure score of 1.7 (OK) for the unit as shipped.

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 dnf remove reach-agent

This stops and disables the service, disables the per-user unit for everyone, removes the binary, the reach-agent user and the state folder (the identity goes with it). Collectors already running in a user's session keep trying until that user signs out. Before the state folder is deleted, the removal tries to tell the server that the machine is uninstalled. The agent gives up after 15 seconds, and the whole step is ended after at most 25 (timeout -k 5 20); a failure does not stop the removal. A server that was told lists the machine as Retired. dnf shows the agent's one line among its output: Told the server, which now lists this machine as retired. or The server already lists this machine as retired.; otherwise a line starting goodbye: that says what is known: no goodbye was sent (no identity was found, or the machine is paused); nothing was sent, and why (an identity or settings that could not be used, or a server certificate that does not match the pin); the server did not take it and asked to wait; the server refused it; an answer came that could not be verified; or no answer came. A machine the server was not told about stays in its list, where it goes silent; sudo reach-agent goodbye cannot help after the removal, because the identity is gone. Retiring a machine from the console is not built yet. The goodbye is tested in Go and with the package scripts' stand-ins; it has not yet been seen in a real removal. A modified agent.toml is normally kept by RPM as agent.toml.rpmsave; this was not tested.

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.