Skip to main content

Monitor and interact with tmux/Byobu sessions from your phone

Project description

Trustmux

A mobile companion for tmux / Byobu sessions. Run a lightweight daemon on your workstation; monitor and interact with your terminal sessions from your phone over your Tailscale network. No relay server — terminal data stays between your devices.

Works with plain tmux and with byobu. Byobu users get the live status bar chips; plain tmux users get everything else.

Two tiers:

  • Free — PWA. Install one icon per machine directly from the browser.
  • Paid — Native Flutter app with full ANSI colors, multi-machine management, and biometric auth.

Requirements

  • tmux (byobu optional but recommended)
  • Python 3.10+
  • Tailscale installed, running, and connected

Install

Homebrew (macOS / Linux)

brew tap dustinkirkland/trustmux
brew install trustmux
trustmux-enable    # configure tailscale serve + start daemon
trustmux-pair      # generate pairing code; enter on phone

pip (PyPI)

pip install trustmux
trustmux-enable
trustmux-pair

Debian / Ubuntu (.deb)

Trustmux is bundled with byobu — installing byobu brings trustmux along:

sudo apt install byobu
trustmux-enable
trustmux-pair

Or with the PPA for the latest release:

sudo add-apt-repository ppa:dustinkirkland/byobu
sudo apt install byobu
trustmux-enable
trustmux-pair

Daily use

trustmux-ctl start      # start daemon
trustmux-ctl stop       # stop daemon
trustmux-ctl restart    # restart daemon
trustmux-ctl status     # show URL and running status
trustmux-ctl log        # tail the daemon log

trustmux-pair           # generate a pairing code for a new device
trustmux-unpair         # list paired devices and remove them

Setup from source

cd mobile/
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
./trustmux-enable
./trustmux-pair

Configuration

Path Purpose
~/.config/trustmux/tokens.json Paired device session tokens (mode 0600)
~/.config/trustmux/trustmux.sock Admin Unix socket (mode 0600)
~/.config/trustmux/trustmux.log Daemon log (mode 0600)
~/.config/trustmux/machines.json Optional: sibling machines for the machine selector

Multiple machines

[
  { "name": "work",     "url": "https://work-machine.tail1234.ts.net" },
  { "name": "personal", "url": "https://personal.tail1234.ts.net" }
]

Security

  • Daemon binds to 127.0.0.1:7432 only — not reachable from the network
  • All traffic encrypted by Tailscale WireGuard; HTTPS via tailscale serve
  • No relay server — terminal data never leaves your Tailscale mesh
  • Pairing codes: 6-digit, 5-minute TTL, single-use, max 10 attempts
  • Session tokens: 256-bit random, stored at mode 0600

Tests

cd mobile/
python3 -m unittest tests.test_daemon -v

Troubleshooting

502 Bad Gateway — tailscale serve is running but daemon isn't: trustmux-ctl start

"Serve not enabled" — visit the URL printed by tailscale serve --bg 7432

Phone can't reach URL — ensure Tailscale is active on the phone

Need to re-pair — run trustmux-pair and enter the new code on the device

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trustmux-7.7rc2.tar.gz (67.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trustmux-7.7rc2-py3-none-any.whl (56.4 kB view details)

Uploaded Python 3

File details

Details for the file trustmux-7.7rc2.tar.gz.

File metadata

  • Download URL: trustmux-7.7rc2.tar.gz
  • Upload date:
  • Size: 67.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trustmux-7.7rc2.tar.gz
Algorithm Hash digest
SHA256 284599466fdfaa7126a2dae5793f763c94885a331dfbe4489d525e2746964eeb
MD5 ba8946ee574060e4ded6a037fadc4b90
BLAKE2b-256 72eac679c9eea89c2ef9d9905b53f1fa3c0d1f6e1616ca31c001eaf4573efac4

See more details on using hashes here.

Provenance

The following attestation bundles were made for trustmux-7.7rc2.tar.gz:

Publisher: pypi-publish.yml on dustinkirkland/byobu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trustmux-7.7rc2-py3-none-any.whl.

File metadata

  • Download URL: trustmux-7.7rc2-py3-none-any.whl
  • Upload date:
  • Size: 56.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trustmux-7.7rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ec33568d83f56cadc06e96bee4f04db1b347080832159e69ec14f8bf1f60be3
MD5 62951277c6080c6dbae2f95e0d2501fe
BLAKE2b-256 0b3c123e223bc6467df3c8849ccba50f33617d6b1658e7e2d871f30e212b21ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for trustmux-7.7rc2-py3-none-any.whl:

Publisher: pypi-publish.yml on dustinkirkland/byobu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page