Try “Claude Code skills”, “MCP servers for Cursor” or “Codex” · Esc to close

HarnessRouter Open source

Self-hosted unified API for running Codex, Claude Code, and other agent harnesses

Terminal coding agents · Open source · harnessrouter.ai

7.5editor score
Visit HarnessRouter ↗

HarnessRouter ecosystem

What HarnessRouter can load, and the skills, subagents and MCP servers in this directory that work with it.

  • – Agent Skills
  • – Subagents
  • – MCP
  • – AGENTS.md
  • – Plugins
  • – Hooks
  • – Rules

What is HarnessRouter?

What it does

HarnessRouter Community Edition is a self-hosted infrastructure layer that puts a single, unified API in front of multiple AI coding-agent harnesses — Codex, Claude Code, Hermes, PI, DSH, and others. Instead of writing separate integration code for each agent CLI, you talk to one Gateway that implements the Unified Harness Protocol (UHP) and exposes an OpenAI Responses API-compatible interface, so existing SDKs and tooling work with minimal changes.

What it gives your stack

The project ships as three Docker services: a Console (web UI for configuration and task management), a Gateway (the REST API), and a Runner that executes each agent harness inside an isolated, per-session OS user and filesystem workspace rather than a shared container. It handles persistent sessions with streaming progress, file upload/download inside agent workspaces, task cancellation, structured error reporting, environment-variable and secret management with automatic redaction, and bring-your-own-key multi-provider support. A handful of starter kits (slide generation, spreadsheet automation, SQL dashboards, video creation, a workplace collaboration demo) show the pattern of building a product on top of a pluggable agent backend.

Works with

Codex, Claude Code, and other harnesses the Runner supports (Hermes, PI, DeepSeek Harness, DSH) through the Unified Harness Protocol; any OpenAI Responses API client can talk to the Gateway.

How to install or connect

docker run -d --name harnessrouter -p 127.0.0.1:3000:3000 -v harnessrouter:/data harnessrouter/harnessrouter

Default login is harnessrouter/harnessrouter — change it immediately after first boot. The stack needs roughly 4GB of disk for the persistent data volume.

Maintenance and safety

Actively developed (600+ commits on main, ~2,800 GitHub stars, 289 forks, a handful of open issues and PRs) and licensed Apache-2.0 for the Community Edition; upstream harness CLIs keep their own licenses and the starter kits carry separate terms. Running untrusted agent sessions still means reviewing what each harness can touch on disk, since the Runner's isolation is OS-user-level rather than full containers.

Who should use it

Teams building a product or internal tool on top of more than one coding-agent CLI — or who want to self-host that layer instead of depending on a single vendor's hosted API — rather than individual developers just using one agent directly.

agent-api agent-harness self-hosted mcp docker open-source

Source code: HarnessRouter/harnessrouter ★ 2.8k · +31 this week · Apache-2.0 · updated 2026-10-02

Pros

  • One OpenAI-Responses-compatible API in front of multiple coding-agent harnesses, so products can swap backends without rewriting integration code
  • Apache-2.0, self-hosted via a single Docker command, with session isolation, streaming, file handling, and secret redaction built in

Cons

  • Ships with default admin credentials (harnessrouter/harnessrouter) that must be changed immediately; Community Edition is new enough that production track recor

HarnessRouter pricing

Open source. Prices change often, so confirm on the official pricing page. See every vibe coding app's pricing side by side.

HarnessRouter alternatives

All alternatives →

OpenAI Codex Freemium

OpenAI's coding agent for the terminal, IDE and cloud, included with ChatGPT plans

★ 128k · +1.2k this week

9.1 Visit ↗

OpenCode Open source

Open-source terminal coding agent that works with any model provider

★ 211k · +1.4k this week

8.4 Visit ↗

Amp Freemium

Frontier coding agent for the terminal and editor, from the makers of Sourcegraph

Free plan, paid from $20/mo

8.2 Visit ↗

Orca Open source

An ADE for running fleets of coding agents in parallel worktrees, from desktop or mobile

★ 84k · +5.3k this week

8.0 Visit ↗

Qwen Code Open source

Open-source AI coding agent from Alibaba's Qwen team, for terminal, IDE and desktop

★ 28k · +136 this week

8.0 Visit ↗

Compare HarnessRouter

Verdict

HarnessRouter scores 7.5/10 in our terminal coding agents ranking. One OpenAI-Responses-compatible API in front of multiple coding-agent harnesses, so products can swap backends without rewriting integration code.

Try HarnessRouter ↗ All terminal coding agents

Popular searches