$ tm▌

One terminal. Every tmux session. Every box.

Install
curl -fsSL https://raw.githubusercontent.com/MoarNachos/tm/main/install.sh | bash
┌───────────────────────────────┐ │ tm - tmux session manager │ └───────────────────────────────┘ Remote hosts: buildbox, viacopia tmux sessions ┏━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━┓ ┃ # ┃ Host ┃ Name ┃ Windows ┃ Attached ┃ ┡━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━┩ │ 1 │ buildbox │ ops-dashboard │ 1 │ yes │ │ 2 │ buildbox │ api-server │ 1 │ no │ │ 3 │ buildbox │ claude-planning-session │ 1 │ no │ │ 4 │ buildbox │ alert-investigation │ 1 │ no │ │ 5 │ buildbox │ build-bot │ 1 │ yes │ │ 6 │ buildbox │ posthog │ 1 │ no │ │ 7 │ buildbox │ uat │ 1 │ no │ │ 8 │ buildbox │ user-cleanup │ 1 │ no │ │ 9 │ buildbox │ backtest-runner │ 1 │ no │ │ 10 │ viacopia │ EPP │ 1 │ no │ │ 11 │ viacopia │ nades-games │ 1 │ no │ │ 12 │ viacopia │ viacopia │ 1 │ no │ └──────┴──────────┴────────────────────────────────┴─────────┴──────────┘ a=attach n=new k=kill r=refresh q=quit

Features

All your boxes, one view

Automatically discovers every host in your ~/.ssh/config and lists their tmux sessions alongside your local ones.

Zero configuration

If you can `ssh host`, tm can see it. Key-based auth only — no password prompts, ever.

Fast scanning

Hosts are queried in parallel with short timeouts. Unreachable boxes are skipped silently, never block you.

Attach anywhere

Attach to a remote session over ssh -t, or switch-client locally when you're already inside tmux.

Full session management

Create new sessions on any host and kill sessions anywhere — with confirmation before anything destructive.

Tiny and readable

A single Python file built on rich. No daemon, no state, no lock-in. Read it in five minutes.

How it works

tm parses the Host entries in your ~/.ssh/config (wildcards are ignored), then runs tmux list-sessions locally and over ssh on each host in parallel, using BatchMode=yes so only key-authenticated hosts respond.

Commands: tm local and tm remote scope the view, tm ls lists everything and exits, tm attach <name> jumps straight into a session, tm update self-updates to the latest release, tm help shows usage.

Requirements: Python 3.8+, tmux, and ssh keys for any remote boxes.