Skip to content

TUI Cannot Connect

  • flowlayer-client-tui fails to connect.
  • connection opens then immediately fails with auth status.
  • /health returns 401 or 403.
  • server Session API is disabled (no -s and no session.bind)
  • wrong -addr value
  • wrong -token value
  • using a server-only config in TUI -config mode with no session.addr
  • remote host is not reachable from your client machine
  1. Confirm server session mode is enabled:
Terminal window
flowlayer-server -c ./flowlayer.jsonc -s 127.0.0.1:6999 -token dev-token
  1. Validate health from the same machine as the TUI:
Terminal window
curl -H "Authorization: Bearer dev-token" http://127.0.0.1:6999/health

Expected response:

{"ok": true}
  1. Connect with explicit parameters first:
Terminal window
flowlayer-client-tui -addr 127.0.0.1:6999 -token dev-token
  1. If you use -config, ensure the file contains session.addr for the client.

  2. For remote servers, tunnel first, then connect locally:

Terminal window
ssh -N -L 6999:127.0.0.1:6999 dev@remote-host
flowlayer-client-tui -addr 127.0.0.1:6999 -token dev-token
  • 401 Unauthorized: missing Authorization header
  • 403 Forbidden: header exists but token does not match

See Client / TUI for connection modes and Server for Session API bind and token behavior.