Respan Rewrites Its LiteLLM-Based AI Gateway in Rust, With Every Feature a Plugin
Software / news
Respan Rewrites Its LiteLLM-Based AI Gateway in Rust, With Every Feature a Plugin
The Y Combinator company says a 100,000-line wrapper pushed it off LiteLLM. Its own benchmark table is vendor-supplied, and the launch thread left cost accounting unanswered.

Respan, a Y Combinator W24 company, has open-sourced an AI gateway written in Rust that replaces a heavily modified LiteLLM fork. In the Launch HN post, a Respan employee posting as Andydy25 called the project "pre-alpha", which means configuration and APIs may still change.
The repository is respanai/respan-gateway, dual-licensed MIT or Apache-2.0. It showed 288 stars, 30 forks, 415 commits on main, 13 open issues and 13 open pull requests when fetched on Oct. 25.
Why Respan left LiteLLM
The post says Respan built on LiteLLM from 2024 and that its wrapper code grew past 100,000 lines. A LiteLLM upgrade in January caused connection errors and a rollback, and the team has since backported upstream fixes by hand.
The replacement keeps a small core that only dispatches events. Providers such as OpenAI, Anthropic and Gemini are plugins. So are protocols (chat, realtime voice, MCP), modalities (images, video) and gateway features such as smart routing, fallbacks and PII redaction. AI Weekly compared the design to Nginx.
The README says every feature is built on "one trait with four hooks" and lists 16 providers plus any compatible endpoint. Plugins run in registration order. Each can pick a provider, filter a stream, make an extra call or refuse the request.
The benchmark table is Respan's own
The README carries a comparison against Bifrost, Portkey and a single-worker LiteLLM. All figures below are vendor-supplied, and the Launch HN post itself gives no benchmarks. The README names no independent party that ran them.
| Gateway | Added latency (p50) | Throughput (requests/s) | Memory |
|---|---|---|---|
| Respan | 0.07 ms | 56,734 | 31 MB |
| Bifrost | 0.16 ms | 18,182 | 488 MB |
| Portkey | 0.17 ms | 4,187 | 350 MB |
| LiteLLM (1 worker) | 4.34 ms | 268 | 418 MB |
- Respan57K req/s
- Bifrost18K req/s
- Portkey4187 req/s
- LiteLLM, 1 worker268 req/s
Source: respanai/respan-gateway README, accessed 2026-10-25
The LiteLLM row is a single worker, the weakest configuration of the four. A gateway sits in front of a model call that takes hundreds of milliseconds or more, so a 4 ms difference in added latency matters mostly to teams running very high request volumes.
What the launch thread pushed back on
Commenters raised four problems, and the maintainers answered only some.
- Plugin security: a commenter named verdverm argued that compiled crates still carry supply-chain risk and pointed to custom OAuth code in the MCP module. Plugins are compiled into the application, not downloaded as binaries, so a custom plugin means building your own copy.
- Install friction: commenters wrote that there was no Docker image at launch. Andydy25 said one was pulled before launch and that GitHub Releases provide binaries. The README lists
pip install respan-gateway,cargo install respan-gatewayand Docker, but its Releases section showed no entries when fetched. - Isolation: commenters suggested WASM or out-of-process plugins. Andydy25 said WASM was rejected because plugins often need database access.
- Cost tracking: several asked how usage is counted across providers that report it inconsistently, including retries. AI Weekly cites Groq's custom usage field as an example. The thread showed no Respan answer.
Andydy25 also said Claude generated much of the Rust but that they reviewed every line. The post gives no full name or title for the author.
The business behind the open core
Respan sells a hosted platform with observability, evals and unified billing on top of the gateway. The post says thousands of organisations use the LiteLLM-based version, a figure Respan supplied and The Terminal could not check.
For anyone running LiteLLM today, the open question is the one the thread left hanging. Whether a gateway can bill correctly across retries and odd usage fields decides whether it is a drop-in. Respan had not answered it in the thread, and it is the first thing to test before swapping a production gateway.
The pattern is familiar from this week's other launches: Laminar's flow-1 also shipped open code with the commercial product alongside it, and HumanLayer did the same with a homepage that lagged its repository.
Sources
More in Software
- 01Rivet, a YC W23 Company, Runs Agent Actors on S3 and Claims 72 KB EachThe Apache 2.0 orchestrator says an actor cold-starts in 4.99 ms at p99. Every figure is Rivet's own, and the Launch HN thread questioned both the premise and the AWS bill.
- 02GitHub Actions Lockfiles: What gh actions-lock Pins and What It Leaves LooseWorkflow lockfiles went generally available on October 28. The extension's own README lists four gaps, including Docker images and reusable workflows in other repositories.
- 03C++26 Reportedly Fails Its ISO Ballot, With Contracts the Sticking PointSecondary reports put the October 23 vote at 12 yes of 20 and nine no votes of 22 bodies. The numbers do not reconcile, and no ISO or WG21 record has been published to settle them.
- 04A Postgres Benchmark Found jsonb Read One Key 2.7 to 10.6 Times Faster, and Larger on Disk in 6 of 11 CasesChris van Eijk of Now-Next loaded 1 million small documents and 5,000 large ones into PostgreSQL 17.11 and 18.6. The speed result is consistent. The storage result depends on whitespace and the 2 kB compression threshold.