For AI agents and humans

SolidFokus stack setup guide

Set up Tracerlight servers and clients, Gyroscopic, Tailfin and NGINX end to end. An AI agent can follow this page: ask the operator the questions below, then follow the steps and the per-app install pages.

Already have a log or metrics platform and a log shipper? Deploy Tracerlight only: servers and clients as services, one JSON log file per instance, no Gyroscopic or Tailfin. For the full stack over plain HTTP with Basic auth, step by step: Deploy option 2. All options: Deployment options.

Tailfin is optional: any front-end built on the Gyroscopic API works, including your own.

Which app runs on which OS: Supported platforms. To remove an app: the Uninstall section of its install page.

QuestionsArchitectureConnectionsStepsMCPVerifyWindowsOpen items

1. Operator questions

  1. Which hosts take which role (Tracerlight servers, Tracerlight clients, Gyroscopic, Tailfin, NGINX)? OS of each (Linux glibc/musl, FreeBSD, OpenBSD 7.9 and 8.0, Windows; Tailfin: Linux/FreeBSD only).
  2. Which clients test which servers? (Each client→server pair is one Tracerlight client instance and one tag.)
  3. Tag names: servers e.g. server1, clients e.g. client-a-server1; 1–64 chars of [A-Za-z0-9_-].
  4. UDP port range and sessions per server (default 9000, 32 sessions), packet rate per session (default 32 pps) and stats interval (default 1 s).
  5. Do Gyroscopic and Tailfin run on the same host or on separate hosts? Is NGINX on the same host as either, or on its own? Private network addresses between them? On the same host, Tailfin's gyroscopic_url is http://127.0.0.1:3000/api/v1; when they are apart it is http://<gyroscopic-ip>:3000/api/v1.
  6. Public hostnames for the dashboard (e.g. dash.example.net) and, if needed, for Gyroscopic/MCP (e.g. stats.example.net). TLS certificates: Let's Encrypt or own?
  7. Should the dashboard be public, or restricted (IP allowlist / NGINX auth)?
  8. If a Gyroscopic or Tailfin allow list will be restricted (an empty list permits everyone and is the right choice for a proof of concept): (a) should a management prefix, for example an admin subnet, be added so you can reach the apps for troubleshooting? Recommend yes. (b) should loopback (127.0.0.1 and ::1) be included, for local curl and, when Tailfin shares Gyroscopic's host, for Tailfin itself? Recommend yes. A restricted Gyroscopic list must also include Tailfin's address and, if NGINX is used, the NGINX host.
  9. How long should Gyroscopic keep history? If the operator does not know, propose 8 days (also a good length for a proof of concept). Follow Install Gyroscopic, Sizing: show the memory estimate and the worst case, check the Gyroscopic host's RAM, and set count and buffer_length. The binary's default if you do not change it is ~8 days per tag, 25 client and 5 server tags; do not keep 25 / 5 when the real counts are known.
  10. Enable MCP for an AI assistant? Which MCP client, and from where will it connect?
  11. Firewall tooling on each host (iptables, firewalld, pf).
  12. Secrets: the agent should generate the Tracerlight key (a decimal integer, see Install Tracerlight, flags) and three Gyroscopic secrets and tell the operator where they are stored. Never reuse template values.

2. Architecture

Tracerlight client --UDP 9000+--> Tracerlight server       (measurement, shared --key)
Tracerlight client --HTTP POST /api/v1/collect--> Gyroscopic :3000   (user tracerlight)
Tailfin :8080 --HTTP GET /api/v1/...--> Gyroscopic :3000             (user tailfin)
AI assistant --MCP /mcp--> Gyroscopic :3101                          (user mcp, optional)
Browser --HTTPS 443--> NGINX --> Tailfin :8080

Gyroscopic keeps data in RAM only. The browser never talks to Gyroscopic.

3. Connections, ports and secrets

From → toPort / pathAuth
Tracerlight client → serverUDP base-port … base-port+n-1 (default 9000–9031)--key, same on both sides
Tracerlight client → GyroscopicTCP 3000 /api/v1/collect (or 443 via NGINX)Basic, user tracerlight, Tracerlight auth_secret = Gyroscopic auth.tracerlight_secret
Tailfin → GyroscopicTCP 3000 /api/v1/Basic, user tailfin, same auth.tailfin_secret in both configs
MCP client → GyroscopicTCP 3101 /mcp (or 443 via NGINX)Basic, user mcp, auth.mcp_secret
Browser → (NGINX →) Tailfin443 → Tailfin :8080 on the Tailfin host, or Tailfin TLS directly on 8080Optional Basic, user tailfin, Tailfin dashboard_secret (0.30.0); otherwise none
TLS (optional)Gyroscopic 1.12.0 and Tailfin 0.30.0 listeners: "tls": "self-signed"Clients pin the fingerprint: Tracerlight tls_sha256, Tailfin gyroscopic_tls_sha256; OpenCode NODE_EXTRA_CA_CERTS=cert.pem. Optional allow lists (empty = all). Public or company certificate: no pin; the client host's OS CA store must trust it (Tracerlight 2.20.2, Tailfin 0.30.5).
Health checks/health on Gyroscopic and TailfinNone

