Awesome Infra for AI › LLM Gateways & Proxies

mydisha/keirouter

⭐ 146 Go added to this list on 2026-07-27 repository created 2026-05-31

KeiRouter is an open-source, self-hostable AI gateway designed to streamline and optimize interactions with various large language model (LLM) providers like OpenAI and Anthropic. It mitigates common pain points associated with LLM API usage, such as managing multiple API keys, handling rate limits, and controlling token costs. By directing all AI coding tools and applications to a single local endpoint, KeiRouter intelligently routes requests to the appropriate model, implements failover mechanisms for uninterrupted service, and employs a semantic cache to instantly serve repeat queries, significantly reducing API calls and costs. The gateway offers comprehensive cost control features, including multiple token-saving mechanisms, a budget engine for setting USD and token limits per key or organization, and rate limiting with configurable RPM, TPM, and concurrency caps. For security and governance, KeiRouter integrates guardrails that detect PII, prompt injection, toxicity, and bias, offering layered protection across global, provider, model, and key levels. It also features robust operational and user experience tools, such as activity monitoring, white-label branding, auto-configuration for various CLI tools, and a usage portal for teams to track their consumption and savings. Written in Go, it boasts a small memory footprint and fast startup times, delivering its capabilities through a single binary and an intuitive dashboard.

https://github.com/mydisha/keirouter

ai-gatewayllm-proxyai-routercost-controlrate-limitingguardrailssemantic-cacheself-hostablellm-ops

Also in LLM Gateways & Proxies

diegosouzapw/OmniRoute

OmniRoute is a free AI gateway that unifies access to over 170 AI providers, offering token compression, auto-fallback, and aggregating free tiers to provide billions of free tokens monthly.

Mintplex-Labs/anything-llm

AnythingLLM is an all-in-one local-first AI application for chatting with documents, managing AI agents, and integrating with various LLMs and vector databases, offering dynamic model routing and m...

BerriAI/litellm

LiteLLM is an open-source AI Gateway and Python SDK providing a unified interface to over 100 LLM providers, with features like cost tracking, guardrails, load balancing, and observability.

QuantumNous/new-api

new-api is a unified LLM gateway and AI asset management system that enables aggregation, distribution, and cross-conversion of various LLMs into OpenAI, Claude, or Gemini compatible formats, offer...

Kong/kong

Kong Gateway is a cloud-native API and AI gateway offering high performance, extensibility via plugins, and advanced AI traffic capabilities including multi-LLM support, semantic security, and cach...

decolua/9router

9Router is an AI router and token saver that connects various AI coding tools to over 40 AI providers, optimizing usage with auto-fallback, quota tracking, and token compression.

apache/apisix

Apache APISIX is a dynamic, real-time, high-performance API Gateway that can also function as an AI Gateway, providing AI proxying, load balancing for LLMs, and robust security for AI agents.

lidge-jun/opencodex

OpenCodex is a universal local proxy that enables OpenAI Codex, Claude Code, and Grok Build to utilize any LLM provider, offering advanced model routing, account pooling, and API key management.