Your VPS tmux sessions, in one window.

TmuxLive is a desktop app that connects to one or more VPSes over HTTPS, without SSH, and opens each tmux session in a tab. If the connection drops, the session keeps running on the server and the tab reconnects on its own.

The same window in use: the line next to each name shows the connection state.

Several servers

Every VPS in the same rail, each with its state. The quick switcher finds any session on any server.

Nothing is lost when the link drops

The tab keeps the last frame, shows the reconnect countdown and comes back on its own. Closing the tab does not end the session.

Secure by default

The server only listens on localhost; access goes through an HTTPS tunnel. Saving a connection without HTTPS asks for explicit confirmation.

English and Portuguese

The app follows the system language, or the one you pick in the status bar, and so does this page. It updates itself, with signed packages.

Install

Current version: 0.5.2. Two programs: the tmuxlive app on your machine (Linux, macOS, Windows) and tmuxlive-server on the VPS (Linux). Every channel below gets updates automatically.

App

Any Linux, without root, with an application menu entry (glibc 2.35+):

curl -fsSL https://tmuxlive.github.io/tmuxlive/install.sh | sh -s -- client
Debian and Ubuntu (apt)
curl -fsSL https://tmuxlive.github.io/tmuxlive/packages.asc | sudo gpg --dearmor -o /usr/share/keyrings/tmuxlive.gpg
echo "deb [signed-by=/usr/share/keyrings/tmuxlive.gpg] https://tmuxlive.github.io/tmuxlive/apt stable main" \
  | sudo tee /etc/apt/sources.list.d/tmuxlive.list
sudo apt update && sudo apt install tmuxlive
Fedora, RHEL and openSUSE (dnf, zypper)
sudo curl -fsSL -o /etc/yum.repos.d/tmuxlive.repo https://tmuxlive.github.io/tmuxlive/tmuxlive.repo
sudo dnf install tmuxlive
# openSUSE: sudo zypper addrepo https://tmuxlive.github.io/tmuxlive/tmuxlive.repo && sudo zypper install tmuxlive
Arch Linux (AUR)
yay -S tmuxlive-bin
Flatpak
flatpak remote-add --if-not-exists --user tmuxlive https://tmuxlive.github.io/tmuxlive/tmuxlive.flatpakrepo
flatpak install --user tmuxlive io.github.TmuxLive.tmuxlive
macOS (Homebrew)
brew install tmuxlive/tap/tmuxlive
Windows

Download the .msi from the latest release. The installer is per user (it does not ask for administrator rights) and creates the TmuxLive shortcut in the Start Menu.

Server on the VPS

Install it as the same user that owns the tmux sessions. The script installs the binary, which updates itself (checking the signature), and a systemd user service:

curl -fsSL https://tmuxlive.github.io/tmuxlive/install.sh | sh -s -- server

Also in the apt, dnf and AUR repositories, as tmuxlive-server (AUR: tmuxlive-server-bin).

First steps

