Free and open source · self-hosted
One API for all your AI providers, on your own server
TRouteAI is a free, open-source, self-hosted AI gateway. Add your AI providers once, create API keys, and point any OpenAI- or Anthropic-compatible app at one address.
- Price
- Free
- Licence
- MIT
- Runs on
- Node.js 22.22.2 or newer
Needs Node.js 26 (recommended), 24, or 22.22.2 and newer. Then open http://localhost:20017 and sign in with the first password.
npm install -g trouteai --allow-scripts=tls-client-node,koffi --loglevel=errortrouteai
What TRouteAI does
One API for every provider
OpenAI format and Anthropic format, with 290+ built-in providers by API key or account sign-in, plus any compatible server.
Combos with fallback
One model name that tries several models in order, round robin or by weight, and moves on when one fails or reaches a limit.
Made for coding agents
Claude Code model discovery, effort and thinking settings pass through, and the conversation reaches the provider as the client built it.
Light and private
Runs on your computer or server with Node.js and SQLite. Credentials are encrypted at rest and there is no telemetry.
A key for every app
One API key per app, so you can see its usage or turn it off at any time.
A clean dashboard
Providers, combos, keys, usage and logs in a web dashboard with light and dark themes, and your own name and logo if you want them.
See it working
Real screens of the product, with demo data. Pick one to see it large.
What it works with
Apps
- Claude Code
- Codex CLI
- OpenAI SDKs
- Anthropic SDKs
- curl
- Any app that lets you set an OpenAI or Anthropic base URL
Providers
- OpenAI
- Anthropic
- Google Gemini
- OpenRouter
- DeepSeek
- Groq
- Mistral
- xAI (Grok)
- Together AI
- Fireworks AI
- Perplexity
- Ollama on your own computer
- 290+ more by API key or account sign-in
- Any OpenAI- or Anthropic-compatible server
Install it in three steps
Install it
Run the npm line above, then start it with trouteai. It needs Node.js.
Add a provider and a key
Open localhost:20017, sign in, add a provider and create an API key.
Point your app at it
Use http://localhost:20017/v1 as the base URL, with your key and a combo name as the model.
On a server, SixPanel is the easiest place to host it: HTTPS, backups and deploys you can roll back.
Who it is for
People who use Claude Code or Codex CLI
Point the agent at one address and keep working when one account reaches its limit.
Teams with several AI providers
One API and one set of keys in front of all of them, with the usage in one place.
Anyone who wants control
Your keys and prompts go only to the providers you add, and there is no telemetry.
How it fits with AllsWeb
- Or use the AllsWeb AI APIDo not want to manage provider accounts? Our AI API is one OpenAI-compatible key for many models, billed by use. Being OpenAI-compatible, it can also be added to TRouteAI as a custom provider.
- Host it on SixPanelSixPanel is the free control panel we make. It is the recommended place to host TRouteAI on a server.
What it costs
Free
- TRouteAI is open source under the MIT licence: no fee, no trial.
- You pay only your AI providers, under your own accounts.
- You do not need an AllsWeb account to use it.
Questions about TRouteAI
What is TRouteAI?
An open-source, self-hosted AI router (an LLM gateway): one OpenAI- and Anthropic-compatible API in front of many AI providers, with API keys, combos (fallback and load balancing) and usage-limit routing, managed in a web dashboard.
Is it free?
Yes, MIT licensed. You pay only your AI providers, under your own accounts.
Where do my keys and prompts go?
Only to the providers you add. TRouteAI runs on your own machine or server, stores provider credentials encrypted in a local SQLite database, and sends no telemetry.
What happens when a provider hits its limit?
In a combo, TRouteAI moves to the next model. An account whose usage window is used up is skipped without sending it a request until the window resets. When every account is limited, the client gets 429 with Retry-After.
Does TRouteAI change my conversation?
No. Requests reach the provider as your client built them. Prompt compression exists, but it is off unless you turn it on in Settings.
Where should I host it?
On your own computer, install it with npm. On a server, SixPanel is the easiest way: HTTPS, backups and deploys you can roll back, with nothing built on the server.
How do I reset the dashboard password?
Run trouteai reset-password.
