H

Agent harnesses

Herdr

Persistent runtime that hosts real terminal sessions for coding agents

39,914 stars Apache 2.0 last push 2026-09-21

Herdr is a persistent background server that holds real terminals open for coding agents. Sessions survive laptop lid closes, reboots, and disconnects, and can be reattached locally or over SSH. It exposes an agent-native CLI and socket API, supports keyboard and mouse interaction, and includes a sidebar that tracks each agent as working, blocked, or idle. It does not replace agent CLIs - it owns their terminals so work continues even when nobody is attached.

GitHub stars

39,914

daily snapshots
2026-09-01 to 2026-09-21

What Herdr is

Herdr is a persistent runtime for terminal-based coding agents. Instead of launching Claude Code, Codex, or OpenCode directly in your local shell, you run them inside Herdr sessions. Those sessions stay alive after you close your laptop, disconnect from SSH, or reboot the machine. Later, you reattach from anywhere with a keyboard and pick up exactly where you left off.

The mental model is borrowed from terminal multiplexers like tmux, but rebuilt for the agent era. Agents are long-lived workers, not one-off commands. Herdr treats them that way.

Why it matters

Most coding agents run as ephemeral processes tied to your terminal. If the connection drops, the agent dies - sometimes mid-task, leaving a half-written file or a broken build. Herdr fixes this by:

  • Keeping the agent’s real terminal session alive on a host.
  • Letting you reconnect from macOS, Linux, Windows, or even a phone.
  • Surviving reboots through a background server that auto-starts.
  • Showing a sidebar of all running agents and their status: working, blocked, or idle.

Key features

  • Persistent sessions - close the lid, switch networks, or reboot; the work stays running.
  • Multi-agent sidebar - see every active agent at a glance, organized by task and priority.
  • Keyboard and mouse support - interact with terminal sessions the way you expect.
  • Socket API - build higher-level tools on top of Herdr.
  • Plugin ecosystem - 511 community plugins extend the runtime.

Supported agents

Herdr detects 19 terminal agent CLIs out of the box, including Claude Code, Codex, Pi, OpenCode, Cursor’s CLI, Grok, Copilot, and Hermes.

Install

macOS and Linux:

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

Windows beta:

irm https://herdr.dev/install.ps1 | iex

Or use Homebrew or mise:

brew install herdr
mise use -g herdr

Use case

Herdr is best when you want agents to keep working while you are away - running tests, refactoring large codebases, or waiting on long-running research. It is also useful for teams that share a powerful remote machine and want each developer’s agents isolated in durable sessions.

Honest caveat

Herdr does not replace the agent CLIs; it hosts them. You still need a working install of Claude Code, Codex, or whichever agent you prefer. Pricing has not been announced yet, so treat the runtime as free during early access with a paid tier likely coming later.

At a glance

Who's behind it

Herdr

GitHub stars
https://github.com/herdrdev/herdr
39,914 stars - updated 2026-09-21
License
Apache 2.0
Platforms
macOS, Linux, Windows
Install
curl -fsSL https://herdr.dev/install.sh | sh
Model support
Claude Code, Codex, Pi, OpenCode, Cursor, Grok, Copilot, Hermes, and other terminal-based coding agents