Herdr is an Apache-2.0 terminal runtime, written in Rust, that keeps your AI coding agents’ terminals alive in a background server. Close your laptop or drop the SSH connection and the sessions keep running. You reattach later with one command. It manages agents like Claude Code and Codex; it doesn’t replace them.
What Is Herdr?
Herdr is a single Rust binary that runs inside the terminal you already use. It gives you tmux-style panes and tabs, plus one thing tmux doesn’t have: it knows which of your panes hold coding agents and whether each one is working, idle or blocked waiting for you.
It’s not an agent. People searching for herdr AI sometimes expect a model or a chatbot, and that’s not what this is. The README names Claude Code, Codex, Cursor, OpenCode and Grok as agents it handles, and says it doesn’t wrap or replace them.
Persistence is the part that matters for a VPS. Terminals live in a background server, so closing the client or losing the connection doesn’t kill them. Press ctrl+b q to detach, run herdr to come back.
Herdr vs tmux
tmux has done this job for twenty years, and it’s still the safe answer. Herdr’s pitch is agent awareness. When you run five agents in five panes, you want to know which one stopped and asked a question twenty minutes ago.
| Topic | tmux | herdr |
|---|---|---|
| Pane, tab and session model | Yes | Yes, same model |
| Knows about AI agents | No, treats every process the same | Yes: shows working, idle or blocked |
| Notifications on state change | Not built in | Sound or system notification for background panes |
| Default prefix | ctrl+b | ctrl+b (configurable) |
| Runs as | Its own multiplexer | Inside your existing terminal, with a background server |
| Age and ecosystem | Mature, on every distro | New; small plugin ecosystem |
I’d stay on tmux if you run one agent, if you SSH from a locked-down machine where you can’t install anything, or if you want the thing that’s already on every server. I’d try herdr once you run three or more agents and keep losing track of them.
Herdr isn’t the only tool in this gap. cmux and Orca target the same problem and both come up in comparisons, but I haven’t tested either, so I won’t rank them here.
How to Install Herdr on a Linux VPS
Any small Linux VPS works. The README lists three install paths: an install script, Homebrew and mise. On a server the script is the quickest. Read it before you pipe it into a shell, as you should with any install script.
# read the script first
curl -fsSL https://herdr.dev/install.sh -o herdr-install.sh
less herdr-install.sh
sh herdr-install.sh
# or with Homebrew / mise
brew install herdr
mise use -g herdr
# start it
herdr
The README doesn’t give a Linux distro list, so check that the binary runs on yours. On a fresh Debian or Ubuntu VPS it needs nothing beyond a terminal.
How to Run Herdr Sessions Over SSH on a Remote Server
There are two ways to work. You can SSH into the VPS and run herdr there, or you can run the client locally and let it talk to a server on the VPS. The second one reads your local config, so your keybindings and theme follow you.
- SSH into the VPS and run herdr.
- Start an agent in a pane, say Claude Code, and give it a long task.
- Press ctrl+b q to detach. Your SSH session can end now.
- Later, SSH back in and run herdr. Your panes are where you left them.
- From your laptop you can also use herdr –remote ssh://user@your-server and skip the manual SSH step.
One caveat on reboots. After a server or machine restart, herdr restores your saved layout and can resume supported agent sessions, but the original processes don’t survive. If the VPS reboots mid-task, the agent restarts its session; it doesn’t continue from the same instruction.
Notifications help here. Herdr can play a sound or show a system notification when an agent in a background pane changes state. You set it up under the settings menu’s toasts tab (prefix + s).
Sizing a VPS for Coding Agents
The agent CLI itself is light. It mostly waits on network calls to a model API. What eats RAM is whatever the agent runs for you: builds, test suites, language servers, containers. So size the box for your project, then add headroom per parallel agent.
| Parallel agents | Typical project | Suggested plan | RAM |
|---|---|---|---|
| 1 | Small web app or scripts | Cloud VPS 4 | 8 GB |
| 2 to 3 | Node or Python app with tests | Cloud VPS 6 | 12 GB |
| 4 to 6 | Monorepo, containers, heavy builds | Cloud VPS 8 | 24 GB |
If your agents run Docker builds, give them more disk than you think. A few weeks of images and caches fills 200 GB quicker than most people expect.
Why Run Herdr on a Contabo VPS
An always-on coding box is a RAM and uptime question, not a CPU one. Cloud VPS 6 gives you 6 vCPU and 12 GB RAM for €7.14 a month, and Cloud VPS 8 gives you 8 vCPU and 24 GB RAM for €13.33. Prices are for a 24-month term including VAT and they change, so check the pricing page.
It’s an unmanaged VPS: you get root, you patch it, you lock down SSH. For a personal coding box that’s what you want. Use key-only SSH login, keep API keys out of shell history, and don’t give an agent more filesystem access than the project needs.
FAQ: Herdr
Is herdr free and open source?
Yes. Herdr is released under the Apache License 2.0 and is written in Rust. The source is on GitHub, and the project publishes install paths for an install script, Homebrew and mise.
Does herdr work on Windows or macOS?
macOS and Linux are covered by the install methods in the README. Windows appears as a beta with its own PowerShell installer. Check the project page for the current state before you rely on it.
Can herdr replace tmux entirely?
For agent work, often yes. Herdr uses the same pane, tab and prefix model, and adds agent state awareness. For general server administration, tmux is still the safer default because it’s installed nearly everywhere and well documented.
What are the best herdr alternatives?
tmux is the baseline. cmux and Orca target the same job of managing several coding agents at once. Screen and Zellij are general multiplexers without agent awareness. Try each on a real task before you commit.
Disclaimer: Product specifications, features, and prices mentioned in this article are subject to change and may vary by region, billing term, and active promotions. Please check each provider’s or brand’s official website for current figures, pricing, and local currency rates.