Run one local gateway that lets Claude Code, Cursor, or any OpenAI-compatible tool talk to any LLM provider
Automatically fail over to a backup provider or API key when one starts erroring
Route cheap, high volume requests to a low cost model and hard requests to a stronger one
Test whether smart model routing actually beats a strong baseline on your own traffic before turning it on
| llmrelay/relay | 12vault/ravel | alexremn/finalizer-doctor | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | Go | Go | Go |
| Setup difficulty | easy | easy | easy |
| Complexity | 3/5 | 2/5 | 3/5 |
| Audience | developer | developer | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Single static binary, just set provider API keys as environment variables and run relay serve.
relay is a self hosted gateway that sits between your applications and a range of AI providers, letting you talk to any of them through one server on your own machine. It accepts requests written in either the OpenAI or Anthropic API formats, so tools built for one of those, such as Claude Code or any OpenAI compatible SDK, can be pointed at relay instead, and it forwards those requests out to whichever provider you have configured, including OpenAI, Anthropic, Gemini, Groq, DeepSeek, Mistral, or a locally running Ollama model. It ships as a single small program with no external dependencies to install, and it does not collect or send any usage data back to its maker. Getting started involves installing the program, setting environment variables for whichever provider API keys you already have, and starting the server, after which any tool that speaks the OpenAI or Anthropic protocol can be redirected to it with a single URL change. A setup command can generate a starter configuration file that documents where to find each provider's key. Routing between providers can be as simple as fixed rules choosing the cheapest, fastest, or a specific model, with built in reliability features like automatic retries, spreading requests across a pool of API keys, and switching away from a failing provider mid stream. There is also an optional smart routing mode that tries to send easy requests to a cheap model and harder requests to a stronger one, but this mode ships turned off by default. The project includes its own built in evaluation tool for testing whether that smart routing genuinely beats simply always using a strong model on real traffic, and its own published results show one of its routing tiers currently failing that bar, which is why it stays off unless a user turns it on deliberately. The project is written in Go, distributed as a single static binary, and released under the Apache 2.0 license, which allows free use, modification, and redistribution including for commercial purposes.
A self-hosted, zero-telemetry LLM gateway that lets any OpenAI or Anthropic style tool talk to any AI provider through one local server.
Mainly Go. The stack also includes Go, OpenAI API, Anthropic API.
Use, modify, and redistribute the code freely, including for commercial purposes, as long as you keep the copyright and license notices.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.