Skip to content

respan-gateway

Self-hosted Rust gateway giving one endpoint to OpenAI, Anthropic and Gemini clients

Permissive (OSI) · Apache-2.0 AI-native

Listed by , founder & editor

63

Health

Active

Overview

Stars

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.

Who it's for

Teams calling several model vendors

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.

Developers building agents with MCP tools

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.

Platform engineers who care about overhead

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.

The problem it solves

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.

Strengths

  • Translates between OpenAI, Anthropic and Gemini client formats
  • Fallback, retries, cheapest or fastest routing and hedged requests
  • MCP servers and tool vendors run inside ordinary chat requests
  • Benchmarked at 0.07 ms added latency and 31 MB of memory
  • Apache-2.0 with Docker, pip and cargo install options

Trade-offs

  • No pooled billing or model marketplace like OpenRouter
  • Young project at v0.3.0, first commit in 2026
  • You supply and pay for each vendor's API keys
  • Listening beyond localhost requires a client key

respan-gateway replaces

Self-host respan-gateway

Self-hostable
Yes
Hosted plan
From $199/month · pricing

Quick start

pip install respan-gateway

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Can I self-host it?

Yes. Install with pip or cargo, use a GitHub release, or run the Docker image on any container host.

How is it licensed?

Apache-2.0.

Do I need a config file?

No. Every vendor whose API key is set in the environment becomes a provider.

Can an Anthropic SDK call a GPT model?

Yes. Point the Anthropic client's base URL at the gateway and name any model it routes to.

Is there a managed option?

Yes. Respan also offers a managed version of the gateway.

Other OpenRouter alternatives

Compare all 5 OpenRouter alternatives →

Similar tools in LLM gateways and routers

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

9routerx

LLM gateways and routers

Single-binary local LLM gateway with provider fallback for coding CLI users

268 160 today Thriving MIT

Replaces OpenRouter

jev-style

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

MindsDB

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

claude-code-router

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

archgw

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