4. Steps, in order

  1. Gyroscopic first (install page): download, verify, gyroscopic --config, set the secrets, follow Sizing to set count/buffer_length for your tags and RAM, set listen_address (loopback or private), start the service, check /health.
  2. Tracerlight servers (install page): open the UDP range in the firewall, start the server service with the key, a tag and --config so it also reports server stats.
  3. Tracerlight clients: tracerlight --config → set url and auth_secret; one client service per client→server pair with its own --tag. Servers use the same config file.
  4. Tailfin (install page): tailfin --config, set gyroscopic_url and auth.tailfin_secret, start the service.
  5. TLS (optional; ask the operator): either built in, with "tls": "self-signed" in Gyroscopic and/or Tailfin after their service setup is installed, then the fingerprint from --tls-info into every client (Gyroscopic TLS, Tailfin TLS); or NGINX with certificates in front, keeping the apps on "off". Add allow lists if wanted, including Tailfin's address on Gyroscopic, the NGINX host if used, and — if the operator agreed — a management prefix and 127.0.0.1/::1 for local callers.
  6. MCP (optional): see below.
  7. Verify end to end.

Upgrades: Gyroscopic first, then Tracerlight clients, then Tracerlight servers; see Upgrading.

Current versions: Tracerlight 2.22.1-f136bd5, Gyroscopic 1.12.6-bcd8897, Tailfin 0.30.6-caca6e7. On FreeBSD (target 15.1) every service runs from an rc.d script under daemon(8), dropping to its own user; the three apps share /var/log/solidfokus/ and one newsyslog file, /usr/local/etc/newsyslog.conf.d/solidfokus.conf. Hosts with an earlier FreeBSD rc.d script must follow “Migrating from an earlier script” on each install page.

On OpenBSD (Tracerlight and Gyroscopic only; the Tracerlight and Gyroscopic rc.d scripts have been tested verbatim on OpenBSD 8.0 with Tracerlight 2.20.0 and Gyroscopic 1.12.0 on 2026-11-02 (earlier 2.18.7 / 1.11.7); supported releases: OpenBSD 7.9 and 8.0) each service runs from an /etc/rc.d script as its _<app> user, config root:_<app> mode 0640, RUST_LOG via /etc/login.conf.d/<name>, and rotation lines go in /etc/newsyslog.conf (no conf.d). Tracerlight writes plain JSON to /var/log/solidfokus/<name>.log and is restarted at rotation; Gyroscopic logs through syslog so rotation never restarts it. Hosts with an earlier OpenBSD script must follow “Migrating from an earlier OpenBSD script”.

5. MCP client setup (general)

Gyroscopic's MCP server lets an AI assistant answer questions like "How is the network doing?". In the Gyroscopic config set "mcp": {"enabled": true} and a strong auth.mcp_secret; keep allow_collect false.

From 1.12.4, a client that sends MCP-Protocol-Version: 2025-11-25 (for example Hermes) completes the handshake; Gyroscopic still answers 2025-06-18. Earlier versions rejected that header before initialize.

# Check the MCP endpoint answers
curl -s http://127.0.0.1:3101/mcp \
  -H "Authorization: Basic $(printf 'mcp:%s' "$MCP_SECRET" | base64)" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","method":"initialize","id":1}'
# -> includes "serverInfo": {"name": "gyroscopic", ...}

The available tools are listed on the Gyroscopic install page.

6. Final verification

  1. curl http://127.0.0.1:3000/health on the Gyroscopic host returns "status":"ok".
  2. An unauthenticated /api/v1/tags?type=client returns 401.
  3. Each Tracerlight client logs stats lines with low lost, and the server shows no invalid_key.
  4. curl -u "tailfin:$TAILFIN_SECRET" http://GYRO:3000/api/v1/tags?type=client lists every client tag.
  5. https://dash.example.net/health returns ok and the dashboard shows the tags.
  6. If MCP is enabled, ask the assistant "How is the network doing?".

