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.
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.
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.
Platform
Release archive
Contents
Linux
livepulser-agent-<version>-linux-amd64.tar.gz or …-linux-arm64.tar.gz
The binary, agent.conf.example, the systemd unit livepulser-agent.service
macOS
livepulser-agent-<version>-macos-universal.tar.gz
The binary, agent.conf.example, the launchd plist, install.sh and uninstall.sh
Windows
livepulser-agent-<version>-windows-amd64.zip
livepulser-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.
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.
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>
It downloads the release for your machine and checks it against the release's SHA256SUMS.
It asks for the API key, so the key never appears in the command line or your shell history. Paste it and press Enter.
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.
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.
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.
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.
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
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).
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:
Write the key (paste it, press Enter, then Ctrl-D):
sudo sh -c 'cat > /usr/local/etc/livepulser-agent/api-key'
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
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.
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 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:
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.
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.
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.
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.
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.
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.
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.
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:
Platform
Steps
Linux, release archive
Extract 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 source
make && sudo make install && sudo systemctl daemon-reload && sudo systemctl restart livepulser-agent
macOS
From the new release folder, sudo ./install.sh ./livepulser-agent, then sudo launchctl kickstart -k system/com.livepulser.agent. Your configuration and key are kept.
Windows
From 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.
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 429
Too 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 key
The 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 denied
The 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 errors
The 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 endpoint
endpoint points at the wrong address. The agent never follows redirects.
endpoint=https://rs.livepulser.com
Windows service stopped with error 77 or 78
The 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.