# Run the program alone

The program alone is built for Linux, Windows, macOS and routers; each file's state, its limits and what Coronium observed of it are listed below, under Each system. It has no installer and no service: start it from a shell with the three settings of `agent.env` in its environment, never as arguments, as an ordinary user and never as root, and keep it running with a supervisor of your own. On Linux with systemd, the kit's `coronium-agent.service` is one. Calls go to https://supply.coronium.ai.

## Needs

- The file for the system, checked as in [the files section](/guides/device-files.md), and `agent.env` from [enrolment](/guides/device-enrol.md).
- Outbound TCP to the relay, no inbound port, and one device per public address.
- On Linux and routers, the system's certificate roots: without them the program logs that the system has none, with the package to install. Windows and macOS check the relay's certificate with their own store.

## Steps

1. Start it. On Linux, macOS and routers, put the file's name in `FILE`:

```sh
umask 077
FILE=coronium-agent-linux-amd64
chmod 0755 "$FILE"
(set -a; . ./agent.env; set +a; exec "./$FILE")
```

On Windows, in PowerShell, in the folder of the file and `agent.env`:

```powershell
Get-Content agent.env | ForEach-Object { $name, $value = $_ -split '=', 2; Set-Item "env:$name" $value }
.\coronium-agent-windows-amd64.exe
```

Expect: `connected to the relay`. Each problem is one line, `not connected: <cause>. Fix: <fix>. Dialing again in <time>`, and the program dials again by itself after a lost connection. A setting it refuses ends it with exit status 2 and `<code>: <cause>. Fix: <fix>`: `bad_relay`, `bad_device_id` or `bad_secret` means `agent.env` is wrong. Safe to repeat: yes, one copy at a time; a second copy with the same settings replaces the first at the relay.

2. Know each system's limits, which `/kit/index.json` lists for each file.

- Windows and macOS: the file has no code signature, so the system may warn about it or block a copy a browser downloaded; a copy fetched with curl carries no download mark.
- Routers: copy the file to the router, and check that it has certificate roots, room in flash and memory, and a clock set by NTP, because a router that boots with its clock in the past fails the certificate check until the time is set. A router's memory, flash, resolver and clock are not measured by Coronium yet.

## Each system

The next build's state and limits of the program's files; `/kit/index.json` speaks for what this server publishes now:

<!-- facts:begin kit.program -->
- `linux` on `amd64`: `available`; limits `system_ca_roots_required`.
- `linux` on `arm64`, `armv7`, `armv6`, `riscv64`: `preview`; limits `not_run_by_coronium`, `system_ca_roots_required`.
- `linux` on `mips`, `mipsle`: `preview`; limits `not_run_by_coronium`, `no_installer`, `system_ca_roots_required`, `large_for_small_flash`.
- `windows` on `amd64`, `arm64`: `preview`; limits `not_run_by_coronium`, `unsigned`, `no_installer`.
- `darwin` on `arm64`: `preview`; limits `not_run_by_coronium`, `unsigned`, `no_installer`.
<!-- facts:end kit.program -->

What Coronium observed of each published file, the kit and the image included. A dated note speaks only for the digest it names:

- Linux `amd64` kit and program: `available` by a stated exception, on two runs of two earlier builds, until a device outside Coronium replaces both.
- Docker `amd64`, digest `bd501040b7432344`: on 26 November 2026, connected, measured and withheld as a data-centre network. No billed request.
- Windows `amd64` and `arm64`, digests `e2a3557e46c9e546` and `5ca66a8dec3becd9`: on 26 November 2026, started on hosted virtual machines of their architecture and reached the relay's refusal of an unknown device. Never enrolled.
- macOS `arm64`, digest `c739273a9de679a3`: on 26 November 2026, run once on a Mac on a home line: connected, measured and withheld as an unclassified network. No billed request.
- Linux `arm64`, `armv7`, `armv6`, `riscv64` and both router files: run only under emulation, which is not a run on that system.

## Stop and remove

Ctrl-C, or ending the process, stops it. Delete the file and `agent.env`, which holds the secret, to remove it. Removing it does not withdraw the device; [the states section](/guides/device-states.md) says how.
