← all repositories
respanai/respan-gateway

One Rust binary to translate every AI API into every other

Respan Gateway is a self-hosted LLM proxy that lets any SDK talk to any vendor, with fallback, hedging and MCP tools built in.

★631 stars Rust LLMOps · Eval
respan-gateway
Collecting fresh signals — velocity needs a few days of history.
collecting data…
star history

What it does It’s a single Rust binary that sits between your code and every AI provider. Point the OpenAI, Anthropic or Gemini SDK at it and it translates formats on the fly — an Anthropic client can call an OpenAI model, an OpenAI Realtime client can talk to Gemini Live. It also handles images, speech, transcription, embeddings and video, plus traffic control: named routes, fallbacks, retries, and hedged requests that race a slow provider against a second one.

The interesting bit MCP servers and built-in tool vendors (web search, code sandboxes) sit behind the gateway and run inside ordinary chat requests, so any client/model combo gets tools without knowing about them. And every feature is a plugin on a public Rust API — one trait, four hooks — so guardrails or billing are extension points, not forks.

Key highlights

  • Zero-config start: any vendor key in the environment becomes a provider; no config file needed
  • Claims 0.07 ms added latency, ~56k req/s and 31 MB memory in their own benchmarks
  • Live request log with cost, latency and tokens per call; optional tracing in Respan’s platform
  • Runs as a server, in-process inside Python, or embedded in your own Rust service
  • Refuses to start on a public address without client keys — a sensible default

Caveats

  • The performance table is the project’s own benchmark; the methodology isn’t shown in the README
  • Observability beyond the local log ties into Respan’s commercial product

Verdict If you’re juggling multiple providers and want one self-hosted, fast, polyglot endpoint — this is a serious LiteLLM alternative. If you’re happy with a single vendor, it’s extra machinery you don’t need.

Frequently asked

What is respanai/respan-gateway?
Respan Gateway is a self-hosted LLM proxy that lets any SDK talk to any vendor, with fallback, hedging and MCP tools built in.
Is respan-gateway open source?
Yes — respanai/respan-gateway is open source, released under the Apache-2.0 license.
What language is respan-gateway written in?
respanai/respan-gateway is primarily written in Rust.
How popular is respan-gateway?
respanai/respan-gateway has 631 stars on GitHub.
Where can I find respan-gateway?
respanai/respan-gateway is on GitHub at https://github.com/respanai/respan-gateway.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.