Observability your agents can operate. Send OpenTelemetry to one binary, then investigate with Fanout's built-in agent or connect your own over MCP.
Fanout keeps OpenTelemetry traces, logs, and metrics in one binary and one data directory, with no external storage services to operate. Fanout is pre-release and changes without migration paths; the browser client, built-in agent, MCP tools, dashboards, and alerts are preview capabilities (status). Start with the documentation or run it below.
- OTLP ingest over gRPC and HTTP, with local Parquet storage and DuckDB analytics.
- An investigation agent that answers questions about your telemetry in plain language.
- An MCP server for external agents using the same typed query tools.
- Dashboards across traces, logs, and metrics, and alerts on service error rate, latency, throughput, and log volume.
docker run --name fanout -p 7520:7520 \
-v fanout-data:/var/lib/fanout/data \
-e FANOUT_AUTH_CODE_SECRET=$(openssl rand -hex 32) \
labstack/fanout:latestOpen the one-time setup URL printed by the container and create the first administrator. Fanout displays the ingest token exactly once; save it with your collector secrets. For later sign-in without SMTP, mint a 15-minute, single-use link against the running container's control database:
docker exec fanout fanout login-link admin@example.comThe UI, API, MCP, and both OTLP transports share port 7520. See
installation for image defaults and bind-mount ownership, and
first boot for setup and SMTP login.
Install a checksum-verified release for Linux or macOS, amd64 or arm64:
curl -fsSL https://raw.githubusercontent.com/labstack/fanout/main/scripts/install.sh | sh
export FANOUT_AUTH_CODE_SECRET=$(openssl rand -hex 32)
fanoutSet FANOUT_VERSION to a release tag, such as v2026.10.23-alpha, to pin a release, and FANOUT_PREFIX to choose the installation
directory. Native installs bind 127.0.0.1:7520; set FANOUT_ADDR=:7520 for remote access, then
follow the same first-boot setup.
A standard OTLP/HTTP exporter can use the saved ingest token:
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:7520
export OTEL_EXPORTER_OTLP_HEADERS="authorization=Bearer%20$INGEST_TOKEN"For a Collector on the same private container network, the forwarding side is:
exporters:
otlp_http/fanout:
endpoint: http://fanout:7520
headers:
Authorization: "Bearer ${env:INGEST_TOKEN}"
service:
pipelines:
traces: { receivers: [otlp], exporters: [otlp_http/fanout] }
metrics: { receivers: [otlp], exporters: [otlp_http/fanout] }
logs: { receivers: [otlp], exporters: [otlp_http/fanout] }Use an existing otlp receiver, set INGEST_TOKEN, and replace fanout with the Collector's
reachable private hostname. OTLP/gRPC uses localhost:7520 locally; see send
telemetry for TLS and HTTP/2 setup.
Select FANOUT_AI_PROVIDER=anthropic and inject ANTHROPIC_API_KEY, or select
FANOUT_AI_PROVIDER=openai and inject OPENAI_API_KEY, then restart Fanout; the selected provider
requires its key at startup. With no provider, chat is disabled and the other features still work.
See AI settings.
Set FANOUT_PUBLIC_URL to your stable, externally reachable HTTPS origin, then point a remote MCP
client at that origin's /mcp endpoint. The client discovers and registers through OAuth; you
authorize its scopes in the browser. Fanout serves MCP 2026-07-28 and, through the initialize
handshake, 2025-11-25 and 2025-06-18 over Streamable HTTP. See connect over
MCP for setup and permissions.
Fanout is a single node. It has no clustering, no replication, and no object tier; a deployment that outgrows one machine's disk and CPU has outgrown Fanout.
One process contains ingest, storage, query, alerts, the agent, MCP, and the React client. Browser and agent clients share a typed observability contract.
Parquet holds telemetry, DuckDB query state is rebuildable, and SQLite holds transactional product state. See how storage works for durable ingest, indexed reads, and compaction while reads continue.
Configuration is environment-only: built-in defaults followed by nonempty process environment values, validated before data files or listeners open. Settings are read once at startup; every change requires a restart.
| Environment variable | Default | Purpose |
|---|---|---|
FANOUT_ADDR |
127.0.0.1:7520 |
UI, API, MCP, and both OTLP transports |
FANOUT_DATA_DIR |
./data |
Parquet, query state, and control SQLite |
FANOUT_AUTH_MODE |
local |
Login link or SMTP, or oidc |
FANOUT_AUTH_CODE_SECRET |
— | Required in local mode, 32+ characters |
FANOUT_AI_PROVIDER |
— | Empty disables chat; anthropic or openai enables it |
ANTHROPIC_API_KEY |
— | Required for Anthropic chat |
OPENAI_API_KEY |
— | Required for OpenAI chat |
FANOUT_RETENTION_DAYS |
30 |
Telemetry retention window |
FANOUT_MCP_ENABLED |
true |
Serve the MCP endpoint at /mcp |
Every secret accepts <NAME>_FILE instead of its value; see the settings
reference for validation and runtime secret
delivery for deployment examples.
Fanout sizes DuckDB automatically; measured workloads can override memory, connections, and threads as described in DuckDB sizing.
For TLS, health checks, backups, upgrades, retention, and recovery, see the operator runbook.
Fanout v2026.10.8-alpha accepted 415,859 mixed OpenTelemetry items/s over 303.5 seconds on a Hetzner Cloud ccx33 (8 dedicated vCPUs, 32 GB RAM), with telemetrygen on a separate ccx33. The ingest run on 16 October 2026 passed every quality gate. See the performance methodology. Fanout Bench reproduces the measurement on your hardware.
- Go 1.27.3 and a C/C++ toolchain on native Linux or macOS, amd64 or arm64.
Build with
just buildorbash scripts/with-duckdb.sh go build ./cmd/fanout; the wrapper supplies DuckDB's pinned headers, static libraries, and CGO flags. The first build needs network access to download the checksum-verified engine. - Bun — compiles the browser assets
- Node.js 24.19.0 — runs development helpers and builds the documentation site
- just — task runner
- A 32-character authentication code secret
git clone https://github.com/labstack/fanout.git
cd fanout
just install # browser dependencies and git hooks
just build # browser assets, then the binaryRun it with the minimum configuration:
export FANOUT_AUTH_CODE_SECRET=$(openssl rand -hex 32) # must be 32+ characters
./bin/fanoutOpen http://localhost:7520 and follow first-boot setup. SMTP and chat are optional; without SMTP,
run ./bin/fanout login-link admin@example.com with the same configuration and data directory.
Run just to list recipes, just check for the full gate, just test for Go tests, and just ui
to rebuild embedded browser assets. See CONTRIBUTING.md for environment setup,
generated assets, hooks, and project layout.
Versions are CalVer — vYYYY.M.N[-alpha|-beta|-rc], numbered from 0 within each month across all
maturity suffixes. Fanout is alpha (for example, v2026.10.23-alpha); GA has no suffix.
Container tags omit the leading v, and every release moves latest. Tagged releases publish
identical manifests to Docker Hub (labstack/fanout) and GHCR (ghcr.io/labstack/fanout); GHCR is
canonical and also carries development images.
See docs/release.md for platforms, checksums, provenance, and verification.
Issues and pull requests are welcome; follow CONTRIBUTING.md and run just check
and just test-race before opening a pull request. Report security issues through
SECURITY.md.
This repository builds Fanout without another repository; LabStack's deployment configuration,
uptime monitoring, and public demo instance are not included. The documentation site in
site/ is included, with settings pages generated from the same internal/config type the
loader binds and checked by just check.
Apache-2.0 © LabStack LLC. See NOTICE and THIRD_PARTY_NOTICES for attribution, and TRADEMARK for use of the Fanout name and logo.
