tmux-web
v0.3.0
Published
Access tmux sessions from your browser via a web-based terminal
Maintainers
Readme
tmux-web
Access your tmux sessions from the browser. A lightweight web server that lists running tmux sessions and lets you attach through a full terminal in your browser — with built-in notes, a scheduler, and sidebar extensions.
Install
npm install -g tmux-webOr run directly with npx:
npx tmux-webUsage
# Interactive setup (command bar, GitHub Actions, Git Workflow — uses `gh auth login`, no token file needed locally)
tmux-web setup
# Start on default port 3000
tmux-web
# Custom port
PORT=8080 tmux-web
# Use the default xterm.js renderer
tmux-web
# Optional: use ghostty-web for terminal rendering
tmux-web --ghostty
# Equivalent environment override
TMUX_WEB_TERMINAL_RENDERER=ghostty tmux-web
# Optional: tail-first buffer loading (see docs/architecture.md)
TMUX_WEB_INITIAL_LINES=1000 TMUX_WEB_HISTORY_CHUNK=500 tmux-webThen open http://localhost:3000 in your browser. You'll see a list of active tmux sessions — click one to attach.
Secrets in ~/.tmux-web/.env are loaded automatically when you run tmux-web. GitHub sidebar extensions (Actions, Git Workflow) use the GitHub CLI — run gh auth login once on the host; no token file is required for normal local use. For headless or server deployments, set GH_TOKEN in .env instead.
The terminal renderer defaults to xterm.js. Start with --ghostty or set TMUX_WEB_TERMINAL_RENDERER=ghostty if you want the browser session to use ghostty-web instead. --xterm explicitly selects the default renderer.
Documentation
- Documentation hub
- Notes — per-session Markdown scratchpad
- Scheduler — delayed
send-keystasks - Windows drawer — switch tmux windows from the terminal header (mobile-friendly tab picker)
- Extensions — install, configure, and build sidebar plugins
- Git Workflow — git status, worktree handoff, commit/push
- Architecture — how the server, terminal, and extensions connect
Prerequisites
- Node.js >= 22
- tmux installed and available in your PATH
- GitHub CLI (
gh) on your PATH if you use the GitHub Actions or Git Workflow sidebar extensions (gh auth login; no token file needed locally) - Writable
~/.tmux-web/and~/.config/tmux-web/(see docs for dev-mode paths)
License
MIT
