Skip to content

Environment ​

Hypha-native variables (landed crates):

VariableCrateMeaning
HYPHA_OTEL_ENDPOINThypha-telemetryOTLP base endpoint; /v1/traces appended when no path present
HYPHA_OTEL_SERVICE_NAMEhypha-telemetryservice.name (default "hypha", OTEL_SERVICE_NAME also honored)
OTEL_EXPORTER_OTLP_*hypha-telemetrystandard OTLP vars also enable export

Standard OTEL vars (OTEL_*) are honored per OpenTelemetry semantic conventions.

Node host (hypha serve, hypha-http::env::Env):

VariableMeaning
HYPHA_HOST / HYPHA_PORT (or PORT)bind address (default 127.0.0.1:18787)
HYPHA_TOKENbearer auth; required on non-loopback binds
HYPHA_HOMEhypha data dir (default ~/.local/share/hypha)
HYPHA_NODEnode identity file (default <home>/node.json)
HYPHA_NAMEdisplay name on GET /api/node
HYPHA_ORIGINSCORS allowlist
HYPHA_SSE_KEEPALIVE_MS/api/events keep-alive cadence (0 disables)
HYPHA_PAIR_LIMIT_PER_MIN / HYPHA_PAIR_LIMIT_PER_DAY/api/pair throttle per client IP
HYPHA_PUSH / HYPHA_PUSH_PATHpush config document (default <home>/push.json)

Hub (hypha-hub, hypha_hub::HubConfig + hub_state_from_with):

VariableMeaning
HYPHA_HUB_HOST / HYPHA_HUB_PORT (or HYPHA_PORT)bind (default 127.0.0.1:13000)
HYPHA_HUB_TOKENclient→hub auth; required on non-loopback binds
HYPHA_NODE_URL / HYPHA_NODE_TOKENsingle-node upstream shorthand
HYPHA_NODESid=url[@token];… multi-node registry
HYPHA_HOMEhub data under <home>/hub/ (projection, outbox, push, credentials)
HYPHA_CREDENTIAL_STOREauto/keyring/file node-token backend

Both binaries (hypha serve, hypha-hub) initialize the same OTEL layer — the HYPHA_OTEL_*/OTEL_EXPORTER_OTLP_* vars above apply to each process.

MIT licensed — part of the 9aia GAIA stack.