# AgentsMesh

> A control plane for running many terminal coding agents across your own machines

- Category: AI Coding / Coding-Agent Harnesses & Runtimes
- Language: Go
- Licence: BSL-1.1 (Business Source License 1.1; non-production use permitted, converts to GPL-2.0-or-later on 2030-02-28)
- Repository: https://github.com/AgentsMesh/AgentsMesh
- Website: https://agentsmesh.ai
- Canonical page: https://ai-tldr.dev/tools/agentsmesh/
- Updated: 2026-07-25

## In short

AgentsMesh is a platform for running many AI coding agents at once and directing them from one place. It sits in the Coding-Agent Harnesses & Runtimes category of the AI Coding tools and is open-source, written in Go and licensed BSL-1.1 (Business Source License 1.1; non-production use permitted, converts to GPL-2.0-or-later on 2030-02-28).

## Overview

AgentsMesh is a platform for running many AI coding agents at once and directing them from one place. It does not ship its own agent: it runs terminal-based agents such as Claude Code, Codex CLI, Gemini CLI, Aider and OpenCode (or any custom terminal agent) and supplies the layer around them — scheduling agents onto machines, isolating them from each other, keeping long runs moving and putting every terminal on one screen.

The unit of work is an AgentPod: one agent's PTY terminal, a dedicated Git worktree sandbox with its own branch and private credentials, and a real-time output stream. Pods run on Runners, self-hosted Go daemons you install on your own machines; each runner advertises how many pods it can hold, and pods are scheduled onto a runner you pick or one from the pool, so your code stays on your infrastructure.

The architecture splits the control plane from the data plane. Orchestration commands travel between the backend and the runners over gRPC with mTLS, while terminal bytes stream through a stateless WebSocket Relay cluster, so the Go backend never handles PTY traffic. On the client side a shared Rust core drives a Next.js web console, an Electron desktop app and a SwiftUI iOS app.

Beyond the terminals, Autopilot lets a control agent watch a pod and send the next instruction when it goes idle, with iteration caps, decision history and human takeover. Mesh and Channels bind pods into a topology where they talk to each other with @mentions, and Tickets on a Kanban board can be bound to a pod with progress and MR/PR tracking. There is a hosted service at agentsmesh.ai (bring your own AI API keys) and the full stack can be self-hosted; the code is under the Business Source License 1.1, which permits non-production use and converts to GPL-2.0-or-later on 2030-02-28.

## What it does

- Runner fleet: self-hosted daemons on any number of machines, each advertising its pod capacity, with pods scheduled onto a chosen runner or the pool
- Workspace isolation: every agent runs in its own pod with a dedicated Git worktree, branch and private credentials
- One console across Web, Desktop (Electron) and iOS clients, with a multi-pane workspace and real-time terminal streaming
- Autopilot: a control agent drives an idle pod forward, with iteration limits, decision history and human takeover or handback
- Mesh and Channels for agent-to-agent collaboration with @mentions and a live topology view, plus a Kanban ticket board bound to pods
- Works with Claude Code, Codex CLI, Gemini CLI, Aider, OpenCode or any other terminal-based agent

## Getting started

The quickest path is the hosted service at agentsmesh.ai: sign up, connect your Git provider, then install a Runner on each machine that should host agents. To run the whole stack yourself instead, the repository ships a Docker Compose dev environment.

1. Install a Runner

   The Runner is the daemon that executes agents on your machine. Install one per machine you want in the fleet; the runner README covers deb, rpm and Windows options.

```bash
curl -fsSL https://agentsmesh.ai/install.sh | sh
```

2. Log the Runner in

   Login opens a browser to authenticate. Use --headless over SSH or on a remote server, and --server to point at a self-hosted deployment.

```bash
agentsmesh-runner login
# headless machines
agentsmesh-runner login --headless
# self-hosted backend
agentsmesh-runner login --server https://your-server.com
```

3. Start it (or install it as a service)

   Once the runner is online, create an AgentPod from the Web, Desktop or iOS console and put an agent to work.

```bash
agentsmesh-runner run

# or, always-on
agentsmesh-runner service install
agentsmesh-runner service start
```

4. Or run the full stack locally

   The dev script starts PostgreSQL, Redis, MinIO, the Backend, the Relay, Traefik and a Next.js frontend with hot reload. The web console is served on http://localhost:3000; ports are allocated per worktree, so check deploy/dev/.env for the actual values.

```bash
git clone https://github.com/AgentsMesh/AgentsMesh.git
cd AgentsMesh/deploy/dev
./dev.sh
```

## When to use it

- Reach for it when one engineer wants to run dozens of Claude Code, Codex or Gemini CLI sessions in parallel without them corrupting each other's working trees
- Reach for it when agents should run on your own machines or VMs rather than a vendor's cloud, with only orchestration metadata leaving your infrastructure
- Reach for it when long-running agent sessions keep stalling and you want a control agent to push them forward, with a human able to take over at any point
- Reach for it when you want to watch and steer many agent terminals from a browser, a desktop app or a phone

## Version history

- 2026-07-25 v0.44.7: Runner release that hardens the PTY relay rendering lifecycle in the terminal.
