Rex integrates a terminal frontend with a multiplexer backend, allowing persistent sessions that survive disconnections or reboots. The system supports macOS, iOS, Linux, Windows, and FreeBSD, using a custom protocol over SSH or Tailscale to minimize latency. A CLI interface enables agents and scripts to control remote panes and stream terminal events.