tmux

Send keystrokes and capture pane output in tmux sessions.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zhcndoc/openclaw --skill tmux-zhcndoc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/zhcndoc/openclaw/tree/main/skills/tmux
Command: npx skills add https://github.com/zhcndoc/openclaw --skill tmux-zhcndoc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automate the control of tmux sessions by sending keystrokes and reading pane output, enabling reliable automation of interactive CLIs.

Core Features & Use Cases

  • Send keys to a tmux session and windows/panes
  • Capture pane output for scripting and logging
  • List sessions, create, rename, or kill sessions via scripted commands
  • Coordinate multi-pane workflows for interactive tools

Quick Start

Launch a tmux session, then use the provided commands to list sessions, send keystrokes, and capture pane output to automate your interactive workflow.

Frequently Asked Questions about tmux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate interactive terminal workflows in tmux?

You can automate interactive terminal workflows in tmux by sending keystrokes to sessions and capturing pane output via shell-based commands, enabling reliable scripting of interactive CLIs and long-running processes.

Can I capture pane output from a tmux session for logging?

Yes, capturing pane output from a tmux session allows you to log and script interactions. The provided commands read pane output directly, facilitating automated debugging and workflow coordination.

How do I send keystrokes to a specific tmux pane or window?

To send keystrokes to a specific tmux pane or window, use the shell-based send keys commands provided. This allows remote control and orchestration of multi-pane sessions within tmux.

What do I need to script tmux session management remotely?

To script tmux session management remotely, you need tmux installed and a Bash-compatible shell. These allow you to list, create, rename, or kill sessions via scripted shell commands.

Does this approach work for orchestrating multi-pane sessions in tmux?

Yes, this approach works for orchestrating multi-pane sessions in tmux. It coordinates interactive tools by sending targeted keystrokes and reading output across different panes and windows.

Why use shell scripting to control tmux sessions instead of manual input?

Using shell scripting to control tmux sessions instead of manual input automates repetitive interactive terminal workflows, ensures reliable execution of long-running processes, and enables multi-pane orchestration.