Windows hosts

Windows service support is new in Tracerlight 2.18.0 and Gyroscopic 1.11.0. Tracerlight client and server services and the Gyroscopic service have been tested on real Windows 11 with Tracerlight 2.18.8 and Gyroscopic 1.11.8, and again with Tracerlight 2.20.0 and Gyroscopic 1.12.0 on Windows 11 build 26200 on 2026-11-02. Both were also tested on Windows Server 2022 (Tracerlight 2.22.0 on 2026-11-25 and 2026-11-26, Gyroscopic 1.12.5 on 2026-11-26).

Processes started from an interactive Windows OpenSSH session are killed when the session closes; for anything that must keep running use --install-service.

Tracerlight and Gyroscopic run as native Windows services (Tailfin does not run on Windows). Each binary installs its own service from an elevated PowerShell: run it once in the foreground with the final arguments, then repeat the command with --install-service <NAME> added (this does not start it), grant the account access to its config with icacls, and run Start-Service <NAME>. No WinSW, NSSM or Visual C++ Redistributable.

Upgrading

To Tracerlight 2.22.1, Gyroscopic 1.12.6 and Tailfin 0.30.6: no config change; upgrade in place. Only the --license text changed.

To Gyroscopic 1.12.5: no config change; upgrade in place. An open MCP/SSE connection no longer keeps the process from exiting on SIGTERM, so shutdown and restart are prompt with MCP clients connected.

To Tracerlight 2.22.0: no config change; upgrade in place. The start-up log lines now carry role, pid and tag (when set). On Linux, FreeBSD and OpenBSD, SIGHUP is a graceful stop if stdout or stderr is a terminal, and is ignored if neither is; it does not reopen a log, so Linux rotation should still use copytruncate. Windows --install-service prints the config-file grant hint only when --config is on the service command line. Keep the one-off --duration and --packets run limits out of service configurations (details).

Plain upgrades change nothing for a plain http:// or pinned (self-signed) connection. An unpinned https:// url in Tracerlight (url) or Tailfin (gyroscopic_url), for example to NGINX with a public or company certificate, is now verified against the operating system's CA store instead of a root list built into the binary: the host needs a system CA bundle (Linux: ca-certificates; FreeBSD: pkg install ca_root_nss or certctl rehash; OpenBSD: /etc/ssl/cert.pem from the base system; Windows: the system store), otherwise the app stops at start-up with exit code 1 and no CA certificates found on this host (fix). A company CA works once it is in the OS trust store. A plain http:// url no longer follows a redirect to https://; configure the https:// url. From Gyroscopic 1.12.1 / Tailfin 0.30.1 a [::] listener accepts IPv4 as well as IPv6 on every OS (before, only on Linux). Turning on self-signed TLS later: install the new service setup (unit, rc.d script, or a Windows service reinstall), switch the server, then every client to https:// with its pin.

  1. Gyroscopic (procedure). Its data is RAM-only and is cleared by the restart.
  2. Tracerlight clients, all of them (procedure).
  3. Tracerlight servers, one at a time. From 2.19.0 a graceful server stop or reboot answers with zero ports for 5 s; clients pause, probe and resume on their own, with no loss reported and no client restart. The first upgrade from a server older than 2.19.0 still shows loss, and so does kill -9 or a crash. A server stop can take up to about 15 s.
  4. Windows services upgraded from before Tracerlight 2.19.0 / Gyroscopic 1.11.9: reinstall once (--uninstall-service, then --install-service with the same arguments) to get the 30 s preshutdown timeout used at reboot.
  5. Tailfin 0.30.6 (procedure): replace the binary and restart; nothing changes until you set the new optional keys: built-in TLS ("tls": "self-signed" or your own PEM files), dashboard_secret (dashboard login, user tailfin, /health open), an allow list (empty = everyone), and gyroscopic_tls_sha256 for a self-signed Gyroscopic.
  6. Verify as in section 6.

7. Open items

Sizing: Tailfin CPU, memory, open files and log volume per open page in Install Tailfin, Sizing; Tracerlight CPU and memory per rate in Tracerlight, Performance; Gyroscopic memory per record in Install Gyroscopic, Sizing. Symptoms and fixes: Troubleshooting.

Full-stack NGINX front end (normally on a separate host; collect, API, MCP and the dashboard): Deploy option 2, NGINX.

Config templates

Every app prints its own template with --config (no argument).

--config on Tracerlight, Gyroscopic and Tailfin. Real recording.