Skip to main content

Official TUI

The official FlowLayer terminal client is flowlayer-client-tui.

It connects to a running FlowLayer server session to observe runtime state and send runtime commands.

The server remains the source of truth for orchestration state, logs, and lifecycle.

Connection

flowlayer-client-tui supports two connection modes:

  1. Explicit flags:
flowlayer-client-tui -addr 127.0.0.1:6999 -token dev-token
  1. Config-driven mode with -config <path>:
    • reads session.addr
    • reads session.token

Server and client config fields are different:

  • server listens on session.bind
  • TUI connects using session.addr

See Server and TUI Modes.

Session lifecycle over /ws

For each connection:

  1. TUI opens WebSocket on /ws with Authorization: Bearer <token>.
  2. Server sends hello.
  3. Server sends snapshot.
  4. TUI keeps consuming live events (service_status, log).
  5. TUI can send runtime commands on the same socket.

Lifecycle details are specified in WebSocket Lifecycle and Events.

Confirmed capabilities

  • Navigate services from the services panel.
  • View logs in the logs panel.
  • Start, stop, or restart a selected service (start_service, stop_service, restart_service).
  • Start all or stop all services from the all-logs context (start_all, stop_all).

Related command contracts are documented in Actions and Logs.

Limits and boundaries

  • Not a source of truth for service state.
  • Not an orchestrator.
  • Not durable log storage.
  • Depends on a running FlowLayer server session.

The TUI keeps local UI state only; runtime truth comes from server protocol messages.