Blog / Tutorials / Herdr on a VPS: Keep AI Coding Agents Running After You Disconnect

Herdr on a VPS: Keep AI Coding Agents Running After You Disconnect

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…

6 min read

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.

Herdr vs tmux for running coding agents Based on the herdr README and a Better Stack guide, November 2026. Check the herdr docs for the current feature set.
Topictmuxherdr
Pane, tab and session modelYesYes, same model
Knows about AI agentsNo, treats every process the sameYes: shows working, idle or blocked
Notifications on state changeNot built inSound or system notification for background panes
Default prefixctrl+bctrl+b (configurable)
Runs asIts own multiplexerInside your existing terminal, with a background server
Age and ecosystemMature, on every distroNew; 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.

  1. SSH into the VPS and run herdr.
  2. Start an agent in a pane, say Claude Code, and give it a long task.
  3. Press ctrl+b q to detach. Your SSH session can end now.
  4. Later, SSH back in and run herdr. Your panes are where you left them.
  5. 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.

Rough VPS sizing for parallel coding agents Author’s estimates for typical web projects, not measurements. Plan specs and prices from contabo.com/pricing on 27 November 2026 (24-month term, including VAT).
Parallel agentsTypical projectSuggested planRAM
1Small web app or scriptsCloud VPS 48 GB
2 to 3Node or Python app with testsCloud VPS 612 GB
4 to 6Monorepo, containers, heavy buildsCloud VPS 824 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.