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.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
"""TokenRouter keeps the plain slug; OpenRouter's dated rename stays on OpenRouter's list only."""
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
import app as gw # noqa: E402
def test_tokenrouter_serves_the_plain_slug_and_openrouter_the_dated_one():
assert gw._VENDOR_MODELS["tokenrouter"]["qwen3.8-max"] == "qwen/qwen3.8-max"
assert gw._VENDOR_MODELS["openrouter"]["qwen3.8-max"] == "qwen/qwen3.8-max-0902"
def test_the_mapper_hands_each_aggregator_its_own_name():
assert gw._map_model({"provider": "tokenrouter", "backend": "hermes"}, "qwen3.8-max") == "qwen/qwen3.8-max"
assert gw._map_model({"provider": "openrouter", "backend": "hermes"}, "qwen3.8-max") == "qwen/qwen3.8-max-0902"