lmrouter
LLM gateways and routers
Self-hostable API router that puts many AI providers behind one OpenAI-style endpoint
319 33 14 months ago Dormant MIT
Replaces OpenRouter
Self-hosted Rust gateway giving one endpoint to OpenAI, Anthropic and Gemini clients
Listed by Alston Antony, founder & editor
Health
ActiveStars
1,033
Last commit
today
Nov 2026
Repository age
2 months
since Sep 2026
Latest version
v0.3.0
Oct 2026
Contributors
–
7 active in 90 days
Releases
3
last 12 months
Language
Rust
Respan Gateway is an LLM gateway written in Rust and shipped as a single binary. You point the SDK you already use at it. OpenAI Chat Completions, OpenAI Responses, Anthropic Messages and Gemini API clients can call any model, with streaming, tools, images and reasoning translated between formats.
It handles traffic control with named routes, globs, fallback, retries, cheapest or fastest routing, and hedged requests that race a slow call against a second provider. It can put MCP servers and built-in tool vendors behind the gateway and run their tools inside chat requests. It also covers images, speech, transcription, embeddings, video and realtime voice across vendors. A live request log shows cost, latency and tokens for each call, and a web UI is served at /ui/.
Install with pip or cargo, or run the Docker image. No config file is needed: any vendor whose key is set becomes a provider. Features are plugins built on a public Rust API. The license is Apache-2.0. It is a self-hosted alternative to OpenRouter, without pooled billing or a model marketplace.
One endpoint with fallback, retries and hedged requests keeps apps running when a provider is slow or down.
Skip if: You use a single provider and need no routing.
The gateway runs MCP and built-in tools inside plain chat calls, whatever the client or model.
Skip if: Your agent framework already manages tools itself.
It is a single Rust binary that uses little memory and is published with latency and throughput benchmarks.
Skip if: You want a hosted marketplace with pooled billing.
Each model vendor has its own API format, keys and failure modes. Switching or combining them means rewriting client code. A gateway lets you keep one SDK and route requests across vendors.
pip install respan-gateway From the project's own install instructions. Check the docs for production settings.
Yes. Install with pip or cargo, use a GitHub release, or run the Docker image on any container host.
Apache-2.0.
No. Every vendor whose API key is set in the environment becomes a provider.
Yes. Point the Anthropic client's base URL at the gateway and name any model it routes to.
Yes. Respan also offers a managed version of the gateway.
LLM gateways and routers
Self-hostable API router that puts many AI providers behind one OpenAI-style endpoint
319 33 14 months ago Dormant MIT
Replaces OpenRouter
LLM gateways and routers
Single-binary local LLM gateway with provider fallback for coding CLI users
268 160 today Thriving MIT
Replaces OpenRouter
LLM gateways and routers
Small local decision models that classify text and route requests with calibrated
140 4 19 days ago Active Apache-2.0
Replaces Jev
LLM gateways and routers
Agent workspace for knowledge work and coding, with a choice of models and open agents
40k 6.2k 31 days ago Active MIT
LLM gateways and routers
Local gateway that routes Claude Code, Codex and other agents to the providers you choose
38k 3.2k 3 days ago Thriving MIT
LLM gateways and routers
AI-native proxy and data plane for routing, guarding and tracing agent traffic
7.1k 499 30 days ago Active Apache-2.0