Skip to content

Segla Agent

Segla Agent is a lightweight daemon that runs on your servers and manages infrastructure resources — private WireGuard networks, and more — by continuously reconciling desired state from the Segla platform.

How it works

The agent runs a reconcile loop that:

  1. Polls desired state from the Segla backend every 30 seconds
  2. Compares it with the current local state
  3. Applies any necessary changes (create/update/delete resources)
  4. Reports status back to the platform
Server                          Segla Platform
┌──────────────┐    gRPC/TLS    ┌──────────────┐
│  segla agent │ ◄────────────► │   Backend    │
│              │                │              │
│  WireGuard   │                │  Dashboard   │
│  bbolt state │                │  Temporal    │
└──────────────┘                └──────────────┘

Features

  • Private Networking — WireGuard mesh networks between your servers
  • Automatic key management — keys are generated locally and never leave the machine
  • Idempotent operations — safe to restart at any time
  • Minimal footprint — single static binary, no dependencies
  • Systemd integration — runs as a managed service