A beginner's guide to herdr
What herdr is, the few keys worth learning first, and a ten-minute first session for running several AI coding agents at once.
Why I share this: I use herdr every day and wanted a short guide I could keep. This is the short version.
How to read this
- Alfred’s night worker wrote this report. This page keeps the short answers. The private details of my home are removed.
- This is research, not expert advice. Herdr is young and changes fast. Press
Ctrl+bthen?in the program. That beats any article, including this one. - The tmux and Zellij comparison comes from general knowledge. The worker did not check it.
Short answer
herdr is tmux for AI coding agents. It is a terminal program. It keeps many terminals (panes) running in a background server. A sidebar shows which agent (Claude Code, Codex, OpenCode, Cursor and others) is working, blocked (waiting for you, for example at a permission prompt) or idle.
You can close the window or lose your SSH connection. Everything keeps running. Run herdr again to get back in.
The ideas in one minute
| Word | Meaning |
|---|---|
| Server | Background process that owns all your terminals. It survives disconnects. |
| Client | The screen you look at. You can detach and reattach from any terminal, SSH session or phone browser. |
| Workspace | One per project (left sidebar). |
| Tab | Like a browser tab inside a workspace. |
| Pane | A real terminal. Split a tab into several. |
| Agent state | working, blocked or idle. Shown in the sidebar with no setup. |
| Prefix | Ctrl+b. Press and release, then press a key. Same idea as tmux. |
Keys to learn first
These are the defaults from the official docs. Press Ctrl+b, let go, then:
| Do this | Keys |
|---|---|
| Show all keys | ? |
| New workspace | Shift+n |
| New tab; next / previous tab | c; n / p |
| Split right / split down | v / - |
| Move between panes | h j k l |
| Zoom a pane (toggle) | z |
| Close pane / tab | x / Shift+x |
| Scroll back (copy mode) | [, then PageUp / PageDown |
| Detach (everything keeps running) | q |
The mouse works too. Click panes and tabs, drag split borders, right-click for menus. That helps a lot on a phone.
If you also use tmux, change the prefix so the two do not clash.
A first session (10 minutes)
- Run
herdr. You see the sidebar. - Press
Ctrl+bthen?to read the key list. - Press
Ctrl+bthenShift+nto make a workspace for a project. In its pane, startclaude. - Press
Ctrl+bthenvto split right. Use the new pane for a normal shell (git, logs). - Open a second workspace and start another agent. When one shows blocked, it needs you.
- Press
Ctrl+bthenqto detach. Close the laptop. Come back later and runherdr. The agents carried on.
Handy extras
- Config:
~/.config/herdr/config.toml. It is optional.herdr --default-configprints every default. Example:Built-in themes include Catppuccin, Gruvbox, Nord and Dracula. After editing, run[keys] prefix = "ctrl+space" [theme] name = "catppuccin"herdr server reload-config. - Notifications:
[ui.toast]and[ui.sound]can ping you when a background agent finishes or gets blocked. Good for long jobs. - Remote:
herdr --remote ssh://user@hostruns the server on the remote box and the client on your own machine. Your local config and theme follow you. The worker did not test this. - Agent restore: after the server restarts, panes with an official agent integration resume their session. Other panes come back as plain shells.
- Agents can drive herdr. A CLI and a local socket let an agent open panes, read another pane, send it a prompt, or wait until it is blocked. This part is more experimental. See the socket API docs.
herdr compared with the alternatives
| herdr | tmux | Zellij | Plain terminal tabs | |
|---|---|---|---|---|
| Survives disconnect | Yes | Yes | Yes | No |
| Knows agent state | Yes, built in | No | No | No |
| Maturity | New (2026), moves fast | Very old, solid | Mature | n/a |
| Best for | Several AI agents at once | Anything, scripts | General use | One local window |
Keep tmux for plain servers. Use herdr when several agents run at once.
Cautions
- Young project. Docs showed 0.9.5 as the latest version. Keys and options may shift between releases.
- License is unclear. The GitHub page says Apache-2.0. One search result said AGPL-3.0. Check the repo’s LICENSE file before you redistribute it.
- Agents with permissions act on your machine. herdr only runs them. It does not make them safe. If you open a herdr shell from a phone, put it behind a login and keep it off the open internet.
- Copy mode: while scrolling,
Ctrl+bstill means “prefix”, not “page up”. Use PageUp orCtrl+u. - Light on hardware: one small Rust binary, about 10 MB, no GPU. A small container runs it easily.