Machine-readable interface for AI assistants and automation scripts.
| Variable | Description | Default |
|---|---|---|
PLEXUS_API_KEY |
API key for authentication (required) | none |
PLEXUS_GATEWAY_URL |
Gateway HTTP ingest URL | https://plexus-gateway.fly.dev |
PLEXUS_GATEWAY_WS_URL |
Gateway WebSocket URL | wss://plexus-gateway.fly.dev |
plexus start # Stream with PLEXUS_API_KEY env var
plexus start --key plx_xxxxx # Pass key inline
plexus start --device-id my-device # Set device identifier
plexus reset # Clear configAn API key is required — set PLEXUS_API_KEY or pass --key. There is no interactive signup; get a key at app.plexus.company/devices.
| Code | Meaning |
|---|---|
0 |
Clean shutdown |
1 |
Configuration or authentication error |
130 |
Interrupted (SIGINT / Ctrl+C) |
from plexus import Plexus
px = Plexus(api_key="plx_xxxxx", source_id="device-001")
px.send("temperature", 72.5)
px.send("pressure", 1013.25, tags={"unit": "hPa"})
# Batch
px.send_batch([
("temperature", 72.5),
("pressure", 1013.25),
])
# Persistent buffering for reliability
px = Plexus(api_key="plx_xxxxx", persistent_buffer=True)- Config lives in
~/.plexus/config.json - API keys are prefixed with
plx_ - Source IDs (device slugs) namespace metrics
- HTTP ingest →
POST /ingeston gateway; WebSocket →/ws/devicefor streaming + commands - Gateway resolves
org_idserver-side from the API key — clients do not supply it