S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
local-ai 2026-10-22

Self-Host One AI Gateway for Every Model: Respan 0.2.0 Guide

Companion guide and video starting point

This article is a companion to the video, not a replacement for it, and the video is the starting point for everything below.

Watch the video

In the video: the presenter explains why every provider SDK locks you in, traces Respan's origin as a rewrite of a 100,000-line LiteLLM wrapper layer, states the launch facts, tours providers and config, runs a live zero-key bench test with real routing output, covers MCP tools and plugins, voice and image translation, vendor benchmarks with caveats, and gives a homelab verdict.

Added from the sources: install commands, SDK base URLs, config keys, and route behavior were checked against the official Respan quickstart and configure docs, plus the respan-gateway repo and the HN launch thread. Live model completions with real vendor keys were untested here, so this guide proves routing and translation, not paid inference.

What Respan Gateway is and what it replaces

In the video: every AI vendor ships its own client library with its own request shape, so switching models means rewriting calls, hand-building outage fallbacks, and scattering secrets across projects.

Added from the sources: Respan Gateway is an open-source Rust binary that accepts calls in OpenAI, Anthropic, and Gemini client formats and routes them to many model providers, translating chat, images, speech, transcription, embeddings, video jobs, and realtime voice plus routing, fallbacks, MCP tools, and a request log. The stated origin story is that Respan served thousands of organizations on LiteLLM since 2024, outgrew a wrapper layer past 100,000 lines, hit unexplained connection errors after a routine January upgrade, and rewrote around a tiny core where providers and tools are plugins on one public interface.

Launch facts, license, and pre-alpha warning

In the video: Respan, a Y Combinator 2024 startup, launched on Hacker News on October 20th with v0.2.0 after a v0.1.0 the night before, under a dual MIT or Apache 2.0 license, with the repo past 100 stars in launch week and the founder answering hard questions in a long launch thread.

Launch-week facts slide reading V0.2.0 MIT or Apache with 0.1.0 Oct 19, 0.2.0 Oct 20, and 100-plus stars pills on a dark slide
Launch-week facts slide reading V0.2.0 MIT or Apache with 0.1.0 Oct 19, 0.2.0 Oct 20, and 100-plus stars pills on a dark slide (Still from the walkthrough video.)

Added from the sources: the releases page confirms v0.1.0 on October 19 and v0.2.0 as latest, and the docs state verbatim that respan-gateway is pre-alpha and its config and APIs may still change. Say 16-plus built-in vendors rather than exactly 16, since the vendor table has grown past the sentence that says 16.

Install the binary and start with zero config

In the video: install is one binary, with a shell installer, pip, cargo, or a small distroless Docker image, and the web UI rides inside the binary with no separate frontend to deploy.

Added from the sources: the quickstart installs by release asset, and a source build needs Rust 1.88 or later and ships with no web UI unless you build it first. Set VERSION to the release you want and confirm the asset name exists before running the download.

One endpoint for every SDK, plus local models

In the video: 16-plus providers are built in, including OpenAI, Anthropic, Gemini, xAI, DeepSeek, Mistral, Groq, OpenRouter, Together, Fireworks, Cerebras, Perplexity, Azure, and Cloudflare, plus Ollama and vLLM for local models and any OpenAI-compatible endpoint you rack yourself.

Added from the sources: the configure docs list the built-in vendors and the base_url plus formats pattern for anything else speaking an OpenAI, Anthropic, or Gemini-style API. Client key material can be any value until you set client_keys.

Live bench with zero keys and real routing proof

In the video: the bench machine holds no API keys and no local model server, which makes it the perfect honest test. respan-gateway --version prints 0.2.0, a six-line config pointing at a local Ollama provider passes check, serve prints endpoints and a curl to try, and chat calls in OpenAI and Anthropic formats both route, translate, and fail honestly at the missing backend.

Proof-live card reading zero keys real binary with a live-terminal-next label on a dark slide at the midpoint of the video
Proof-live card reading zero keys real binary with a live-terminal-next label on a dark slide at the midpoint of the video (Still from the walkthrough video.)

Added from the sources: the sandbox record in the research folder matches this shape exactly: check prints version, config, provider line, six endpoints for chat, messages, embeddings, models, health, and UI, plus defaults, route rules, auth off, and gateway.toml: ok. Serve on loopback, curl against /healthz returning ok, /ui/ returning HTTP 200, and /v1/models returning a structured upstream error naming the unreachable provider all confirm routing without pretending inference worked.

Routing, MCP tools, plugins, and the request log

In the video: named routes group model families, with fallback, retries, cheapest-or-fastest picks, and hedged requests that race a slow call against a second provider. MCP servers and built-in tool vendors sit behind the gateway so plain chat calls can use web search, memory, and sandbox tools whatever the client or model.

Added from the sources: the configure docs show a routes.smart block with to candidates and hedge = "800ms" racing them, an mcp.search block with a server URL, a plugins.tool_loop block giving those tools to every model, and a plugins.respan block sending one trace per request. Hot reload works via SIGHUP, --watch, or the web UI reload, with in-flight requests finishing on the old config.

Vendor numbers, caveats, and the verdict

In the video: read the numbers slide carefully, because the headline figures are vendor-run with no published methodology, not independent results.

Vendor numbers slide reading vendor numbers real caveats with latency, throughput, and memory badges labeled vendor-run directional
Vendor numbers slide reading vendor numbers real caveats with latency, throughput, and memory badges labeled vendor-run directional (Still from the walkthrough video.)

Added from the sources: the project claims 0.07 ms added p50 latency, 56,734 requests per second, 31 MB of memory, and about 3x the next-fastest gateway versus Bifrost, Portkey, and LiteLLM, all self-reported. Present them as vendor claims with the vendor-run, directional label, or omit the numbers.

Verdict and next step

Run this if you juggle providers and want one endpoint for code, agents, and automations with keys in one place on your hardware and per-call cost in the log. Local-only chat shops should keep Ollama plus Open WebUI for pure offline chat, since this gateway happily fronts them instead of replacing them. Skip it if you need stable plugin APIs today, because pre-alpha means the ground moves.

Sources

Watch the walkthrough

Watch on YouTube