Skip to content

Security model

The Quick Tunnel URL is public; it is not the secret. Authentication is the one-time pairing token delivered only through the QR code at session start.

  • The token travels in the URL fragment (#pair=…) so it never reaches the HTTP server or Cloudflare. The web client sends it only in the first WebSocket auth message.
  • Single-use and expires in 5 minutes.

After pairing, the client receives a short-lived, revocable session credential stored in sessionStorage. Tokens are hashed server-side; comparisons are constant-time.

  • By default the server binds to 127.0.0.1 (local only).
  • With --lan it binds to 0.0.0.0 (expose to your local network) — use only on trusted networks.

WebSocket Origin is checked. Terminal contents are never logged.

© 2026 tui-bridge · MIT licensedGitHubnpmDocs