Guide
TunnelCrib Relay is fallback transport infrastructure for Tunnels that cannot connect directly between a TunnelCrib Client and a TunnelCrib Agent. A customer-operated Relay is a Private Relay. Its executable is tunnelcrib-relay; it launches a per-session tunnelcrib-bridge process for each active Tunnel.
tunnelcrib-relay binary for the host OS and architecture.tunnelcrib-bridge binary alongside it, or configure an absolute TUNNELCRIB_BRIDGE_BIN path.PUBLIC_HOST must be a public DNS name or IP address reachable by both TunnelCrib Client and TunnelCrib Agent. It must not be a private LAN-only address.
./tunnelcrib-relay --register <domain> <orgid> <registration-token>
Registration creates a persistent Relay Device identity and registers its public key with the organization. Normal startup automatically uses Private Relay mode after registration.
The identity and registration configuration are stored in the platform configuration directory, such as ~/.config/tunnelcrib/relay/ on Linux (or the platform equivalent under Go's os.UserConfigDir()).
PUBLIC_HOST=relay.example.com \
RELAY_PORT_START=1337 \
RELAY_PORT_END=2337 \
MAX_SESSIONS=10 \
TUNNELCRIB_BRIDGE_BIN=/opt/tunnelcrib/tunnelcrib-bridge \
./tunnelcrib-relay
The Relay authenticates to the WebSocket server using its registered Ed25519 key, sends a heartbeat every 30 seconds, and accepts Tunnels only for its organization.
| Variable | Default | Description |
|---|---|---|
PUBLIC_HOST | localhost | Public hostname or IP sent to TunnelCrib Client and TunnelCrib Agent. |
RELAY_PORT_START | 1337 | First inbound relay port. |
RELAY_PORT_END | 2337 | Last inbound relay port. |
MAX_SESSIONS | 10 | Maximum concurrent tunnelcrib-bridge processes. |
TUNNELCRIB_BRIDGE_BIN | ./tunnelcrib-bridge | Path to the TunnelCrib Bridge binary. |
TS_LOG | unset | Set to DEBUG for verbose logs. |
Trusted TunnelCrib infrastructure can still run this same binary in a non-Private-Relay mode. This mode is not organization-scoped and should not be used for a Private Relay.
WS_URL=wss://ws.example.com \
WS_TOKEN=<orgid> \
PUBLIC_HOST=platform-relay.example.com \
./tunnelcrib-relay
--customer to explicitly require Private Relay mode when configuring a new host with WS_URL and WS_TOKEN.
Last reviewed 2026-09-09 against the current CLI source. Corrections are welcome — support@gaur.is.