cd /news/ai-infrastructure/launch-hn-respan-yc-w24-open-source-… · home › topics › ai-infrastructure › article
[ARTICLE · art-153831] src=news.ycombinator.com ↗ pub= topic=ai-infrastructure verified=true sentiment=↑ positive

Launch HN: Respan (YC W24) – Open-source Rust AI gateway built around plugins

Respan, a Y Combinator W24 company, launched an open-source AI gateway written in Rust that treats every component as a plugin, including providers such as OpenAI, Anthropic and Gemini, protocols including MCP and realtime voice, modalities such as images and videos, and gateway features like fallbacks, PII redaction and smart routing. Respan founder Andy said the company had built on LiteLLM since 2024, and its wrapper code exceeded 100,000 lines before a routine LiteLLM upgrade in January caused intermittent connection errors that forced a rollback; Respan now manually backports upstream fixes. The company says a provider plugin can be as short as 22 lines, with Mistral's at that length, and that each provider quirk, such as Groq placing token usage in its own field, gets its own test.

read4 min views1 publishedOct 20, 2026

| Consider applying for YC's Winter 2027 batch! Applications are open till November 2.Guidelines |FAQ |Lists |API |Security |Legal |Apply to YC |Contact |

|  | **[Hacker News](news)**[new](newest) \|[past](front) \|[comments](newcomments) \|[ask](ask) \|[show](show) \|[jobs](jobs) \|[submit](submit) | [login](login?goto=item%3Fid%3D50167583) | 

|  |  | [Launch HN: Respan (YC W24) – Open-source Rust AI gateway built around plugins](item?id=50167583) | 

| | | 4 points by Andydy259 minutes ago |hide |past |favorite |discuss | | | | Hey HN, this is Andy from Respan (https://www.respan.ai ). We are building an open-source Rust AI gateway. It is a decoupled gateway, so everything is a plugin, including different providers, protocols (MCP, voice), modalities (images, videos), and gateway features (fallbacks, PII redaction, smart routing). Instead of packaging tons of providers and features into one gateway, Respan provides a small core and public interfaces that teams can use to assemble the AI infrastructure their application needs. That way, users can build their own features as additional plugins without having to change the gateway's core. Here’s a video demo: https://www.youtube.com/watch?v=pVv2ibXiTXM There are countless LLM gateways and most of them solve a common problem: calling different providers from a single endpoint. However, adding new features can become prohibitively difficult. So developers can end up building another gateway to solve a specific problem. We've been building our gateway based on LiteLLM since 2024, and now it's providing services for thousands of orgs. Each org needs different API key settings, routes, and limits. To support that, we kept wrapping LiteLLM, adding more features to it, and at one stage, our wrapper code exceeded 100,000 lines. This January, a routine LiteLLM upgrade caused intermittent connection errors, and we had to roll back. We still haven't figured out the cause, but since then, we no longer upgrade LiteLLM directly and instead manually backport upstream fixes. These experiences made us realize that continuing to patch LiteLLM is not a sustainable long-term solution, and we had to redesign the gateway ourselves. While redesigning our gateway, we wanted to make it easier to add features without breaking existing ones. Inspired by Nginx, we think an AI gateway should have a really small core, only responsible for dispatching events. We believe that everything should be a plugin in our gateway, including providers (OpenAI, Anthropic, Gemini), protocols (chat, realtime voice, MCP), modalities (images, videos), and gateway features for reliability and security (smart routing, fallbacks, and PII redaction through example plugins). Beyond that, we want developers to be able to easily extend the gateway's capabilities by adding their own plugins, without touching the core. Adding a provider, even your own, is dead simple, because quirks are plugins too and there’s nothing magical about them. A provider is a short file, Mistral’s is 22 lines, and each quirk, like Groq putting token usage in its own field, gets its own test. Respan Gateway does more than let you call Claude or Gemini models from the OpenAI SDK. It handles tools, images, and reasoning protocols automatically: an application based on the OpenAI Realtime API can also use Gemini Live through the gateway, though not every feature translates. A simple chat app can use MCP tools configured in the gateway, without implementing MCP itself. We also parse requests into a shared structure. When the client and provider use the same API, we preserve provider-specific fields in their native format, even if our shared structure doesn't have a field for them. That way, the gateway can write them back instead of dropping them. Here’s how it works: An adapter hands each HTTP or WebSocket connection to the first client format that recognizes it. The format exposes the request as a two-way stream of typed input and output events. The core runs plugins in registration order, allowing them to choose a provider, filter or wrap either stream, make additional calls, return a response, or refuse the request. A provider format then opens the upstream connection. If the client and provider use the same format and no plugin changes the payload, the original bytes and protocol-specific fields can pass through unchanged. When formats differ, they translate through shared types for messages, tool calls, results, streams, and usage. This stream model can represent both one-shot HTTP requests and long-lived bidirectional sessions. The gateway is open source at https://github.com/respanai/respan-gateway under the MIT or Apache-2.0 license. You don't need to use Respan's hosted platform and can run it directly on your local machine. Build it from source, add your provider keys, and swap the base URL in a supported client. You can keep using the API your client already speaks. It's still pre-alpha. We make money from our hosted platform (https://www.respan.ai/pricing ), which runs the gateway for you with native observability and evals, along with unified billing. If you’re building routing, tools, filtering, observability, or security for agents, we'd love to see it as a plugin. PLUGINS.md in the repo explains how to write one and links to the plugins we’ve created so far. Turning that into an ecosystem is basically our roadmap, and we welcome you to contribute your own plugins. We'd love to answer any questions and hear your feedback! |

── more in #ai-infrastructure 4 stories · sorted by recency
── more on @respan 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/launch-hn-respan-yc-…] indexed:0 read:4min 2026-10-20 · —