Send all AI requests through one endpoint so switching providers requires no code changes
Automatically fall back to a backup AI provider when the primary one is unavailable or too expensive
Compress long prompts before sending to reduce token costs by up to 95 percent
Use a single gateway for text chat, image generation, and audio transcription across different providers
OmniRoute is a self-hosted gateway that lets you send AI requests to more than 160 different AI providers through a single consistent API endpoint. Instead of writing separate code to talk to OpenAI, Anthropic, Gemini, DeepSeek, or any other provider, you point your application at OmniRoute, and it handles the routing and translation behind the scenes. If one provider is unavailable or too expensive for a given request, OmniRoute can fall back to another automatically. The project includes a prompt compression feature it calls RTK+Caveman, which attempts to reduce the number of tokens sent to the AI model on each request. The README claims reductions of 15 to 95 percent on eligible content, though results will vary by use case. Fewer tokens sent means lower costs when using paid providers. It supports 13 different routing strategies for deciding which provider handles each request. Beyond text chat, the gateway handles several other types of AI requests: embeddings, image generation, video, music generation, audio speech and transcription, web search, and content moderation. It also includes an MCP server with 37 tools and supports the A2A agent-to-agent communication protocol, making it usable as infrastructure for AI agent systems. OmniRoute can be run as a web app, as a desktop application built with Electron, or as a mobile progressive web app, including on Android via Termux. The README and documentation are available in over 40 languages. The project is written entirely in TypeScript and has over 4,600 automated tests. Installation is available via npm, Docker, or by downloading an Electron release. The full README is longer than what was shown.
← diegosouzapw on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.