HarnessRouter/harnessrouter
2,877 stars · Last commit 2026-10-05
HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
README preview
<h1 align="center">
<a href="https://harnessrouter.ai/open-source">
<picture>
<source media="(prefers-color-scheme: dark)" srcset=".github/images/logo-dark.png">
<img alt="HarnessRouter" src=".github/images/logo-light.png" width="280">
</picture>
</a>
<br>
The unified interface for agent harnesses.
</h1>
<p align="center">
<a href="https://github.com/HarnessRouter/harnessrouter#top" title="Back to the top to star this repository"><img src="https://raw.githubusercontent.com/HarnessRouter/harnessrouter/readme-badges/docs/images/github-stars.svg" alt="GitHub Stars, exact count" title="Back to the top, then click GitHub’s Star button. Official GitHub data, periodically refreshed; the last successful count is retained if refresh fails."></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-285AFF?logo=apache&logoColor=white&style=flat&labelColor=444c56" alt="License: Apache 2.0"></a>
<a href="https://hub.docker.com/r/harnessrouter/harnessrouter"><img src="https://img.shields.io/docker/pulls/harnessrouter/harnessrouter?style=flat&logo=docker&logoColor=white&label=Docker+pulls&labelColor=444c56&color=285aff" alt="Docker pulls"></a>
<a href="protocol/conformance"><img src="https://img.shields.io/badge/UHP-Full-16824B?style=flat&labelColor=444c56" alt="UHP conformance: Full"></a>
<a href="#the-unified-harness-protocol"><img src="https://img.shields.io/badge/OpenAI%20Responses-Compatible-2247D5?style=flat&labelColor=444c56" alt="OpenAI Responses: Compatible"></a>
</p>
**Build agent products without handling harness engineering.** HarnessRouter is the infrastructure layer that turns existing harnesses like Codex and Claude Code into plug-and-play agent backends, letting your product run tasks, retrieve results, and switch harnesses through one API.