HarnessRouter

    HarnessRouter/harnessrouter

    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.

    ai-agents
    llm
    self-hosted
    agent-api
    agent-framework
    agent-harness
    ai-infrastructure
    coding-agent
    Python
    Apache-2.0
    3.7K stars
    395 forks
    3.7K GitHub watchers
    Updated Oct 27, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest today, with 34 contributors on GitHub.

    Use Cases & Benefits

    • Implements a unified API to run multiple AI agent harnesses like Codex and Claude Code through one self-hosted interface.
    • Enables seamless switching and integration of diverse agent harnesses with persistent sessions, streaming, file handling, and failure management via a single API.
    • Use for building custom AI-powered products that require flexible backend harness selection and management under your own infrastructure control.
    • Use for integrating multiple AI agent harnesses into enterprise workflows to optimize cost, latency, and harness capabilities without complex multi-integration overhead.
    • Use for self-hosted deployments needing full control over provider keys, session data, and agent execution environments with compatibility to OpenAI Responses API.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    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.

    HarnessRouter implements the Unified Harness Protocol (UHP) and provides an OpenAI Responses-compatible API, handling persistent sessions, streaming progress, files, artifacts, cancellation, and structured failures.

    Eight harness × model configurations on the same task. Each metric compares its best and worst results. The lowest-cost and fastest configurations vary by task. Methodology

    30 harness bases today: Codex, Claude Code, Hermes, Pi, DeepSeek Harness, OpenCode, Kilo Code, Qwen Code, Gemini CLI, Cline, Oh My Pi, goose, Kimi Code CLI, MiniMax Code, Aider, OpenHands, CheetahClaws, Grok Build, Agent Zero, System One, Qoder Cloud Agent, MiMo Code, jcode, OpenSquilla, nanobot, ZeroClaw, Mistral Vibe, Docker Agent, fast-agent and Deep Agents Code. The support matrix shows which run on which provider.

    Self-host Community Edition with your own provider keys, on infrastructure you control.

    Start with one Docker command, wait for the first launch, then connect a model provider and run your first task.

    You need: Docker · About 4 GB of disk · A provider API key

    No HarnessRouter account required. No bundled model or trial key.

    Excerpt from the HarnessRouter/harnessrouter README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Compared with peers in AI Agents

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    HarnessRouter/harnessrouter compared with AI Agents repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    vercel-labs/agent-desktop17.0K+13.3K33today
    thedotmack/claude-mem113.6K+8.8K35today
    stablyai/orca116.8K+6.6K40today
    milind-soni/OpenMausBot13.5K+6.0K45today
    HKUDS/DeepTutor55.5K+5.5K655 days ago
    HarnessRouter/harnessrouter3.7K—45today
    Category median55.5K+6.6K40—

    Discover Repositories

    Search across tracked repositories by name or description