Installation Guide
Detailed installation instructions for all supported Linux distributions.
Supported operating systems
| Distribution | Versions | Architecture |
|---|---|---|
| Ubuntu | 20.04, 22.04, 24.04 | x86_64, arm64 |
| Debian | 11 (Bullseye), 12 (Bookworm) | x86_64, arm64 |
| CentOS | 7, 8, 9 (Stream) | x86_64 |
| AlmaLinux | 8, 9 | x86_64, arm64 |
| Rocky Linux | 8, 9 | x86_64, arm64 |
| Amazon Linux | 2, 2023 | x86_64, arm64 |
Quick install
Go to your dashboard, click Add Server, and copy the install command. It includes your token and server ID:
Install command
$ curl -sSL https://cdn.helmrelay.com/install.sh | sudo bash -s -- --token YOUR_TOKEN --server-id YOUR_SERVER_IDThis script automatically detects your OS and architecture, then:
- Downloads the correct agent binary
- Installs it to
/usr/local/bin/helmrelay-agent - Creates a systemd service (
helmrelay-agent.service) - Creates a config directory at
/etc/helmrelay/ - Writes your token and server ID to the config
- Starts the agent and enables it on boot
Manual installation
If you prefer to install manually:
1. Download the binary
# For x86_64
wget https://cdn.helmrelay.com/agent/lts/helmrelay-agent-linux-amd64 -O /usr/local/bin/helmrelay-agent
# For arm64
wget https://cdn.helmrelay.com/agent/lts/helmrelay-agent-linux-arm64 -O /usr/local/bin/helmrelay-agent
chmod +x /usr/local/bin/helmrelay-agent2. Create the config file
sudo mkdir -p /etc/helmrelay
sudo cat > /etc/helmrelay/agent.yaml << EOF
server_url: https://api.helmrelay.com
token: YOUR_TOKEN_HERE
server_id: YOUR_SERVER_ID
log_level: info
EOF3. Create the systemd service
sudo cat > /etc/systemd/system/helmrelay-agent.service << EOF
[Unit]
Description=HelmRelay Agent
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/helmrelay-agent
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=helmrelay-agent
[Install]
WantedBy=multi-user.target
EOF4. Start the agent
sudo systemctl daemon-reload
sudo systemctl enable helmrelay-agent
sudo systemctl start helmrelay-agentVerify installation
# Check service status
sudo systemctl status helmrelay-agent
# Check agent version
helmrelay-agent --version
# View recent logs
sudo journalctl -u helmrelay-agent -n 50 --no-pagerFirewall requirements
The agent needs outbound HTTPS access. No inbound ports required.
| Direction | Port | Protocol | Destination |
|---|---|---|---|
| Outbound | 443 | TCP (HTTPS/WSS) | api.helmrelay.com |
If you're behind a corporate proxy, set the HTTPS_PROXY environment variable in the systemd service file.
Updating the agent
The agent auto-updates by default. To update manually, re-run the install command with your token:
Update command
$ curl -sSL https://cdn.helmrelay.com/install.sh | sudo bash -s -- --token YOUR_TOKEN --server-id YOUR_SERVER_IDOr via the dashboard: Server → Settings → Update Agent.