Connect to 11 model providers and the OpenRouter catalog through one API. Bring your own keys, reuse responses to similar prompts with semantic caching, and switch providers automatically when one fails. RouterFuel is built in Rust and runs on your own server.
self-hosted via Docker · zero telemetry sent off-cluster · AGPL-3.0 core
build
Postgres + pgvector are provisioned automatically by Docker Compose. Nothing to install by hand.
# 1. Clone and configure git clone https://github.com/routerfuel/Routerfuel.git cd Routerfuel cp .env.example .env # fill in ROUTERFUEL_ADMIN_KEY at minimum # 2. Generate a client API key ./scripts/generate-key.sh "MyFirstClient" # copy the printed hash line into .env's ROUTERFUEL_API_KEYS # 3. Run it: Postgres + pgvector are provisioned automatically docker compose up --build # 4. Make your first request (use the raw key generate-key.sh printed, not the hash) curl -X POST http://localhost:3000/v1/chat/completions \ -H "X-API-Key: rf_live_yourgeneratedkey" \ -H "X-Anthropic-API-Key: sk-ant-yourkey" \ -H "Content-Type: application/json" \ -d '{"model":"auto","messages":[{"role":"user","content":"Hello!"}]}'
supported providers
what's shown on the left
This demo shows sample requests to supported providers. It is not connected to a running RouterFuel instance.
Every deployment includes these features in the same binary.
Checks for similar prompts using a local embedding model. When there is a match, it returns the cached response and skips the provider request.
Stops sending requests to a provider after repeated errors. Checks whether it has recovered before sending traffic back.
LoopGuard catches clients that keep repeating the same prompt. SpendGuard limits how much each client can spend within a rolling window. Both checks run before the request reaches a provider.
Use any model in the OpenRouter catalog. RouterFuel refreshes the catalog at startup, so you can access new models without changing your code.
All plans include caching, failover, and spending limits. All features are free during the open beta.
Hobby
For side projects and prototypes.
Freelaunching soon
Developer
For apps running in production.
$15/molaunching soon
Enterprise
For regulated and air-gapped environments.
Customlaunching soon
Questions, feedback, or want to talk deployment? Email us directly, or book a call.
licensing
RouterFuel's core is licensed under AGPL-3.0. That works great for self-hosting and open-source use, but if you're embedding RouterFuel in a closed-source product or run into AGPL's network-use clause at your company, we offer a separate commercial/enterprise license with no copyleft obligations.
Talk to us about licensingFree during the open beta. We'll email you when your access is ready.
We'll email you as soon as your access is ready.