Self-hosting NuRoute
Self-hosting means running NuRoute on a computer you control, instead of using NuRoute's own cloud. Think of the difference between eating at a restaurant and cooking at home: at home, all the ingredients stay in your kitchen.
NuRoute Enterprise runs on your own server. Your prompts, the answers, your provider API keys and your request logs stay on your own computers. NuRoute never sees them.
This section takes you from an empty Linux server to your first routed request. Then it shows you how to run it day to day: backups, upgrades, the licence and troubleshooting.
You do not need to know how NuRoute works inside. When a command is shown, you can copy it exactly as it is. When a command prints something, the guide shows what you should see.
Words you will see
| Word | What it means |
|---|---|
| Server | A computer that stays on and serves other computers. It can be a virtual machine in a cloud or a machine in your own data centre. |
| Linux | A kind of operating system (like Windows or macOS) that most servers use. |
| Docker | A tool that runs programs in tidy boxes called containers, so they do not mess with each other. |
| Domain name | A web address such as nuroute.acme.com. |
| Licence | Your permission to run NuRoute. It is a key from your contract, or a 14-day trial. |
| API key | A secret code that lets a tool use NuRoute. Treat it like a password. |
Where to go
| Page | What it covers |
|---|---|
| Requirements | The server, Docker, a domain name and the network access NuRoute needs |
| Install | One command to install, then activation and your first request |
| Install with an AI agent | Let an AI helper do the install for you |
| Configuration | Every setting in .env, running behind your own HTTPS proxy, email |
| Single sign-on | Sign-in with Entra ID, Okta, Google Workspace, Keycloak or Auth0 (OIDC), SSO only |
| Backups and upgrades | Backing up, restoring, upgrading (with automatic rollback), moving or removing NuRoute |
| Licence and updates | The licence check-in, what it sends, trials, renewals, routing-model updates |
| Security | Where your data lives, how to check the images, reporting a vulnerability |
| Troubleshooting | Every error message the installer and scripts can print, and what to do |
What you get
Everything NuRoute Cloud offers, on your server:
- The OpenAI-compatible API (
/v1/chat/completionsand the rest). It routes requests automatically across the providers you connect. - The dashboard: projects, API keys, members and roles, provider keys, policies and PII redaction (hiding private details), prompt compression, request logs and usage.
- Routing-model and catalogue updates. NuRoute's latest routing model and model catalogue (models, prices, quality tiers) arrive with the licence check-in, so you do not need an upgrade.
What is different from Cloud
- No billing. You pay your AI providers directly with your own keys, and you pay NuRoute through your Enterprise contract. There are no credits and no Billing page.
- The fallback router decides every
autorequest. Artemis is not part of self-hosted NuRoute yet. So NuRoute's fallback router decides each"model": "auto"request. The response'sX-Router-Versionheader (and_routing.routerVersion) saysv1, andX-Router-Fallbacksaysv2_disabled. The dashboard has no Speed setting. - One organization per install. The first admin creates it, and everyone else joins by invitation. You can have as many projects, members and API keys as you like.
- You run the server. That includes its uptime, backups and upgrades. NuRoute provides the software, updates and support under your contract.
How licensing works
Each install needs a licence. It is either:
- a licence key from your NuRoute contract, or
- a 14-day trial that you start from the setup screen with your work email.
The install checks in with license.nuroute.ai every 12 hours to renew a short-lived token. If the check-in fails (for example, after a firewall change), NuRoute keeps working for 5 days, and the dashboard shows a banner so an admin can fix it. Details: Licence and updates.
What leaves your server
Only the check-in. It sends:
- the licence key,
- a random install ID,
- NuRoute's version numbers,
- the number of requests since the last check-in,
- whether NuRoute's services are up.
It never sends prompts, answers, API keys, user names, email addresses or costs. Your admins can see exactly what was sent last on the Licence & system page.
Your AI requests go from your server straight to the providers you connect, just as they would without NuRoute.
How the pieces fit together
NuRoute runs as a set of containers on one server, started by Docker Compose (a tool that starts many containers together).
| Part | What it does |
|---|---|
| Caddy | The only part reachable from outside (ports 80 and 443). It gets and renews the HTTPS certificate for your domain, serves the dashboard under /app and the API everywhere else |
| API gateway | Checks API keys and the licence, applies policies, routes each request and forwards it to the chosen provider |
| Routing services | Pick the model for each request (the trained routing model) and talk to your providers |
| Dashboard | The web app your team uses, at https://<your domain>/app |
| PostgreSQL, Redis, ClickHouse, NATS | Storage and messaging: settings, sessions, request logs and usage, internal messages. Not reachable from outside |
| Policy and PII detection, prompt compression | The policy engine with Microsoft Presidio, and headroom |
All images (the ready-made packages of each part) are public, built by NuRoute, scanned for vulnerabilities and signed. The install kit (the files and scripts that set everything up) is open source: github.com/NuRoute-ai/nuroute-selfhosted.
Ready? Start with the requirements.