Skip to content
Sunstead DocsMain site

Run the Helion agent

Run one agent on every machine you want to see in Helion. The agent listens on port 7700 and serves the web app there.

The agent runs as an unprivileged user and needs the Docker group to read the Docker socket. Save the group’s ID next to your Compose file:

Terminal window
echo "DOCKER_GID=$(stat -c '%g' /var/run/docker.sock)" >> .env

Save this as helion-agent.toml, with your provider’s details:

node_name = "homeserver"
# Off by default. Turn on to manage containers and volumes from the app.
allow_actions = false
[auth.oidc]
issuer = "https://auth.example.com/application/o/helion/"
client_id = "helion"
# Members of these groups may act (with allow_actions). Everyone else can look.
admin_groups = ["homelab-admins"]
# Report the host's drives. The host's / is mounted at /host/rootfs below.
[[host.disks]]
path = "/host/rootfs"
label = "/"

The agent will not start without [auth.oidc], so a machine is never open by accident.

services:
helion-agent:
image: ghcr.io/sunstead/helion-agent:latest
container_name: helion-agent
restart: unless-stopped
network_mode: host
read_only: true
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
user: '65532:65532'
group_add: ['${DOCKER_GID}']
environment:
HELION_AGENT_CONFIG: /etc/helion-agent/agent.toml
volumes:
- ./helion-agent.toml:/etc/helion-agent/agent.toml:ro
- /var/run/docker.sock:/var/run/docker.sock
- /:/host/rootfs:ro,rslave
- helion_agent_data:/var/lib/helion-agent
volumes:
helion_agent_data:

Then start it with docker compose up -d and open http://<machine>:7700.

The agent reads network traffic from the machine’s own network interfaces. Inside a container’s network, it would only see the container’s traffic. With host networking, ports: does not apply: the agent listens on port 7700 of the machine itself.

Access to the Docker socket is full control of Docker, whatever the mount options say. The agent only changes anything when allow_actions is on and an admin asks. Keep port 7700 off the open internet, for example behind a reverse proxy with HTTPS.

Register Helion with your identity provider as a public client (no client secret) using the authorization code flow with PKCE. Allow the address you open Helion at, followed by /auth/callback, as a redirect URI. For example, https://helion.example.com/auth/callback.

The agent can also report backup status from restic, Tailscale devices, Wake-on-LAN, uptime checks, notifications and update checks, all set in the same config file. Until those options are documented here, email support@sunstead.net for them.