Menu

Site navigation

LivePulser
Browse the docs

Install the server agent

Get the LivePulser agent and run it as a service on Linux, macOS or Windows.

The LivePulser agent is a small program that runs on your server and sends CPU, memory, disk, swap and network readings to a resource monitor. This guide takes you from getting the agent to a running service on Linux, macOS or Windows, and covers testing, logs, updates and removal.

You need a resource monitor first; resource monitors are on paid plans only. If you don't have one, follow Set up a server monitor, then come back with its monitor ID and API key.

Supported systems

PlatformArchitecturesRuns as
Linux with glibc 2.28 or lateramd64 (x86_64), arm64 (aarch64)A systemd service
macOS 11 or laterApple silicon and Intel (one universal binary)A launchd daemon
Windows 10 or Windows Server 2016 and lateramd64 (x64)A Windows service

Install the agent on the host, not in a container. It measures the machine it runs on, and running it inside a container isn't supported. To watch a Docker or Kubernetes host, install the agent on the host itself. Each server needs its own resource monitor and its own key.

On Linux without systemd, you can still run the agent under another supervisor; see Running without a service manager.

Get the agent

The quick install below downloads the agent for you. To install by hand, download the latest release archive for your platform from the agent's releases page on GitHub. The agent is open source (MIT), so you can also read or build it from its source code.

PlatformRelease archiveContents
Linuxlivepulser-agent-<version>-linux-amd64.tar.gz or …-linux-arm64.tar.gzThe binary, agent.conf.example, the systemd unit livepulser-agent.service
macOSlivepulser-agent-<version>-macos-universal.tar.gzThe binary, agent.conf.example, the launchd plist, install.sh and uninstall.sh
Windowslivepulser-agent-<version>-windows-amd64.ziplivepulser-agent.exe, agent.conf.example, install.ps1 and uninstall.ps1

Every archive also contains the README, the changelog and the licence files. Releases come with a SHA256SUMS file, and every release file has a build provenance attestation you can check with the GitHub CLI: gh attestation verify FILE --repo livepulser/livepulser-agent. Compare the archive's checksum with the matching line before installing:

Check an archive
sha256sum livepulser-agent-<version>-linux-amd64.tar.gz        # Linux
shasum -a 256 livepulser-agent-<version>-macos-universal.tar.gz # macOS
Get-FileHash .\livepulser-agent-<version>-windows-amd64.zip     # Windows PowerShell

The agent has no runtime dependencies beyond the operating system: it uses the system's libcurl on Linux and macOS and the built-in WinHTTP on Windows. It bundles one small library, cJSON.

Before you start

  • The monitor ID and API key from the dashboard. The ID is under Agent connection & API key on the monitor page; the key is shown once, when it's issued.
  • Administrator rights: root or sudo on Linux and macOS, an elevated PowerShell prompt on Windows.
  • Outbound HTTPS (port 443) from the server to https://rs.livepulser.com. The agent only makes outbound connections and never listens on a port.
  • An accurate clock. Keep NTP (or Windows time sync) running: readings timestamped more than 2 minutes ahead of LivePulser's clock, or more than 5 minutes behind it, are rejected.
  • If the server reaches the internet through a proxy, the proxy's URL. The agent ignores system and environment proxy settings; you set the proxy in its configuration file.

Quick install

One command installs the agent as a service, the same way the manual steps below do. The dashboard shows it with your monitor ID filled in, under Agent connection & API key and on the screen after you create the monitor.

