Self-hosted AI routing gateway and OpenAI-compatible Docker proxy for 40+ AI providers.
5.3K
n9router is a self-hosted AI routing gateway and OpenAI-compatible Docker proxy for Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini CLI, OpenCode, Cline, OpenClaw, and 40+ AI providers.
Run n9router locally or on a VPS with Docker to get model fallback, quota tracking, token savings, format translation, and multi-account routing.
docker run -d \
--name n9router \
-p 20128:20128 \
-e JWT_SECRET="change-this-secret" \
-e INITIAL_PASSWORD="change-this-password" \
-e NEXT_PUBLIC_BASE_URL="http://localhost:20128" \
-v n9router-data:/app/data \
nightwalker8x/n9router:latest
Dashboard: http://localhost:20128/dashboard
OpenAI-compatible API endpoint: http://localhost:20128/v1
docker run -d \
--name n9router \
-p 20128:20128 \
-e JWT_SECRET="change-this-secret" \
-e INITIAL_PASSWORD="change-this-password" \
-e NEXT_PUBLIC_BASE_URL="http://localhost:20128" \
-v n9router-data:/app/data \
nightwalker8x/n9router:v0.4.25
mkdir -p ./data/n9router
docker run -d \
--name n9router \
-p 20128:20128 \
-e JWT_SECRET="change-this-secret" \
-e INITIAL_PASSWORD="change-this-password" \
-e NEXT_PUBLIC_BASE_URL="http://localhost:20128" \
-v "$PWD/data/n9router:/app/data" \
nightwalker8x/n9router:latest
/v1/*nightwalker8x/n9router:latestnightwalker8x/n9router:v0.4.25Current public image is published for linux/arm64. For linux/amd64, build locally from source or use a future multi-arch tag.
Content type
Image
Digest
sha256:f7da8a631…
Size
200.4 MB
Last updated
5 days ago
docker pull nightwalker8x/n9router