Skip to content

Zelos Agent Installation

The Zelos agent runs as a service on Linux machines without a screen: bench computers, test rigs, edge devices and servers. It runs extensions, receives data from SDK code, runs notebooks, and serves everything to any Zelos app that connects to it.

Using the app?

On a machine with the Zelos app, you do not need this. The app includes its own agent.

Overview

  • Extensions


    Runs the same extensions as the app's agent

  • Network Ready


    Serves apps, SDK code and the CLI on port 2300

  • Notebooks


    Runs notebooks headless with zelos notebook run

  • Systemd Managed


    Runs as a system service with automatic startup

System Requirements

Platform Support

  • Ubuntu 22.04 LTS (Jammy) and 24.04 LTS (Noble) — tested targets
  • Architectures: amd64 and arm64 (also runs on 64-bit Debian / Raspberry Pi OS)

Check yours with dpkg --print-architecture (must be amd64 or arm64; armhf is not built). For other platforms, contact support.

Installation

# Remove an old Zelos source so apt does not list Zelos twice
sudo rm -f /etc/apt/sources.list.d/zelos.list

# Add the Zelos signing key and repository
sudo wget -qO /usr/share/keyrings/zelos-archive-keyring.gpg https://release.zeloscloud.io/app/zelos-archive-keyring.gpg
printf '%s\n' 'Types: deb' 'URIs: https://release.zeloscloud.io:443/app/ubuntu' 'Suites: jammy' 'Components: main' 'Signed-By: /usr/share/keyrings/zelos-archive-keyring.gpg' | sudo tee /etc/apt/sources.list.d/zelos.sources

# Install the agent
sudo apt update
sudo apt install zelos-agent

For early releases, use the alpha repository instead:

sudo rm -f /etc/apt/sources.list.d/zelos.list
sudo wget -qO /usr/share/keyrings/zelos-archive-keyring.gpg https://release.zeloscloud.io/app/zelos-archive-keyring.gpg
printf '%s\n' 'Types: deb' 'URIs: https://release.zeloscloud.io:443/app/alpha/ubuntu' 'Suites: jammy' 'Components: main' 'Signed-By: /usr/share/keyrings/zelos-archive-keyring.gpg' | sudo tee /etc/apt/sources.list.d/zelos.sources
sudo apt update
sudo apt install zelos-agent

Debian & Raspberry Pi

Keep Suites: jammy on every system. It is the repository's name, not your OS version, and apt pulls the matching amd64/arm64 build. Always add the repository (don't install a standalone .deb), so sudo apt update && sudo apt install --only-upgrade zelos-agent keeps the agent current.

Already installed from the Zelos repository?

You do not need to do anything. Your next agent update moves you to the signed repository and keeps your channel.

Auto-start Enabled

The agent starts automatically after installation and on system boot.

Verify Installation

sudo systemctl status zelos-agent

Expected output:

● zelos-agent.service - Zelos Agent
     Loaded: loaded (/lib/systemd/system/zelos-agent.service; enabled)
     Active: active (running) since Mon 2024-01-15 10:30:00 UTC
     ...

Register the agent

Until the agent is registered to your organization, it serves other computers data ingest only: SDK code anywhere can send it data, but a Zelos app or the CLI on another computer cannot connect. Programs on the agent's own machine are not affected. The same holds for an agent that was disabled or removed on the Agents page, from its next check-in until it is enabled or registered again.

  1. Create a key on the API keys page in Zelos Cloud.
  2. On the agent's machine, run:

    zelos agent register
    
  3. Paste the key when asked and press Enter. The key is not shown as you paste it, and it stays out of your shell history.

zelos agent status shows the registration and who the agent admits. The agent then appears on the Agents page, and in the app for the people in your organization.

Once an app has listed the agent while online, it can connect to it for up to 30 days with neither side reaching Zelos Cloud. On the same local network the app finds the agent even if its address has changed, for example when a laptop is cabled straight to a rig. An agent announces itself to its local networks for this; set ZELOS_LINK_LAN=off in its environment to stop that.

Typing the address of an agent in your fleet connects the same secure way. If that gets no answer on your network, the app connects over plain TCP and says so.

A registered agent checks in with Zelos Cloud every hour, and also when it starts, when it is registered, and when someone connects to it. A change on the Agents page takes effect on an agent at its next check-in. So does a member leaving the organization: that member's access ends, and nobody else's connection is touched. An agent that cannot reach Zelos Cloud keeps applying the last access rules it received.

