Device service compassd (S1)
compassd connects a Linux server to COMPASS. It keeps the connection open,
renews its access automatically and displays new mail in the service log.
Agents › Servers shows its version and each seat's state.
Without the file sitze.json it does not start or wake agents, and each seat
reports missing (no adapter).
Planned integrations include Codex (codex app-server), the Agent Client
Protocol (such as Mistral Vibe), Claude (Claude Agent SDK), and OpenCode.
Claude can be switched on through sitze.json next to geraet.json
(mode 600): the server's owner sets Python, the entry script, the working
directory and the permission mode (permission_mode); there is no default. Be careful with bypassPermissions: the agent then
runs tools and commands on this server without any prompt, with the service
user's rights.
This has not been accepted with a real Claude yet. Codex and the Agent Client
Protocol are not wired in yet; OpenCode is not implemented.
Available commands
| Command | Result | Exit code |
|---|---|---|
compassd version |
reports the version and its state | 0 |
compassd adapter |
says for each integration whether the service uses it | 0 |
compassd koppeln |
pairs the server using a one-time code | 0 on success |
compassd run |
keeps the connection open, displays mail, reports state and version | 0 on termination by signal, 1 on error or blocking |
compassd login, compassd start |
not implemented | 3 |
| invalid invocation | reports the invocation error | 2 |
The service exchanges identifiers, counts and states only. Mail subjects and bodies do not pass through it. Displaying mail never marks a message as read. The existing Python postman remains available alongside compassd until migration.
Connect and install a server
You need Linux and systemd with a reachable user manager. Building from source requires Go 1.25 or later. Run the script as a regular user without sudo. For continuous operation after logout and reboot, linger must already be enabled for that user. Check it with:
loginctl show-user "$(id -un)" --property=Linger --value
The result must be yes. Otherwise the server administrator enables it with
loginctl enable-linger <user>. The installer checks this before consuming a
one-time code and does not change it.
- Sign in to COMPASS as the owner or an administrator and select the project.
- Open Agents › Servers › Connect a server. You choose no persona; the agent sets up which agents run there on the server.
- Use the code shown once, within 15 minutes. On the target server, from the checked-out source tree, run:
sh compassd/install.sh --trocken --koppeln CODE --compass https://<compass>/api/v1
sh compassd/install.sh --koppeln CODE --compass https://<compass>/api/v1
Each server name can be used only once per project in COMPASS. If the previous
Postman already runs on this server under that name, pairing reports
host_vergeben. The code stays valid. Give compassd its own name with
--host NAME, for example --host my-server-compassd. Lowercase letters,
digits, dot, hyphen and underscore are allowed, at most 63 characters. Do not
disconnect the previous entry for this, or the previous Postman stops working.
The dry run shows the steps, does not consume the code and does not call systemctl. The actual invocation builds the programs from the checkout and starts the user service. Supply your installation's API address; there is no default address. Keep the code out of logs: as a script argument it may appear in shell history and the process list. The installer never prints it.
With an already built compassd in your PATH, you can pair separately without
placing the code in a program argument, then install:
compassd koppeln --compass https://<compass>/api/v1 --code -
# Enter the code on standard input, followed by Enter.
sh compassd/install.sh
An existing key pair is never overwritten. Without a code or an existing pairing, the installer installs files but leaves the service disabled.
Files, network and service
| Type | Location | Permissions |
|---|---|---|
| Data directory | ${XDG_DATA_HOME:-~/.local/share}/compassd/ |
700 |
| Programs | …/bin/compassd, …/bin/tokenmessung |
executable, subject to umask |
| Adapter probe | …/adapter-probe.sh |
755 |
| Pairing | …/geraet/geraet.key and geraet.json |
600, directory 700 |
| User service | ${XDG_CONFIG_HOME:-~/.config}/systemd/user/compassd.service |
644 |
The private Ed25519 key stays on the server. Tokens last 60 minutes and stay
in memory only; the service renews them before expiry. HTTPS is required;
HTTP is allowed only for localhost/127.0.0.1 during local testing. No listening
port is opened. If you need a proxy, set HTTPS_PROXY for pairing and persist
it in the user service's systemd environment. Use --ca FILE when pairing manually
with a private certificate authority.
systemctl --user status compassd.service
journalctl --user -u compassd.service -f
New mail appears as a short notice without message contents in the log. Within
a run, an unchanged newest unread identifier produces no repeated notice.
After a restart, unread mail may be displayed again. The core records the
notice as angezeigt (displayed); this is not delivery to an agent session.
Connection failures trigger retries with increasing delays up to 30 seconds.
Blocking a device ends the service with an explicit error and does not trigger
an automatic restart.
adapter-probe.sh only checks --version for Codex, Claude, Vibe and OpenCode,
with a 10-second timeout. It neither signs in a tool nor starts a session.
Go writes its own build cache and local telemetry files, including during
version checks in a dry run. The installer reports this and warns if Go
telemetry uploads are enabled. These Go files remain after removal.
The installer fails explicitly for root, missing or outdated Go in source mode, an empty HOME, whitespace in target paths, a missing user manager or linger, a foreign unit, a failed pairing or a build failure. It never overwrites or removes a foreign service unit, including during a dry run.
Block and remove
In COMPASS, open Agents › Servers, choose Disconnect for the server and confirm with its name. All its tokens lose access and no new tokens are issued. The running request detects blocking at the next core polling tick.
sh compassd/install.sh --entfernen --trocken
sh compassd/install.sh --entfernen
Removal stops the service and removes only the named programs, probe and unit.
Directories are removed only when empty; unrelated files stay. Repeated
removal is harmless. Pairing files are deliberately retained: to unpair fully,
first disconnect the server in COMPASS, then remove geraet.key and geraet.json
yourself. Linger is left unchanged.
Install a prebuilt program
Extract the compassd-linux artifact for your chosen commit from the trusted
COMPASS CI run. Use install.sh from the same commit. The script selects the
program for linux/amd64 or linux/arm64 and checks it against
SHA256SUMS. The target server does not need Go.
sh compassd/install.sh --artefakte /path/to/compassd-linux --koppeln CODE --compass https://<compass>/api/v1
The Claude adapter comes before the Codex and ACP integrations. Signed packages, automatic updates, browser device flow, multiple projects per device, macOS and Windows belong to later stages.