Open source · 1k+ GitHub stars

The terminal multiplexer for AI agents.

Run Pi, Claude Code, Codex, OpenCode, and other agents in real terminal panes. See what is blocked, working, and done. Detach, SSH back in, and keep every agent running.

$ curl -fsSL https://herdr.dev/install.sh | sh

Linux and macOS · single Rust binary · no Electron · works inside tmux

Why Herdr exists

Coding agents moved into the terminal. The terminal needs an agent-aware control plane.

Herdr is not a GUI wrapper around agents. It keeps the agent's own terminal alive, adds workspace structure, and exposes the same control surface to humans, scripts, and agents.

Core pillars

The parts other tools rarely combine.

01

Detach and reattach

Herdr runs panes in a background session server. Quit the client, close the terminal, and come back to the same agents later.

02

Attach over SSH

Run Herdr where the code and credentials live. SSH into the server and attach, or use Herdr as a thin client to a remote host.

03

Real terminal panes

Every pane is a real terminal. Click panes, tabs, workspaces, and agents; drag borders; select text; use right-click menus.

04

State and API orchestration

The sidebar shows agent state. The CLI and socket API let agents create panes, run commands, read output, and wait for changes.

Terminal-native

See the agent's terminal, not a reconstructed chat view.

GUI agent managers can summarize what an agent is doing. Herdr shows the actual process in the actual terminal and adds the missing layer: persistence, layout, mouse controls, state awareness, and automation hooks.

  • No web dashboard or Electron shell.
  • No vendor-specific wrapped terminal view.
  • No new account or hosted control plane.
Herdr running multiple coding agents in terminal panes

Local or remote

Run Herdr where the work lives.

local

Your machine

Start a local session, split panes, create tabs, and keep agents running while your terminal comes and goes.

$ herdr
ssh

Any SSH client

Use Herdr like tmux on a remote box. The session stays on the server after you detach.

$ ssh you@server
$ herdr
thin client

Remote attach

Point your local Herdr client at an SSH config host and stream the remote TUI back to your terminal.

$ herdr --remote workbox
Herdr terminal view over SSH on a phone
terminal view over SSH
Herdr responsive switcher on a phone
responsive switcher

For agents and scripts

The UI is also an API.

Herdr exposes workspace, tab, pane, output, and wait operations through a CLI and newline-delimited JSON socket API. Agents can orchestrate their own workspace instead of asking you to shuffle terminals by hand.

# create workspace structure
herdr workspace create --cwd ~/project --label api
herdr tab create --label logs

# split a pane and run work
herdr pane split 1-1 --direction right
herdr pane run 1-2 "just test"

# wait, inspect, and continue
herdr wait agent-status 1-1 --status done
herdr pane read 1-2 --source recent-unwrapped

Agent awareness

Stop checking panes one by one.

Herdr workspace sidebar state

Workspace rollups

Each workspace rolls up to its most urgent agent state, so the whole session is scannable.

Herdr agent sidebar state

Agent list

See which agents are blocked, working, done, idle, or unknown without opening every pane.

blocked working done idle

Positioning

What Herdr combines.

Capability tmux GUI agent managers Herdr
Persistent sessions ✓ — ✓
Remote SSH attach ✓ limited ✓
Real terminal panes ✓ — ✓
Mouse-native TUI — ✓ ✓
Agent state awareness — ✓ ✓
Agents can orchestrate it — limited ✓

Integrations

Works with the agents you already run.

Pi Claude Code Codex OpenCode Droid Amp Grok CLI Gemini CLI

Start small

Install Herdr, run two agents, detach once.

The value shows up the first time work keeps running after your terminal disappears.