Skip to content

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.

site: build in a venv so Vercel's PEP 668 Python accepts the install

AIinWEB35afde75d8b88
diff --git a/protocol/site/.gitignore b/protocol/site/.gitignore
index 245259b6..e1b86592 100644
--- a/protocol/site/.gitignore
+++ b/protocol/site/.gitignore
@@ -1,2 +1,3 @@
.vercel
.env*
+.venv/
diff --git a/protocol/site/build.sh b/protocol/site/build.sh
index 2465e303..33400a48 100755
--- a/protocol/site/build.sh
+++ b/protocol/site/build.sh
@@ -5,5 +5,9 @@
# so it runs identically from any working directory.
set -euo pipefail
cd "$(dirname "$0")"
-python3 -m pip install --quiet --requirement requirements.txt
-python3 build.py
+# Install into a throwaway virtualenv rather than the system Python. Vercel's build image ships a
+# uv-managed, PEP 668 "externally managed" Python that refuses `pip install` into it; a venv sidesteps
+# that and behaves identically on GitHub CI, so one script works in both places.
+python3 -m venv .venv
+.venv/bin/python -m pip install --quiet --requirement requirements.txt
+.venv/bin/python build.py