Tmux Skill β Manage Terminal Sessions via Chat
Control terminal sessions through your messenger. Launch programs, send keystrokes, read terminal output, and manage multiple sessions β all remotely.
February 8, 2026
Work with terminal sessions through OpenClaw. Start processes, send commands, monitor output β from anywhere.
Features
- π₯οΈ Create and manage tmux sessions
- β¨οΈ Send commands and keystrokes
- πΊ Read live terminal output
- π Interact with running programs (htop, vim, etc.)
- π Multiple windows and panes
Install
clawhub install tmux
Usage Examples
Launch programs:
"Start htop in tmux"
"Open vim with server.conf"
"Run npm run dev in a session called frontend"
Control running sessions:
"What's in the terminal right now?"
"Send Ctrl+C"
"Type 'exit' and press Enter"
"Press the arrow keys to scroll down"
Session management:
"Create a session named dev"
"Switch to the server session"
"List all active sessions"
"Kill the build session"
Log monitoring:
"What's the server outputting?"
"Any errors in the logs?"
"Tail the application log"
Prerequisites
Tmux must be installed on your server:
# Ubuntu / Debian
sudo apt install tmux
# macOS
brew install tmux
# Verify
tmux -V
How It Works
The skill:
- Creates or attaches to a named tmux session
- Sends commands via
tmux send-keys - Reads output via
tmux capture-pane - Returns the terminal content to OpenClaw, which summarizes or forwards it
Practical Tips
- Name sessions descriptively β
dev,logs,deploy,build - Great for long-running tasks β builds, deployments, server processes
- Real-time log monitoring β βwatch the server logs and tell me if there are any errorsβ
- Combine with scheduling β check logs every 30 minutes automatically
Example Workflow
You: "Start the dev server in a tmux session"
Bot: Started session 'dev'. Running: npm run dev
You: "What's the dev server showing?"
Bot: Server is running on http://localhost:3000 β compiled in 1.2s, no errors.
You: "Kill the dev session"
Bot: Session 'dev' terminated.