
Open-source LLM Gateway routes, caches, and monitors AI traffic across 35+ providers, replacing Vercel AI Gateway with self-hosted privacy and control.
LLM Gateway is built on a TypeScript and Hono foundation that routes requests across more than thirty-five machine learning providers behind a single OpenAI-compatible HTTP interface. The proxy runs as a self-hosted Linux container bundling PostgreSQL and Redis, allowing engineering teams to manage model keys, fallback rules, and cost tracking on their own infrastructure. It handles chat completions, streaming responses, and document OCR while keeping raw prompt payloads off external servers.
Vercel AI Gateway forwards prompts, completions, and metadata through a multi-tenant edge network. For teams subject to GDPR, healthcare privacy mandates, or internal security policies, routing sensitive payloads through a hosted intermediary creates compliance roadblocks. LLM Gateway terminates client traffic inside a private VPC or data center, keeping prompts, completions, and API keys confined to internal networks.
Vercel provides automated edge scaling across regions. LLM Gateway trades managed simplicity for infrastructure control: your team owns the underlying PostgreSQL database, Redis cache, and audit trails. You can configure custom rate limits, enforce internal retention rules, and query local models without paying per-seat subscription fees or exposing tokens to third-party proxies.
Is LLM Gateway free for commercial use? Yes. The core proxy software can be self-hosted without licensing fees, although advanced organizational features in the upstream repository require a commercial license.
LLM Gateway vs Vercel AI Gateway — which should you choose? Choose Vercel AI Gateway if your team operates on Vercel and wants managed edge routing without operating servers. Choose LLM Gateway if privacy mandates or security policies require keeping prompts, logs, and credentials on your own infrastructure.
Can LLM Gateway route requests to self-hosted models? Yes. You can route traffic to private inference engines like Ollama or vLLM as long as they expose an OpenAI-compatible HTTP interface accessible to the gateway.
For engineering teams that prioritize data sovereignty over managed convenience, LLM Gateway delivers a self-hosted routing tier that keeps proprietary prompts safely inside private infrastructure. Its MIT license permits flexible deployment across enterprise environments, and continuous commits through late 2026 reflect an actively maintained open-source project well suited for teams managing their own AI infrastructure.
Go, gRPC and Protobuf done right, LLM agents in production, and the hard parts of shipping a first product.
Show that LLM Gateway is listed as an open-source alternative. Paste into your README: