mux-0kmtui
TUI for running commands on multiple VPS via 0km vps-mux.
Features
- Server Selection: Multi-select servers from your configured hosts
- Multi-line Commands: Write complex bash scripts directly in the editor
- Script Import: Load .sh files to execute on remote servers
- Command Execution: Run commands on all selected servers simultaneously
- Live Output: View real-time output from each server in dedicated tabs
- Closable Tabs: Close individual server log tabs when no longer needed
Installation
pip install -e .
Usage
mux-0kmtui
Workflow
- Select servers from the left panel (Space to toggle, or use All/None buttons)
- Type a command in the text area at the bottom (multi-line supported)
- Or click "Load .sh" to import a script file
- Press
Ctrl+Ror click "Run" - View output from each server in dedicated tabs
- Close tabs with the X button when done
Keyboard Shortcuts
| Key | Action |
|---|---|
Space |
Toggle server selection |
Ctrl+A |
Select all servers |
Ctrl+D |
Deselect all servers |
Ctrl+R |
Run command |
Ctrl+O |
Load .sh file |
Ctrl+L |
Clear all log tabs |
Escape |
Focus command input |
q |
Quit |
Configuration
Uses the same configuration as other 0kmtui tools:
~/.config/0kmtui/config.yml~/.config/0km/config.yml/etc/0km/config.yml
Requirements
- Python 3.10+
0kmcommand installed and in PATH- SSH access to VPS hosts
License
MIT