Netwarden
Back to Documentation
Installationv3.0

Agent Installation Guide

Install the Netwarden agent on Linux, Windows, macOS, FreeBSD/OPNsense or Kubernetes

Last updated: November 21, 2026
8 min read

Agent Installation Guide

The Netwarden agent is a small program that collects metrics and security checks from a machine and sends them to Netwarden over HTTPS. This guide covers every supported way to install it.

Before you start

  • Your Tenant ID and an API key. The app shows both, with copy buttons, right after you sign up, and any time under Settings → API keys → Agent tokens. API keys start with nw_sk_.
  • Outbound HTTPS (port 443) to api.netwarden.com. Nothing needs to reach the machine from outside.
  • Root or Administrator rights to install.

The agent runs on Linux (Debian, Ubuntu, RHEL, Rocky, Alma, Fedora and other systemd distributions, on amd64, arm64 and armv7), Windows 10, 11 and Server 2016 or later (64-bit), macOS (Apple Silicon and Intel), FreeBSD and OPNsense, and Kubernetes.

Linux and macOS: one command (recommended)

bash
curl -fsSL https://get.netwarden.com/install.sh | sudo bash -s -- --tenant-id YOUR_TENANT_ID --api-key YOUR_API_KEY

The script detects the system, installs the package (apt or dnf/yum on Linux, a launchd service on macOS), writes your Tenant ID and API key into the configuration and starts the agent. The machine appears in the app within a minute.

Linux packages by hand

Debian and Ubuntu

bash
# x86_64/amd64 (use arm64 or armhf for ARM)
wget https://get.netwarden.com/netwarden-latest.amd64.deb
sudo dpkg -i netwarden-latest.amd64.deb
sudo apt-get install -f

The package adds Netwarden's signed apt repository, so later versions come with your normal upgrades.

RHEL, Rocky, Alma and Fedora

bash
# x86_64 (use aarch64 or armv7hl for ARM)
sudo rpm -ivh https://get.netwarden.com/netwarden-latest.x86_64.rpm

The package installs the signed repository (/etc/yum.repos.d/netwarden.repo), so dnf update picks up new versions.

Configure and start

Edit /etc/netwarden/netwarden.conf:

yaml
tenant_id: YOUR_TENANT_ID
api_key: nw_sk_your_key_here

Then start the service:

bash
sudo systemctl enable --now netwarden
sudo systemctl status netwarden

Windows

  1. Download the installer from the Downloads page (x64 or ARM64). It is signed with Netwarden's code-signing certificate.
  2. Run it as Administrator.
  3. Enter your Tenant ID and API key when it asks.

The agent installs to C:\Program Files\Netwarden and runs as a Windows service. Its configuration is C:\Program Files\Netwarden\netwarden.conf.

macOS by hand

The one-line command above is the easiest way. To install from the archive instead:

bash
# Apple Silicon (use macos-intel for Intel Macs)
curl -LO https://get.netwarden.com/netwarden-latest-macos-arm64.tar.gz
tar -xzf netwarden-latest-macos-arm64.tar.gz
cd netwarden-*-macos-arm64
sudo ./scripts/install.sh

The configuration is /etc/netwarden/netwarden.conf (machines installed by older versions keep using /usr/local/etc/netwarden/netwarden.conf). The agent runs under launchd as com.netwarden.agent.

FreeBSD and OPNsense

Run as root (on OPNsense, from the shell or an SSH session as root):

bash
fetch -o - https://get.netwarden.com/install-freebsd.sh | sh -s -- --tenant-id YOUR_TENANT_ID --api-key YOUR_API_KEY

The configuration is /usr/local/etc/netwarden/netwarden.conf.

Kubernetes

In the app, choose Add host and the Kubernetes tab. It gives you one kubectl apply command with your token already in it. The manifest runs the agent in the cluster and reports nodes, workloads, failed jobs and image pull problems; you can also turn on ingress log analysis there. See the container monitoring guide for what it collects.

Configuration options

The configuration file uses key: value lines. Anything after a # (with a space before it) is a comment. Quotes around a value are optional: api_key: nw_sk_abc and api_key: "nw_sk_abc" are read the same.

| System | Configuration file | |---|---| | Linux, macOS | /etc/netwarden/netwarden.conf | | FreeBSD, OPNsense | /usr/local/etc/netwarden/netwarden.conf | | Windows | C:\Program Files\Netwarden\netwarden.conf |

yaml
# Required
tenant_id: YOUR_TENANT_ID              # Your 10-character Tenant ID
api_key: nw_sk_your_key_here           # Your API key (starts with nw_sk_)
# server_url: https://api.netwarden.com  # Only for a self-hosted platform

# Logging
log_level: info                        # debug, info, warn, error
# log_file: /var/log/netwarden/netwarden.log   # the default on Linux and macOS
# hostname: custom-hostname            # Override the detected hostname

