Sandbox
@herdrdev/herdr

Terminal runtime for coding agents and panes

Herdr is a Rust terminal runtime that owns agent terminals instead of wrapping the agents themselves. It keeps work running after you detach, reconnects to saved sessions, tracks remote machines, and exposes a CLI and socket API for agent-driven control. It also supports plugins and a tmux-style keyboard workflow with mouse-first pane management.

37,458 stars2.8k forksRustUpdated 6d ago
Herdr in about 6 minutes
Jilles113k views • 2 months ago

Videos about this repo

Who it's for

Builders who want Claude Code, Codex, Cursor, or other agents to keep working in persistent terminal sessions.

What it delivers

You can detach from an agent session, come back later, and pick up the same layout and work state instead of starting over.

What it does

Persistent agent sessions

Keeps terminals running in a background server when you close the client or lose SSH, then restores saved layouts on reconnect.

Remote machine workspace

Lets you keep local work and saved SSH machines in one window with separate reconnects.

Agent status detection

Marks panes as working, blocked, or idle so you can see when an agent is waiting for input.

Agent-native control

Lets agents use the CLI and socket API to spawn panes, prompt each other, and wait for real blockers.

Mixed keyboard and mouse control

Supports tmux-style prefix keys along with click, drag, and split interactions.

Plugin support

Extends panes and workflows through a plugin system and marketplace.

How to get it

  1. 1Run
    curl -fsSL https://herdr.dev/install.sh | sh
  2. 2then start it where the work lives
    herdr

README

herdr

herdr

herdr.dev · install · quick start · docs

English · 简体中文

Apache 2.0 license total GitHub release downloads GitHub stars latest stable release Homebrew version follow @herdrdev on X


https://github.com/user-attachments/assets/043ec09f-4bdd-41d5-aee0-8fda6b83e267

the runtime your coding agents live on.

  • detach without stopping work — herdr keeps terminals running in a background server when you close the client or lose your SSH connection. after a server or machine restart, herdr restores the saved layout and can resume supported agent sessions; the original processes do not survive. session state →
  • several machines, one window — keep local work and saved ssh machines together, with a combined agent list and independent reconnects. remote machines →
  • never hunt for the stuck one — every pane is marked working, blocked, or idle. when an agent stops and needs an answer, herdr says so.
  • agent-native — agents drive herdr through the cli and socket api: they can spawn panes, prompt each other, and wait until another agent is genuinely blocked. agent skill →
  • runs what you already run — claude code, codex, cursor, opencode, grok and the rest. herdr doesn't wrap or replace them; it owns their terminals.
  • keyboard and mouse, both first-class — tmux-style prefix keys and click, drag, split. pick per moment, not per tool.
  • plugins — extend panes and workflows. browse the marketplace →
  • one rust binary, no electron — runs in whatever terminal you already use.

install

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

or brew install herdr · mise use -g herdr · windows: powershell -ExecutionPolicy Bypass -c "irm https://herdr.dev/install.ps1 | iex" · endpoint-protected Windows · binaries

then start it where the work lives:

herdr

run your agents, split panes, walk away. ctrl+b q detaches, herdr reattaches. quick start →

docs

everything lives at herdr.dev/docs: quick start · concepts · supported agents · keyboard · configuration · session state · connecting machines · remote · integrations · plugins · socket api

thanks

every past sponsor and backer is listed in SPONSORS.md — thank you 🐑

enterprise / partnership: hey@herdr.dev

agent instructions

if you are an ai agent helping with this repository, read AGENTS.md before making changes and read CONTRIBUTING.md before opening issues or PRs.

development

git clone https://github.com/herdrdev/herdr
cd herdr
cargo build --release

just test        # unit tests
just check       # formatting, tests, and maintenance checks

license

Herdr is licensed under the Apache License 2.0.

Files in the repo

Repository payload34 top-level entries
  • .agents
  • .cargo
  • .githooks
  • .github
  • .pi
  • .zed
  • assets
  • distribution
  • docs
  • nix
  • packaging
  • scripts
  • skills
  • src
  • tests
  • vendor
  • .gitattributes
  • .gitignore
  • AGENTS.md
  • build.rs
  • Cargo.lock
  • Cargo.toml
  • CHANGELOG.md
  • CLAUDE.md
  • clippy.toml
  • CONTRIBUTING.md
  • flake.lock
  • flake.nix
  • justfile
  • LICENSE
  • README.md
  • README.zh-CN.md
  • rust-toolchain.toml
  • SPONSORS.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k