YoloRouter is a self-hosted gateway that accepts OpenAI, Anthropic, and Gemini wire protocols, translates between them, and routes requests across upstream providers with failover.
Overview
YoloRouter sits between your applications and upstream LLM providers so routing, keys, budgets, and cost visibility live in one place instead of in every client. You point tools such as Claude Code or SDKs at a single endpoint and API key while the gateway handles provider accounts, model aliases, and protocol conversion on the way out.
It speaks OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and Gemini generateContent, and can convert any of these to any other for the upstream call. Streaming, tool calling, reasoning blocks, and most image content are preserved across protocols. OpenAI Images and Videos APIs are also supported, including provider-native media backends where the upstream is not OpenAI-shaped.
Operational features include ordered multi-provider failover, balanced scheduling across keys, round-robin upstream key pools with automatic benching of rate-limited keys, per-key model allowlists, rate and concurrency limits, budgets, and revocation. A built-in web console offers multi-user access with OAuth2 or OIDC sign-in, per-user API keys and usage views, cost analytics, request logs with routing detail, and optional tool-output compression to reduce token spend.
Everything ships as one binary with the console embedded, using SQLite by default or PostgreSQL when configured. You can run it via Docker Compose, as a system service on Linux, macOS, or Windows, or directly with a released binary. Optional outbound proxy settings help reach providers through corporate or regional network paths.
Key features
- Four chat protocols with cross-protocol translation
- Multi-provider failover and key pooling
- Embedded multi-user admin console
- Per-key budgets, limits, and model allowlists
- OpenAI Images and Videos API support
- Cost analytics and tool-output compression
- SQLite or PostgreSQL storage
- OAuth2 or OIDC team sign-in
Use cases
- One endpoint for Claude Code across heterogeneous providers
- Failover when an upstream API key or provider fails
- Team-shared LLM access with per-member keys and quotas
- Translating Anthropic clients to OpenAI-only providers
- Self-hosted LLM routing on Docker or a single binary
Does the same job as
YoloRouter doesn't name these products itself, but its own description shows it does the same job.