CI jobs and short-lived rigs

A job that only talks to the agent on its own machine needs no registration. When another computer must reach an agent that lives only as long as a job, register it with an Ephemeral key from the API keys page:

  • The key is reusable and can be set to never expire, so a CI secret does not need rotating.
  • An agent it registers is removed from the organization when it stops, or after 30 minutes offline. To use that machine again, register it again.
  • Ephemeral agents are counted apart from registered ones: an organization can run as many of each at a time as its plan allows.
  • Like every key, it works only while the member who created it is in the organization.

A job has no one to ask, so pass the key in the environment from a CI secret:

ZELOS_AGENT_KEY=<key> zelos agent register

Configuration

Default Settings

Setting Default Value Description
Listen Address 0.0.0.0:2300 Binds to all IPv4 interfaces
Store Type metadata Catalog only, no sample data
Data Retention 1h How long to keep data in a memory or disk store

The default store keeps no samples

With the metadata store, the agent lists the signals that exist and streams them live to a connected app. It keeps no history, so queries, notebooks that read past data, and trace exports fail. To keep data, use a memory or disk store (see Enable Memory Store below). A source that sends nothing for the retention period plus 24 hours leaves the catalog until it sends again.

Data mirrored from a connected agent shares the memory limit with a local memory store, and gets the same retention.

Customize Configuration

To bind to a specific interface or change the port. The agent always also serves 127.0.0.1. The IPv6 wildcard [::] is accepted and served as 0.0.0.0 (all IPv4 interfaces); no IPv6 wildcard listener is bound.

sudo systemctl edit zelos-agent

Add:

/etc/systemd/system/zelos-agent.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/zelos-agent --listen-address 127.0.0.1:2300

To keep data for queries, notebooks and trace exports, at the cost of memory:

sudo systemctl edit zelos-agent

Add:

/etc/systemd/system/zelos-agent.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/zelos-agent --store-type memory --store-retain-duration 24h

For troubleshooting:

sudo systemctl edit zelos-agent

Add:

/etc/systemd/system/zelos-agent.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/zelos-agent -vv

After making changes:

sudo systemctl daemon-reload
sudo systemctl restart zelos-agent

Command Line Options

Option Description Example
--listen-address Set bind address --listen-address [::1]:2300
--store-type Storage backend: metadata, memory, or disk --store-type memory
--store-retain-duration Data retention --store-retain-duration 6h
--memory-limit Memory cap for the memory store --memory-limit 2GB
--store-path Parent folder for the disk store --store-path /data/zelos
--disk-limit Size cap for the disk store --disk-limit 50GB
--dev-mode Enable development mode features --dev-mode true
-v, -vv Increase verbosity -vv for trace level
-q Quiet mode -q

Service Management

# Start the agent
sudo systemctl start zelos-agent

# Stop the agent
sudo systemctl stop zelos-agent

# Restart the agent
sudo systemctl restart zelos-agent

# Check status
sudo systemctl status zelos-agent
# Last 50 lines
sudo journalctl -u zelos-agent -n 50

# Follow logs in real-time
sudo journalctl -u zelos-agent -f

# Logs from last hour
sudo journalctl -u zelos-agent --since "1 hour ago"

# Today's logs
sudo journalctl -u zelos-agent --since today
# Disable auto-start on boot
sudo systemctl disable zelos-agent

# Re-enable auto-start
sudo systemctl enable zelos-agent

Uninstallation

To remove the agent and keep the Zelos repository:

sudo apt remove zelos-agent

To also remove the Zelos repository and its signing key, purge the package instead:

sudo apt purge zelos-agent

Purge keeps the repository if the Zelos App is still installed, because the app updates from it too.

To remove any custom configuration:

sudo rm -rf /etc/systemd/system/zelos-agent.service.d
sudo systemctl daemon-reload

Troubleshooting

Agent won't start

Check for port conflicts:

sudo lsof -i :2300

View detailed error messages:

sudo journalctl -u zelos-agent -n 100 --no-pager

Try running manually to see errors:

sudo /usr/bin/zelos-agent -vv

If the agent runs out of memory, fall back to the catalog-only store. Run sudo systemctl edit zelos-agent and add:

[Service]
ExecStart=
ExecStart=/usr/bin/zelos-agent --store-type metadata
An app on another computer cannot connect

If the app says the agent is not registered, register it: see Register the agent.

If it reports that the agent is private, connect from its owner's Zelos app, or ask the owner or an organization admin to share it on the Agents page.

Next Steps