Linux and macOS
curl -fsSL https://github.com/livepulser/livepulser-agent/releases/latest/download/install.sh | sudo sh -s -- --monitor-id <monitor-id>
Windows (PowerShell as Administrator)
& ([scriptblock]::Create((irm https://github.com/livepulser/livepulser-agent/releases/latest/download/install.ps1))) -MonitorId <monitor-id>
  1. It downloads the release for your machine and checks it against the release's SHA256SUMS.
  2. It asks for the API key, so the key never appears in the command line or your shell history. Paste it and press Enter.
  3. It creates the service account, writes the configuration and key with the permissions listed under Installed files, and runs --check with the new agent before it replaces or starts anything. If a step fails, an existing installation is left as it was.
  4. It starts the service. The dashboard shows the server about one upload interval later; see Confirm the first report.

On Linux it needs systemd and glibc 2.28 or later (Ubuntu 20.04, Debian 12, RHEL, Rocky Linux or AlmaLinux 8, Amazon Linux 2023, Fedora, openSUSE Leap 15 or newer), and installs libcurl with your package manager if it's missing. To read the script before running it, download it first with curl -fsSLO …/install.sh. For an unattended install on Linux or macOS, put the key in a file readable only by root and add --api-key-file /path/to/key; nothing is asked then.

The sections below cover the same installation step by step, for when you'd rather do it by hand.

Install on Linux

Use the release archive for your architecture (run uname -m: x86_64 is amd64, aarch64 is arm64), or build from source. Then configure and start the service.

Linux: copy the release files

Linux, release archive
tar -xzf livepulser-agent-<version>-linux-amd64.tar.gz
cd livepulser-agent-<version>-linux-amd64
sudo install -m 0755 livepulser-agent /usr/local/bin/livepulser-agent
sudo install -d -m 0750 /etc/livepulser-agent
sudo install -m 0640 agent.conf.example /etc/livepulser-agent/agent.conf
sudo install -m 0644 livepulser-agent.service /etc/systemd/system/livepulser-agent.service

The binary uses the system's libcurl. Run ldd /usr/local/bin/livepulser-agent; if a line says not found, install your distribution's libcurl package. The Linux release binaries need glibc 2.28 or later. On an older distribution, or one without glibc such as Alpine, build from source.

Linux: build from source

Install a C compiler, make and the libcurl development files, then build and install from the source folder:

Linux, from source
# Debian and Ubuntu
sudo apt install build-essential libcurl4-openssl-dev ca-certificates
# Fedora, RHEL and similar
sudo dnf install gcc make libcurl-devel

make
sudo make install

make builds build/livepulser-agent. sudo make install copies it to /usr/local/bin, creates /etc/livepulser-agent with an example agent.conf (an existing one is kept), and installs the systemd unit.

Linux: configure and start

  1. Create the account the agent runs as:
    sudo useradd --system --no-create-home --shell /usr/sbin/nologin livepulser-agent
  2. Create the key file, readable by root and the agent only, then write the key into it. Paste the key, press Enter, then press Ctrl-D:
    sudo install -m 0640 -o root -g livepulser-agent /dev/null /etc/livepulser-agent/api-key
    sudo sh -c 'cat > /etc/livepulser-agent/api-key'
  3. Let the agent read its configuration folder and file:
    sudo chgrp livepulser-agent /etc/livepulser-agent /etc/livepulser-agent/agent.conf
  4. Open the configuration with sudoedit /etc/livepulser-agent/agent.conf and replace the example monitor_id with your monitor ID. Leave the other lines as they are:
    /etc/livepulser-agent/agent.conf
    endpoint=https://rs.livepulser.com
    monitor_id=<monitor-id>
    api_key_file=/etc/livepulser-agent/api-key
  5. Check the setup as the agent's user (see Check the installation):
    sudo -u livepulser-agent /usr/local/bin/livepulser-agent --config /etc/livepulser-agent/agent.conf --check
  6. Start the service and make it start at boot:
    sudo systemctl daemon-reload
    sudo systemctl enable --now livepulser-agent

The unit runs the agent as livepulser-agent in a strict systemd sandbox, creates its state folder /var/lib/livepulser-agent, restarts it 30 seconds after a failure, and doesn't restart it when the key is rejected or the configuration is invalid (exit codes 77 and 78).

Install on macOS

From the release archive, extract it and work in its folder. If you downloaded the archive with a web browser, remove the quarantine flag first: the release binary isn't notarized by Apple.

macOS, release archive
tar -xzf livepulser-agent-<version>-macos-universal.tar.gz
cd livepulser-agent-<version>-macos-universal
xattr -d com.apple.quarantine livepulser-agent   # only if downloaded with a browser
sudo ./install.sh ./livepulser-agent

To build from source instead, install the Xcode command line tools (xcode-select --install), then run make and sudo packaging/macos/install.sh build/livepulser-agent from the source folder. Use install.sh rather than make install on macOS, because only the script creates the agent's user and state folder.

install.sh creates the hidden _livepulser user, copies the binary to /usr/local/bin/livepulser-agent, and creates the configuration, an empty key file, the state folder and the launchd plist. Then:

  1. Write the key (paste it, press Enter, then Ctrl-D):
    sudo sh -c 'cat > /usr/local/etc/livepulser-agent/api-key'
  2. Edit the configuration with sudo nano /usr/local/etc/livepulser-agent/agent.conf. Set monitor_id to your monitor ID. The example file points api_key_file at the Linux path, so change it to the macOS one:
    /usr/local/etc/livepulser-agent/agent.conf
    endpoint=https://rs.livepulser.com
    monitor_id=<monitor-id>
    api_key_file=/usr/local/etc/livepulser-agent/api-key
  3. Check the setup as the agent's user:
    sudo -u _livepulser /usr/local/bin/livepulser-agent --config /usr/local/etc/livepulser-agent/agent.conf --check
  4. Start the daemon. It also starts at every boot from now on:
    sudo launchctl bootstrap system /Library/LaunchDaemons/com.livepulser.agent.plist

launchd restarts the agent after any non-zero exit, at most once a minute. A rejected key therefore keeps retrying once a minute until you fix it, so check the log after installing.

Install on Windows

  1. Extract the release zip and open an elevated PowerShell prompt (Run as administrator) in the extracted folder:
    PowerShell
    Expand-Archive .\livepulser-agent-<version>-windows-amd64.zip -DestinationPath .
    cd .\livepulser-agent-<version>-windows-amd64
  2. Run the install script with your monitor ID, and paste the API key when it asks for Resource monitor API key:
    PowerShell (as Administrator)
    .\install.ps1 -MonitorId 00000000-0000-4000-8000-000000000000
    Replace the example UUID with your monitor ID. If PowerShell refuses to run the script because running scripts is disabled, allow it for this window only with Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass and run it again.

The script:

  • checks the monitor ID and key look valid;
  • creates the LivePulserAgent service (delayed automatic start, restarts after a crash) running under the NT SERVICE\LivePulserAgent virtual account;
  • copies the agent to C:\Program Files\LivePulser Agent;
  • writes agent.conf and api-key to C:\ProgramData\LivePulser, readable only by Administrators, SYSTEM and the service;
  • runs --check, and starts the service only if it passes.

Running the script again stops the service, keeps the existing agent.conf, writes the key you paste, and starts the service again if the check passes. To change the monitor ID or add a proxy later, edit C:\ProgramData\LivePulser\agent.conf from an elevated editor, then run Restart-Service LivePulserAgent.

Check the installation

--check reads the configuration and key, fetches the monitor's settings from LivePulser, prints them and exits. It proves the monitor ID, key, network path and TLS all work, without starting the service. Run it as the agent's own user (on Windows, from an elevated prompt) so it reads the files with the same permissions:

Run --check
# Linux
sudo -u livepulser-agent /usr/local/bin/livepulser-agent --config /etc/livepulser-agent/agent.conf --check
# macOS
sudo -u _livepulser /usr/local/bin/livepulser-agent --config /usr/local/etc/livepulser-agent/agent.conf --check
# Windows (elevated PowerShell)
& "C:\Program Files\LivePulser Agent\livepulser-agent.exe" --config C:\ProgramData\LivePulser\agent.conf --check

A successful check prints something like this and exits with code 0:

Output
configuration version 1
upload interval 60s
sample interval 10s
alert after 30s above threshold
recover after 60s below threshold (margin 0)
status active
disk path /
network interface (default route)

status paused means the monitor is paused in the dashboard; the agent will start sending once you resume it. If the check fails, it prints the reason; see Troubleshooting.

Run in the foreground for a test

To watch the agent work, stop the service and run the agent by hand with --verbose. Only one agent can use the state folder at a time, so the service must be stopped first. Press Ctrl+C to stop, then start the service again.

Linux
sudo systemctl stop livepulser-agent
sudo install -d -m 0700 -o livepulser-agent -g livepulser-agent /var/lib/livepulser-agent   # if it doesn't exist yet
sudo -u livepulser-agent /usr/local/bin/livepulser-agent --config /etc/livepulser-agent/agent.conf --verbose
sudo systemctl start livepulser-agent
macOS
sudo launchctl bootout system/com.livepulser.agent
sudo -u _livepulser /usr/local/bin/livepulser-agent --config /usr/local/etc/livepulser-agent/agent.conf --verbose
sudo launchctl bootstrap system /Library/LaunchDaemons/com.livepulser.agent.plist
Windows (elevated PowerShell)
Stop-Service LivePulserAgent
& "C:\Program Files\LivePulser Agent\livepulser-agent.exe" --config C:\ProgramData\LivePulser\agent.conf --verbose
Start-Service LivePulserAgent

Logs go to the terminal. A healthy start looks like this, with debug lines for each sample in between; the first upload accepted appears about one upload interval after the start:

Output
2026-10-31T09:00:00Z info: livepulser-agent <version> starting for monitor <monitor-id>
2026-10-31T09:00:03Z info: configuration loaded: version 1, upload every 60s, sample every 10s, active
2026-10-31T09:01:03Z info: upload accepted

Use the same state folder as the service, as above. A different state folder starts a new agent session, and LivePulser only accepts a new session once the old one has been silent for three upload intervals plus 30 seconds.

Manage the service

TaskLinux (systemd)macOS (launchd)Windows (elevated PowerShell)
Statussystemctl status livepulser-agentsudo launchctl print system/com.livepulser.agentGet-Service LivePulserAgent; sc.exe query LivePulserAgent also shows the exit code
Restartsudo systemctl restart livepulser-agentsudo launchctl kickstart -k system/com.livepulser.agentRestart-Service LivePulserAgent
Stopsudo systemctl stop livepulser-agentsudo launchctl bootout system/com.livepulser.agent (it starts again at the next boot)Stop-Service LivePulserAgent
Startsudo systemctl start livepulser-agentsudo launchctl bootstrap system /Library/LaunchDaemons/com.livepulser.agent.plistStart-Service LivePulserAgent
Reload the keysudo systemctl reload livepulser-agentsudo launchctl kill HUP system/com.livepulser.agentsc.exe control LivePulserAgent paramchange

You don't need to restart the agent after changing thresholds or the upload interval in the dashboard; it picks them up by itself. Restart it after editing agent.conf.

Confirm the first report

Open the monitor in the dashboard. About one upload interval after the agent starts, Status changes from waiting to healthy, and Platform and Last report fill in. If it shows unknown instead, one metric can't be measured on this server, often swap. See Confirm the first report for what each status means.

Logs

PlatformWhere to look
Linuxjournalctl -u livepulser-agent -f
macOSsudo tail -f /usr/local/var/livepulser-agent/agent.log
WindowsGet-Content C:\ProgramData\LivePulser\state\agent.log -Tail 50 -Wait

On macOS and Windows the log file is rotated to agent.log.1 at 1 MiB, so it never uses more than 2 MiB. The service doesn't log debug lines; for those, run the agent in the foreground with --verbose.

Installed files

PathOwner and modePurpose
/usr/local/bin/livepulser-agentroot, 0755Binary (Linux and macOS)
/etc/livepulser-agent/agent.confroot:livepulser-agent, 0640Linux configuration
/etc/livepulser-agent/api-keyroot:livepulser-agent, 0640Linux API key
/var/lib/livepulser-agent/livepulser-agent, 0700Linux state and lock (created by systemd)
/etc/systemd/system/livepulser-agent.serviceroot, 0644Linux service unit
/usr/local/etc/livepulser-agent/agent.confroot:_livepulser, 0640macOS configuration
/usr/local/etc/livepulser-agent/api-keyroot:_livepulser, 0640macOS API key
/usr/local/var/livepulser-agent/_livepulser, 0700macOS state, lock and agent.log
/Library/LaunchDaemons/com.livepulser.agent.plistroot, 0644macOS launchd daemon
C:\Program Files\LivePulser Agent\livepulser-agent.exeDefaultWindows binary
C:\ProgramData\LivePulser\agent.confAdministrators, SYSTEM; service can readWindows configuration
C:\ProgramData\LivePulser\api-keyAdministrators, SYSTEM; service can readWindows API key
C:\ProgramData\LivePulser\state\Administrators, SYSTEM; service can modifyWindows state, lock and agent.log

The agent refuses a key file that other users can read: on Linux and macOS the file must be mode 0600 or 0640; on Windows, Everyone, Authenticated Users and Users must not have read access. The state folder holds a session ID and a sequence counter, never the key. Don't copy it into a machine image you clone.

Update the agent

Run the quick install command again. It keeps your configuration, and pressing Enter at the key prompt keeps the current key. For a manual installation:

PlatformSteps
Linux, release archiveExtract the new archive, then from its folder: sudo install -m 0755 livepulser-agent /usr/local/bin/livepulser-agent, sudo install -m 0644 livepulser-agent.service /etc/systemd/system/livepulser-agent.service, sudo systemctl daemon-reload and sudo systemctl restart livepulser-agent
Linux, from sourcemake && sudo make install && sudo systemctl daemon-reload && sudo systemctl restart livepulser-agent
macOSFrom the new release folder, sudo ./install.sh ./livepulser-agent, then sudo launchctl kickstart -k system/com.livepulser.agent. Your configuration and key are kept.
WindowsFrom the new release folder, run .\install.ps1 -MonitorId with your monitor ID and paste the key again; it stops the service, replaces the binary and starts it. Without the key at hand, run Stop-Service LivePulserAgent, copy the new livepulser-agent.exe over C:\Program Files\LivePulser Agent\livepulser-agent.exe, then Start-Service LivePulserAgent.

The agent keeps its session across an update, so a quick restart doesn't take the monitor offline. Check the installed version with livepulser-agent --version.

Uninstall the agent

Linux
sudo systemctl disable --now livepulser-agent
sudo rm -f /usr/local/bin/livepulser-agent /etc/systemd/system/livepulser-agent.service
sudo systemctl daemon-reload
sudo rm -rf /etc/livepulser-agent /var/lib/livepulser-agent
sudo userdel livepulser-agent
macOS (from the release or packaging/macos folder)
sudo ./uninstall.sh --purge
Windows (elevated PowerShell, from the release folder)
.\uninstall.ps1 -Purge

Without --purge or -Purge, the scripts remove the service and binary but keep the configuration, key and state.

Troubleshooting

Message or symptomMeaningWhat to do
cannot reach https://rs.livepulser.com: …No network path: DNS, a firewall, or a proxy the agent doesn't know about.Allow outbound HTTPS to rs.livepulser.com, or set proxy= in agent.conf.
API key was rejected (HTTP 401)The key is wrong or revoked, or the monitor ID is wrong. All three look the same. At startup the agent exits with code 77.Compare monitor_id with the dashboard. If the key is in doubt, rotate it and write the new one to the key file.
configuration request failed: HTTP 429Too many configuration requests for this monitor (the limit is 12 a minute).Wait a minute before running --check again.
… must not be accessible by other users (chmod 0600 or 0640)The key file's permissions are too open.sudo chmod 0640 /etc/livepulser-agent/api-key
… does not contain a valid resource API keyThe key file is empty or the key was cut off. A key is 43 characters.Write the full key to the file again.
cannot open /etc/livepulser-agent/agent.conf: Permission deniedThe agent's user can't read its configuration.Run the chgrp step from Linux: configure and start.
unknown option, monitor_id must be a UUID, endpoint must start with https://A mistake in agent.conf. Unknown keys are errors. Exit code 78.Fix the line named in the message. See the Agent configuration reference.
another agent instance is using …Another agent already runs with this state folder, usually the service.Stop the service before running the agent by hand.
cannot open state directory …On Linux, the state folder doesn't exist until the service has started once.Create it as shown in Run in the foreground for a test, or start the service.
upload rejected (HTTP 422): system clock differs from the server by …The server's clock is wrong.Turn on NTP or Windows time sync.
Certificate or TLS errorsThe system's root certificates are out of date, or a proxy intercepts TLS.Update root certificates (ca-certificates on Linux). For an intercepting proxy, set ca_file= to its CA on Linux and macOS, or add the CA to the Windows certificate store.
redirect refused; check endpointendpoint points at the wrong address. The agent never follows redirects.endpoint=https://rs.livepulser.com
Windows service stopped with error 77 or 78The key was rejected, or the configuration is invalid. The service stays stopped.Run the --check command to see why, fix it, then Start-Service LivePulserAgent.

Every response code and exit code is listed in the Agent configuration reference.