Installation
Install the base agent:
pip install plexus-agentThe base package includes the Plexus client, CLI, buffering, and HTTP transport. Add optional extras for hardware-specific capabilities.
Extras
Install extras by appending them in brackets:
pip install plexus-agent[sensors]
pip install plexus-agent[sensors,can,camera]
pip install plexus-agent[all]| Extra | Installs | Use Case |
|---|---|---|
sensors | smbus2 | I2C sensors (IMU, temperature, pressure, ADC) |
can | python-can, cantools | CAN bus via SocketCAN |
mavlink | pymavlink | MAVLink protocol (drones, autopilots) |
mqtt | paho-mqtt | MQTT broker integration |
camera | opencv-python, numpy | USB camera capture |
picamera | picamera2 | Raspberry Pi CSI camera (Pi 4/5) |
serial | pyserial | Serial port (RS-232, UART, GPS receivers) |
tui | rich | Live terminal dashboard (plexus run --live) |
system | psutil | System health (CPU temp, memory, disk) |
all | All of the above (except picamera) | Install everything |
System Requirements
Base Package
- Python 3.8 or later
- Works on Linux (x86_64, ARM64), macOS, and Windows
Platform-Specific Requirements
| Extra | OS | Requirements |
|---|---|---|
sensors | Linux | I2C enabled (sudo raspi-config on Raspberry Pi) |
can | Linux | SocketCAN kernel module, can-utils |
picamera | Raspberry Pi OS | libcamera libraries, CSI camera connected |
camera | Linux / macOS | USB camera at /dev/video0 or equivalent |
serial | All | USB-to-serial adapter or UART pins |
system | All | No additional requirements |
Raspberry Pi Quick Setup
# Enable I2C
sudo raspi-config nonint do_i2c 0
# Install with sensors
pip install plexus-agent[sensors]
# Verify I2C is working
plexus scanCAN Bus Setup (Linux)
# Load the SocketCAN kernel module
sudo modprobe can
sudo modprobe can_raw
# Bring up the CAN interface
sudo ip link set can0 type can bitrate 500000
sudo ip link set can0 up
# Install with CAN support
pip install plexus-agent[can]Environment Variables
Set these before running the agent:
| Variable | Required | Description |
|---|---|---|
PLEXUS_API_KEY | Yes | Your API key (starts with plx_). Get it from app.plexus.company (opens in a new tab) → Settings → Developer. |
PLEXUS_ENDPOINT | No | Custom endpoint URL. Defaults to https://app.plexus.company. Use this for self-hosted deployments. |
export PLEXUS_API_KEY=plx_xxxxx
# Optional: self-hosted endpoint
export PLEXUS_ENDPOINT=https://plexus.internal.company.comVerify Installation
# Check the installed version
plexus --version
# Diagnose any missing dependencies
plexus doctor
# Scan for connected hardware
plexus scanNext Steps
- Configuration — Configure the agent with a config file or constructor parameters
- Quickstart — Send your first data point in under a minute