1. Download the binary
Agent binaries are distributed through Apiphani’s Agent Releases. Your Apiphani contact will share the download location and version targeted to your platform (Linux or Windows).2. Place it on the Patch server
Copy the binary to a stable directory on the Patch server — typically something like/opt/luumen on Linux or C:\Program Files\Luumen on Windows. The agent doesn’t need much alongside it: just the optional config.yaml if you’re using one, and any SSH private keys you want to keep on the Patch server.
On Linux, make the binary executable:
3. Configure the API key
The agent needs your Luumen API key to communicate with the API. You have two options: Option A — environment variable (recommended):Environment= or EnvironmentFile=) so the agent’s service user picks it up automatically.
Option B — config.yaml next to the binary:
base_url to point at their own API endpoint. See Agent configuration for the full local-config reference.
Everything else — host list, credentials, schedule, Vault, and integration settings — lives in the Luumen UI and is fetched by the agent on every run.
4. Install as a service
Register the agent as a system service so it starts automatically and runs on its schedule. Run this once during install:5. Verify the first run
After install, the agent triggers an initial run automatically. To confirm it succeeded:- Open the Luumen UI and go to the Hosts page. You should see each host you’ve configured listed within a few minutes of the first run.
- Check the local log directory (default
./log, configurable viaLUUMEN_LOG_DIR). The latest run produces a dated directory containing per-host check logs and anagent.logsummary at the root.
Running the agent manually
You don’t need to run the agent manually under normal operation — the service runs it on the configured schedule. For one-off testing (e.g., after adding new hosts, or to confirm a credential fix), invoke the binary directly without the--install-service flag:
config.yaml, pulls the latest host list and settings from the Luumen API, runs a single collection cycle, and exits. Log output goes to the same log_dir as scheduled runs.
Reinstalling or upgrading
To upgrade to a new version of the agent:- Stop the existing service.
- Replace the binary with the new version in the same location.
- Restart the service.