Connectors
Connectors let LabTether discover and monitor infrastructure you already run (Proxmox clusters, TrueNAS storage, Portainer environments, PBS backup servers, and Home Assistant instances) without installing an agent on each one. You point LabTether at an API, and it pulls in assets, telemetry, and status on a schedule.
Docker is the exception. LabTether reads Docker through the agent installed on each Docker host, or through Portainer. See Docker.
How connectors work
A connector is an API integration between LabTether and an external platform. Once configured, it:
- Discovers assets (VMs, containers, storage pools, backup jobs, smart-home entities) and adds them to your inventory with source metadata.
- Collects telemetry: CPU, memory, disk, temperature, and platform-specific metrics flow into the same pipeline as agent-reported data.
- Syncs on a schedule: each connector polls at a configurable interval, so your inventory stays current without manual refresh.
Agents vs. connectors: Agents give you deep control: terminal, desktop, file browsing, service discovery. Connectors give you visibility into platforms that expose an API but do not run your code. Many setups use both: a Proxmox connector discovers your VMs, and agents installed inside those VMs provide interactive access.
Onboarding order: Start with one connector, validate it end-to-end, then expand. A sensible order for a typical homelab:
- Proxmox (primary compute)
- TrueNAS (storage and SMART health)
- Portainer, or the agent on each Docker host (container workloads)
- PBS and Home Assistant (backup and smart-home context)
You do not need all connectors configured. Start with whichever covers your highest-value infrastructure.
A sync can finish with a partial outcome. That means the platform API was reachable, but the inventory was incomplete or only partially persisted. Read the warning before assuming the connector is broken. LabTether isolates the issue to that connector run rather than treating it as a global outage. Prefer fixing visibility or ACL issues upstream before deleting and recreating the connector. Repeated auth errors can mean a token expired or permissions changed upstream.
Permissions
Use dedicated service accounts or API tokens per connector. Never reuse your personal admin credentials for daily sync.
| Connector | Minimum scope | Avoid |
|---|---|---|
| Proxmox | Read inventory, VM metadata, task status; scoped console/session rights if needed | Full root token for daily sync |
| TrueNAS | Read system/storage metrics and event/task access | Full admin key for routine telemetry |
| Docker | None. The agent on the Docker host reads the local Docker socket | Exposing the Docker API over TCP |
| Portainer | Environment read + endpoint inventory; scoped action rights as needed | Global admin token for all environments |
| PBS | Read datastore/task/backup metadata | Full control token when read-only suffices |
| Home Assistant | Read entity/state/service metadata | Owner-level token unless you specifically need it |
Recipe:
- Create a dedicated integration identity in the upstream system.
- Grant read-only permissions first.
- Test the connector in LabTether.
- Add action privileges only when a specific workflow requires them.
- Rotate the token on a schedule and after any incident.
Proxmox
What it discovers: Proxmox nodes, QEMU VMs, LXC containers, task status, and RRD-based telemetry (CPU, memory, disk I/O).
Setup:
- In your Proxmox datacenter, create an API token for a dedicated user with read permissions across the cluster.
- In LabTether, open Connectors and add a Proxmox connector.
- Enter the API URL (e.g.,
https://pve.local:8006) and paste the token. - Run Test Connection to verify auth and reachability.
- Save and trigger the initial sync.
- Check Devices and Topology. Your Proxmox hosts and guests appear with source metadata. If discovery is incomplete, check that your API token can see all cluster nodes. A token scoped to one node finds only that node's assets.
Desktop access: LabTether defaults Proxmox QEMU VMs to VNC for browser sessions, since not every VM exposes a SPICE port. If you know a VM has a SPICE-capable display adapter, you can switch to the SPICE protocol in the desktop view. See Remote Desktop for protocol details.
TrueNAS
What it discovers: System health, storage pools, datasets, SMART data, and event/task metadata.
Setup:
- In TrueNAS, generate an API key for a dedicated user with read permissions.
- In LabTether, add a TrueNAS connector.
- Enter the server URL (e.g.,
https://truenas.local) and the API key. LabTether connects to the WebSocket JSON-RPC API at/api/current. - Test, save, and sync.
- Verify storage assets and health telemetry appear in the console.
The server must expose that JSON-RPC API. This connector does not use the legacy REST API or the legacy /websocket protocol, and there is no SCALE/CORE variant setting.
If telemetry stops updating, check the connector error, API key permissions and expiration, network access, and polling interval. A successful connection check alone does not prove every inventory or action method is available on that TrueNAS version.
Docker
What it discovers: Docker hosts, containers, images, networks, volumes, Compose stacks, and runtime state. Container metrics (CPU, memory, block I/O, PIDs) feed into the same telemetry pipeline and are available via Prometheus export.
Docker data comes only from LabTether agents. Each Docker host needs the agent installed on it; the agent reads the local Docker socket (/var/run/docker.sock by default). LabTether does not connect to the Docker Engine API over the network, so there is nothing to expose over TCP. If you manage Docker with Portainer, you can use the Portainer connector instead.
Setup:
- Install the agent on the Docker host: + Add Device → Agent. See Connect Docker.
- The hub sets up the Docker connection the first time an agent reports Docker. + Add Device → Docker is optional: it sets the cluster name and poll interval, and takes no URL or credentials.
- Verify containers appear in Containers and Services.
If Docker uses another socket, set Docker Endpoint on the device's Agent Settings tab.
Portainer
What it discovers: Portainer environments, endpoints, containers, and stacks. Device pages show the cluster name you entered during setup instead of Portainer's default label (like local). Container and stack detail pages show Portainer-specific metadata: image, ports, stack membership, entry point, and linked endpoint host.
Setup:
- In Portainer, generate an API key. You only need the key secret. The Token ID label is optional, for a friendly identifier in LabTether.
- In LabTether, add a Portainer connector.
- Enter the Portainer URL and API key.
- Test and sync.
- Verify that Portainer-backed resources appear in inventory and services views, and that device detail pages show a dedicated Portainer panel.
If the test passes but sync fails with endpoint discovery errors, the API key can reach Portainer but not list environments. Check the key's permissions in Portainer.
Proxmox Backup Server
What it discovers: Datastores, backup jobs, task history, and storage capacity. PBS metrics (labtether_pbs_datastore_*, labtether_pbs_backup_count, etc.) are exported via Prometheus.
Setup:
- In PBS, create an API token with datastore and task read access.
- In LabTether, add a PBS connector.
- Enter the URL and credentials.
- Test and sync.
- Verify backup data appears in the UI. If no data returns despite a passing test, check that backups and tasks exist in the datastores visible to your token.
Home Assistant
LabTether's Home Assistant integration works in two directions:
LabTether reads Home Assistant (the connector). It pulls entity state, service metadata, and device context into LabTether so you can correlate smart-home signals with infrastructure.
Home Assistant reads LabTether (the custom integration). It exposes LabTether devices, sensors, and actions inside Home Assistant for automations, dashboards, and entity tracking.
Setting up the LabTether connector (LabTether side)
- In LabTether, add a Home Assistant connector.
- Enter the Home Assistant URL and a long-lived access token.
- Test and sync.
- The Devices page now shows the Home Assistant hub as its own card. Open it to see the connector URL, entity counts, and domain breakdown in the Home Assistant panel.
- Synced entities appear under Services, grouped by hub. Each entity's detail page shows its HA state, entity ID, timestamps, and metadata.
Setting up the custom integration (Home Assistant side)
Audited against Home Assistant Core 2026.7.2.
- Copy or symlink
custom_components/labtetherfrom thelabtether-homeassistantrepository into your Home Assistantcustom_components/directory. - Restart Home Assistant.
- Go to Settings → Devices & Services → Add Integration and search for LabTether.
- Enter your hub URL, a dedicated API key, and an optional display name.
- If the hub uses a private CA, copy its PEM file into Home Assistant's config folder and enter its absolute path inside Home Assistant (for example
/config/labtether-ca.pem). This keeps certificate and hub-name checks on. Keep the file available after restarts. - Leave Ignore TLS certificate errors off. That option bypasses certificate checks; use it only if you deliberately accept that risk. Do not combine it with a CA file.
- Choose what to import: status entities, telemetry sensors, power switches, the
labtether.run_actionservice, and polling interval. - Finish setup.
After setup, use Configure on the integration entry to adjust imports, polling, and TLS settings. If the API key expires, Home Assistant prompts for reauthentication instead of requiring a remove/re-add cycle.
Multiple LabTether hubs can coexist in the same Home Assistant instance without identifier collisions. Newly discovered LabTether assets appear automatically without an integration reload.
Home Assistant add-on (experimental)
LabTether can also run as a Home Assistant add-on. This is experimental. It runs the hub binary directly inside HA, with support for external or bundled local Postgres. In Settings → Add-ons → Add-on Store, add this repository URL: https://github.com/labtether/labtether-homeassistant#homeassistant-addon-repo. The branch suffix matters because the add-on repository files are on that branch.
With auto_generate_credentials=true, the owner token and encryption key can be generated for you. Leave labtether_admin_password blank to use the one-time owner setup screen; labtether_setup_token can be set before first start if you need a known token. The generated service credentials are saved at /data/labtether-addon-root/generated-credentials.txt. The one-time setup token is saved separately at /data/labtether-addon/setup-token until the hub consumes it. See the add-on instructions for database_url, tls_mode, and the full setup flow.
Warning: The add-on path is experimental. For production homelabs, running LabTether as a standalone Docker stack with a connector to Home Assistant gives you more control over upgrades and resource isolation.