# Core collectors (all on by default)
enable_cpu: true
enable_memory: true
enable_disk: true
enable_system: true
enable_network: true

# Self-update (on by default)
self_update: true                      # false to upgrade by hand instead
# self_update_window_start: 1          # Local hour the update window opens
# self_update_window_end: 5            # Local hour it closes
# self_update_url: https://mirror.internal/netwarden-{version}-{os}-{arch}-installer.exe
# self_update_signers: spki-sha256:<hex>   # Accept your own signing key

# Containers
enable_containers: true
container_runtime: auto                # auto, docker, podman, containerd
# container_socket: /var/run/docker.sock
# container_stats_interval: 60s

# Virtual machines (off by default)
enable_vms: false
vm_hypervisor: auto                    # auto, proxmox, libvirt, kvm, xen, qemu
# vm_stats_interval: 60s

# Proxmox (when vm_hypervisor is proxmox)
# proxmox_api: https://proxmox.example.com:8006
# proxmox_username: monitoring@pve
# proxmox_password: your_password
# proxmox_token_id: monitoring@pve!token     # or token auth instead
# proxmox_token_secret: your_token_secret
# proxmox_node:                              # empty for all nodes
# proxmox_skip_tls_verify: false

# Databases (off by default)
enable_postgresql: false
# postgresql_host: localhost:5432
# postgresql_user: monitoring
# postgresql_password: secret
# postgresql_database: postgres

enable_mysql: false
# mysql_host: localhost:3306
# mysql_user: monitoring
# mysql_password: secret

# Processes and security
enable_process_monitoring: true
enable_security: true
# enable_cis: false                    # CIS benchmark checks
# enable_fim: false                    # File integrity monitoring

Restart the agent after changing the file: sudo systemctl restart netwarden on Linux, sudo launchctl kickstart -k system/com.netwarden.agent on macOS, service netwarden restart on FreeBSD, or restart the Netwarden service on Windows.

Keeping the agent up to date

The agent updates itself on every platform. It does not poll anything extra: the platform it already reports to answers each report with the current version and where to download it, so there is no extra host to allow through a firewall. Updates are applied inside a maintenance window (01:00 to 05:00 local time by default) with a random delay, because installing one restarts the service.

  • Windows: the agent downloads the signed installer and checks its code signature before running it.
  • Linux: the agent asks the package manager to upgrade from Netwarden's signed apt or dnf repository. You can also upgrade yourself at any time with sudo apt-get install --only-upgrade netwarden or sudo dnf update netwarden.
  • macOS and FreeBSD: each release is signed by Netwarden, and the agent checks that signature before installing.
  • Kubernetes: the agent restarts and the cluster pulls the new image.

Three local settings override whatever the platform says, and always win:

| Setting | Use it when | |---|---| | self_update: false | Change control forbids unattended upgrades | | self_update_url | Airgapped sites and internal mirrors. Supports {version}, {os}, {arch}, must be HTTPS | | self_update_signers | You build and sign the agent yourself. Replaces the built-in signers rather than adding to them |

The platform can say where to download from, but never who to trust: the accepted signers are a local setting only.

Check the newest published version at any time:

bash
curl -s https://get.netwarden.com/VERSION

Verifying the installation

The machine shows up on the Hosts page within a minute of the agent starting. On Linux you can also check the service:

bash
sudo systemctl status netwarden
sudo journalctl -u netwarden -n 50

and that the machine can reach Netwarden:

bash
curl -I https://api.netwarden.com/health

A 200 response means the network path is open.

Troubleshooting

The machine doesn't appear

  1. Read the agent's log: sudo journalctl -u netwarden -n 50 (Linux), /var/log/netwarden/netwarden.log (macOS and Linux), or netwarden.log next to the executable in C:\Program Files\Netwarden (Windows).
  2. Check the Tenant ID and API key in the configuration file against Settings → API keys in the app. A key that was revoked or mistyped shows as an authentication error in the log.
  3. Check that the machine can reach https://api.netwarden.com/health. Proxies and firewalls that intercept HTTPS are the usual cause.

High resource use

Turn off collectors you don't need in the configuration file (for example enable_vms or enable_process_monitoring) and restart the agent.

Uninstalling

bash
sudo apt remove --purge netwarden   # Debian, Ubuntu
sudo dnf remove netwarden           # RHEL, Rocky, Alma, Fedora
pkg delete netwarden-agent          # FreeBSD, OPNsense

On Windows, uninstall Netwarden from Settings → Apps. On macOS, stop the service with sudo launchctl bootout system/com.netwarden.agent, then delete /Library/LaunchDaemons/com.netwarden.agent.plist and the agent's files. On Kubernetes, kubectl delete the same manifest you applied.

Then remove the machine from the Hosts page if you don't want its history.

Next steps

Something unclear or wrong on this page? Write to us and the people who build Netwarden will fix it.