Skip to main content

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.

Everything runs on your one server: a front door, the dashboard, the gateway, routing, and hidden storage, with requests going straight to your AI providers

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​

WordWhat it means
ServerA 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.
LinuxA kind of operating system (like Windows or macOS) that most servers use.
DockerA tool that runs programs in tidy boxes called containers, so they do not mess with each other.
Domain nameA web address such as nuroute.acme.com.
LicenceYour permission to run NuRoute. It is a key from your contract, or a 14-day trial.
API keyA secret code that lets a tool use NuRoute. Treat it like a password.

Where to go​

PageWhat it covers
RequirementsThe server, Docker, a domain name and the network access NuRoute needs
InstallOne command to install, then activation and your first request
Install with an AI agentLet an AI helper do the install for you
ConfigurationEvery setting in .env, running behind your own HTTPS proxy, email
Single sign-onSign-in with Entra ID, Okta, Google Workspace, Keycloak or Auth0 (OIDC), SSO only
Backups and upgradesBacking up, restoring, upgrading (with automatic rollback), moving or removing NuRoute
Licence and updatesThe licence check-in, what it sends, trials, renewals, routing-model updates
SecurityWhere your data lives, how to check the images, reporting a vulnerability
TroubleshootingEvery 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/completions and 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 auto request. Artemis is not part of self-hosted NuRoute yet. So NuRoute's fallback router decides each "model": "auto" request. The response's X-Router-Version header (and _routing.routerVersion) says v1, and X-Router-Fallback says v2_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.

Every 12 hours your install checks in with license.nuroute.ai and gets a fresh short-lived token. If that fails, it works for 5 more days

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).

PartWhat it does
CaddyThe 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 gatewayChecks API keys and the licence, applies policies, routes each request and forwards it to the chosen provider
Routing servicesPick the model for each request (the trained routing model) and talk to your providers
DashboardThe web app your team uses, at https://<your domain>/app
PostgreSQL, Redis, ClickHouse, NATSStorage and messaging: settings, sessions, request logs and usage, internal messages. Not reachable from outside
Policy and PII detection, prompt compressionThe 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.