Skip to main content

GPU tmux session manager — start, attach, peek, and remove remote tmux sessions on a GPU server

Project description

gmuxkit

GPU tmux session manager — start, attach, peek, and remove remote tmux sessions on a GPU server from your laptop.

Close your laptop. Come back later. Your GPU session is still running.

Install

uv pip install git+https://github.com/santhoshkammari/gmuxkit.git

or with pip:

pip install git+https://github.com/santhoshkammari/gmuxkit.git

Setup

Add to your ~/.bashrc:

export GMUX_HOST="user@your-gpu-host"  # e.g. ng6355@192.168.1.100

SSH key auth recommended so there are no password prompts.

Usage

gmux <command> [args]

Commands:
  start  <name>     Create a new named tmux session on GPU
  attach <name>     Attach to a running session (interactive)
  peek   <name>     Print last 3 lines of a session (non-interactive)
  ls                List all sessions with live screen previews
  ls -n             List session names + timestamps only
  rm     <name>     Kill session on GPU and remove from local log

Options:
  --help, -h        Show this help
  --version, -v     Show version

Workflow

# Start a session on the GPU and kick off work
gmux start mywork
gmux attach mywork      # type your commands, Ctrl+B D to detach

# Close your laptop — session keeps running on GPU

# Come back later, reconnect
gmux ls                 # see all sessions with live screen previews
gmux ls -n              # just names + timestamps
gmux peek mywork        # quick look without attaching
gmux attach mywork      # jump back in

# Done with the session
gmux rm mywork          # kills on GPU + removes from local log

Session log

All sessions are logged to ~/.tmux-sessions/sessions.log with timestamps — so you never forget a session name even after closing your terminal.

Requirements

  • SSH access to a remote machine with tmux installed
  • GMUX_HOST env var set to user@host

Project details


Download files

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

Source Distribution

gmuxkit-0.3.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

gmuxkit-0.3.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file gmuxkit-0.3.0.tar.gz.

File metadata

  • Download URL: gmuxkit-0.3.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gmuxkit-0.3.0.tar.gz
Algorithm Hash digest
SHA256 36c834934ea8e835288f40b8f1f43835cd342eb6694fcd663c324d224feac1d9
MD5 566dfb1c9c9f2708ddc32d21deb17337
BLAKE2b-256 a2696123debfc0185d6faf317449718db46a0839a2b5fc2c4484b88d74e6ea1a

See more details on using hashes here.

File details

Details for the file gmuxkit-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: gmuxkit-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gmuxkit-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36c85177028c6a046c28dedbbca7b0bf67908d229f4e5a35c91563ce390fca81
MD5 feb2d72e8515b78e654daf62bd5f669c
BLAKE2b-256 e288d9c887d9946a923e68f65c9d61a5752e808790e3bf0ca3f33dcfb1308361

See more details on using hashes here.

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