With no saved servers, the app shows these same steps and the Add server button.

  1. Install the server on the VPS, as shown above. It only listens on 127.0.0.1:7681.
  2. Expose it over HTTPS. Use a Cloudflare Tunnel, a reverse proxy or an SSH tunnel (see how). Do not open port 7681 to the internet.
  3. Get the access token on the VPS:
    cat ~/.config/tmuxlive/token
  4. Add the server in the app: click + at the top of the rail, enter the URL (for example https://tmux.yourdomain.com) and the token. Test and save checks the connection before saving. The name is optional: without one, it comes from the URL.
  5. Open a session: click a session in the rail or on the Open a session card, or create one with the + next to the server.

Using the app

The connection line

Every server in the rail, every tab and the terminal's edge show the connection state with the same line, always with the text next to it or in its tooltip:

  • Secure connection · solid line: HTTPS or localhost.
  • No HTTPS · a line open in the middle, and a dashed amber edge on the terminal: the token travels unencrypted on the network.
  • Connecting… / Reconnecting… · a segment travels along the line.
  • Down · a cut line, with the likely cause and the countdown to the next attempt.

Sessions, windows, panes and tabs

  • Opening: click a session, window or pane in the rail; the arrow only expands. Each session opens in a tab, ready to type.
  • Quick switcher: Ctrl+Shift+P searches sessions on every server; ↑ ↓ pick and Enter opens.
  • Closing the tab does not end the session. The "Tab closed · … keeps running" notice has a Reopen button.
  • Actions: the ⋯ button (or a right click) on servers, sessions, windows and panes: new session or window, rename, split and zoom panes, send a command, make a server the default. Killing something asks for confirmation with its name and server, and Enter cancels.
  • Default server: gets the new sessions from Ctrl+Shift+T when no tab is open.

When the connection drops

The tab stays in place with the last frame dimmed, and a banner says: "Connection lost. The session is still running on the server." The app retries after 1, 2, 4 and 8 seconds, and then every 15 s. You can use Reconnect now at any time. When it is back, a notice confirms: "reconnected; nothing was lost". While the connection is down, what you type does not reach the server.

A server that is down stays in the rail with its last known tree. The cause shows in plain language (for example, "Address not found. Check the server URL."); click it to see the technical message.

Terminal

  • Drag to select; double-click selects a word. Ctrl+C copies the selection and Ctrl+V pastes (also Ctrl+Shift+C / Ctrl+Shift+V and Shift+Insert).
  • With nothing selected, Ctrl+C interrupts the program, as in any terminal.
  • The mouse wheel scrolls the pane's history. With set -g mouse on in tmux, clicks and the wheel go to tmux and the programs.
  • To switch panes, click one in the rail or use the tmux prefix.
  • Font size with Ctrl+Shift+= / − / 0 or the A− A+ buttons in the status bar. Symbols, CJK and Nerd Fonts icons use the system fonts.

Shortcuts

On macOS, use Cmd instead of Ctrl in the Shift shortcuts. F1 shows this list in the app.

ShortcutAction
Sessions and tabs
Ctrl+Shift+PGo to any session
Ctrl+Shift+TNew session on the current server
Ctrl+Shift+RRename the tab's session
Ctrl+Shift+WClose the tab (the session keeps running)
Ctrl+PgUp / Ctrl+PgDnPrevious / next tab
Ctrl+Shift+EGo to the server list (Tab moves, Enter opens)
Panes and windows
Ctrl+Shift+D / Ctrl+Shift+SSplit the pane: side by side / top and bottom
Ctrl+Shift+NNew window in the tab's session
Ctrl+Shift+ZZoom or restore the pane
Ctrl+Shift+KSend a command to the pane
Text and help
Ctrl+C / Ctrl+VCopy the selection / paste
Ctrl+Shift+= / − / 0Larger, smaller, default font
F1Open and close the help

HTTPS and tunnels

Whoever has the token has a shell on the VPS. The server only listens on 127.0.0.1; to reach it from outside, use one of these options.

Cloudflare Tunnel

HTTPS without opening ports. Requires a domain on Cloudflare.

Reverse proxy

nginx or Caddy with a certificate, pointing to 127.0.0.1:7681 (example in deploy/nginx.conf).

SSH tunnel

The simplest; nothing is exposed. Use http://127.0.0.1:7681 in the app.

Cloudflare Tunnel

In the Zero Trust dashboard → Networks → Tunnels → Create a tunnel (Cloudflared type), install the connector with the command shown and, under Public Hostname, point tmux.yourdomain.com to HTTP → 127.0.0.1:7681. In the app, use https://tmux.yourdomain.com. The server keeps the terminal alive with a ping every 30 s, below Cloudflare's idle limit.

Cloudflare Access (optional, recommended): create a Service Token and a Self-hosted application with a Service Auth policy. In the server dialog, open Cloudflare Access and fill in the Client ID and the Client Secret.

SSH tunnel

ssh -N -L 7681:127.0.0.1:7681 user@vps

Loopback addresses (localhost, 127.0.0.0/8, ::1) count as a secure connection. Any other http:// shows as No HTTPS and is only saved after you confirm you understand the risk.

Configuration

Servers, language and font size are kept in client.toml, with mode 600 and a copy of the previous version in client.toml.bak:

Linux~/.config/tmuxlive/client.toml
macOS~/Library/Application Support/tmuxlive/client.toml
Windows%APPDATA%\tmuxlive\client.toml

If the file cannot be read, the app writes nothing until it is fixed, so the saved servers are not lost.

Server

OptionVariableDefault
--bindTMUXLIVE_BIND127.0.0.1:7681
--token-fileTMUXLIVE_TOKEN_FILE~/.config/tmuxlive/token in the service
--socketTMUXLIVE_SOCKETtmux's default socket
--no-exit-guardTMUXLIVE_NO_EXIT_GUARDguard on
--no-auto-updateTMUXLIVE_NO_AUTO_UPDATEauto-update on

exit guard: by default, exit or Ctrl+D in a session's last shell restarts the shell instead of destroying the session. To end it on purpose, use Kill session… in the app.

tmux status bar colors

To make the tmux bar match the app, in the VPS's ~/.tmux.conf:

set -g status-style "bg=#14181f,fg=#9aa4b0"
set -g window-status-current-style "fg=#dfe4ea,bold"
set -g pane-active-border-style "fg=#55667c"
set -g pane-border-style "fg=#363f4c"

Troubleshooting

The app shows these messages in the rail and in the server dialog. Click the cause to see the technical message.

MessageWhat to do
The server did not respondCheck that tmuxlive-server and the tunnel (or proxy) are running on the VPS: systemctl --user status tmuxlive-server.
Address not foundCheck the server URL (the domain or tunnel name).
The secure connection failedCheck the proxy or tunnel certificate.
Token refusedCopy it again with cat ~/.config/tmuxlive/token, and edit the server.
Protected by Cloudflare AccessEdit the server and fill in the service token (Client ID and Client Secret).
502 Bad GatewayThe tunnel works, but the server is not running on the configured port.
Old tmuxlive-serverUpdate the server; it also updates itself every 6 h.

Verification

The repositories are signed with the GPG key packages.asc. Every release includes a SHA256SUMS signed with Ed25519, and auto-update refuses any package without a valid signature.

TmuxLive is open source under the MIT license: use, copy, modify and distribute it, including commercially, keeping the copyright and license notice.