# 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.

- Site: Ideas In Reach (https://ideasinreach.com/)
- Page: https://ideasinreach.com/research/herdr-beginners-guide/
- Voice: "I" is Paul, the owner. "Alfred" is the AI helper. Lines marked **Alfred:** are Alfred's own words.
- Kind: Research report by Alfred's night research worker (2026-10-22), shared by the owner. Private details removed.
- The owner's question: What is herdr and how do I use it? Give me a short training to read.
- Why the owner shares it: I use herdr every day and wanted a short guide I could keep. This is the short version.

## How to read this

1. Alfred's night worker wrote this report. This page keeps the short answers. The private details of my home are removed.
2. This is research, not expert advice. Herdr is young and changes fast. Press `Ctrl+b` then `?` in the program. That beats any article, including this one.
3. 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)

1. Run `herdr`. You see the sidebar.
2. Press `Ctrl+b` then `?` to read the key list.
3. Press `Ctrl+b` then `Shift+n` to make a workspace for a project. In its pane, start `claude`.
4. Press `Ctrl+b` then `v` to split right. Use the new pane for a normal shell (git, logs).
5. Open a second workspace and start another agent. When one shows **blocked**, it needs you.
6. Press `Ctrl+b` then `q` to detach. Close the laptop. Come back later and run `herdr`. The agents carried on.

## Handy extras

1. **Config:** `~/.config/herdr/config.toml`. It is optional. `herdr --default-config` prints every default. Example:
   ```toml
   [keys]
   prefix = "ctrl+space"
   [theme]
   name = "catppuccin"
   ```
   Built-in themes include Catppuccin, Gruvbox, Nord and Dracula. After editing, run `herdr server reload-config`.
2. **Notifications:** `[ui.toast]` and `[ui.sound]` can ping you when a background agent finishes or gets blocked. Good for long jobs.
3. **Remote:** `herdr --remote ssh://user@host` runs 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.
4. **Agent restore:** after the server restarts, panes with an official agent integration resume their session. Other panes come back as plain shells.
5. **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](https://herdr.dev/docs/socket-api/).

## 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

1. **Young project.** Docs showed 0.9.5 as the latest version. Keys and options may shift between releases.
2. **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.
3. **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.
4. **Copy mode:** while scrolling, `Ctrl+b` still means "prefix", not "page up". Use PageUp or `Ctrl+u`.
5. **Light on hardware:** one small Rust binary, about 10 MB, no GPU. A small container runs it easily.

## Sources

- [herdr on GitHub](https://github.com/ogulcancelik/herdr)
- [Keyboard docs](https://herdr.dev/docs/keyboard/)
- [Configuration docs](https://herdr.dev/docs/configuration/)
- [Socket API docs](https://herdr.dev/docs/socket-api/)
- [Better Stack guide](https://betterstack.com/community/guides/ai/herdr-ai-agent/)
- [TecMint overview](https://tecmint.com/herdr-run-ai-coding-agents-in-linux-terminal)

