AI & Machine Learning · AI Development Platforms
LLM Gateway
Centralize model routing, provider keys, usage tracking, and cost analysis
LLM Gateway is an API gateway for teams routing requests across multiple language-model providers through one OpenAI-compatible interface. Polar Lights LLC maintains it with distributed contributors. The core uses AGPL-3.0, while enterprise features require commercial licensing. A hosted version exists with free BYOK usage, a 5% credit top-up fee, and custom enterprise pricing.
Key facts
- License
- AGPL-3.0
- Main language
- TypeScript
- Maintainer
- Polar Lights LLC, with distributed contributors
- Latest release
- v1.22.0, October 19, 2026
- GitHub stars
- 1,703, October 2026
- Hosted option
- Free BYOK, 5% fee on credit top-ups, custom enterprise pricing
What LLM Gateway is
LLM Gateway is an API gateway for applications that use multiple language-model providers. Polar Lights LLC operates and maintains it with distributed contributors. The repository was created in 2025, but the project does not publish a confirmed first release year. GitHub lists 1,703 stars in October 2026, and the repository names OpenAI, Anthropic, Google Vertex AI, and other provider connections. The project publishes v1.22.0, dated October 19, 2026. It offers hosted access through llmgateway.io and supports self-hosting for organizations that want to run the gateway and its supporting services on their own infrastructure. The repository lists TypeScript among its implementation languages and describes a unified API for routing, key management, usage tracking, and cost analysis.
How it works
The normal workflow places LLM Gateway between an application and its model providers. An application sends requests through the OpenAI-compatible interface, while administrators configure provider connections and manage credentials centrally. The gateway can route requests across providers, record token usage and costs, and expose performance information such as response times. The README also describes caching and failover as project capabilities. Provider onboarding occurs through Airside, the project’s self-serve provider portal, rather than through provider additions submitted as pull requests. This arrangement gives application teams one integration point while administrators handle provider configuration separately. It fits services that need several providers, shared credentials, and centralized accounting for model traffic.
Architecture and recent releases
LLM Gateway separates its user interface, API, gateway, and worker applications. The repository identifies a Next.js dashboard, a Hono backend, and Drizzle ORM schemas and migrations. PostgreSQL stores the main data, while Redis supports caching and the worker queue. The project documents Docker, Docker Compose, and Kubernetes with Helm for deployment. TypeScript is the main implementation language identified by the repository, with additional repository language entries including JavaScript, Shell, Swift, Objective-C, and other generated or configuration-oriented categories. The current indexed release is v1.22.0 from October 19, 2026. The project does not publish a fixed minimum hardware profile or an object-storage requirement.
License and pricing
The core functionality uses AGPL-3.0. Commercial features in the ee/ directory require an Enterprise license, and multi-organization administration requires a white-label license. The enterprise list includes advanced billing, subscription management, full request and response retention, custom provider key configurations, team and organization management, and priority support. AGPL-3.0 permits commercial use subject to its copyleft conditions. The hosted service offers free BYOK usage, charges a flat 5% fee on credit top-ups, and uses custom pricing for enterprise plans. The project does not publish a fixed enterprise price. Organizations choosing self-hosting still need to operate PostgreSQL, Redis, application services, upgrades, and backups.
Limitations and how it compares
LLM Gateway’s main limitation is the operational and licensing boundary between its AGPL-3.0 core and commercial enterprise code. Langflow is a named alternative with an MIT license, visual flow authoring, agents, RAG, playground testing, and API or MCP deployment, but it serves application construction rather than the same gateway role. LiteLLM is another open-source alternative for a unified model interface and provider routing. Portkey is a proprietary alternative for gateway and observability functions. Choose LLM Gateway when centralized provider routing, credentials, usage accounting, caching, and failover matter more than visual flow design or a hosted-only control plane. This distinction affects how teams evaluate deployment responsibilities, licensing obligations, administration, and the boundary between gateway operations and application development.
Main features
- OpenAI-Compatible API. Applications can send requests through an OpenAI-compatible interface, avoiding separate provider integrations for each application.
- Multi-Provider Routing. The gateway routes requests across configured providers, including OpenAI, Anthropic, Google Vertex AI, and others.
- Provider Key Management. Administrators manage provider credentials centrally, avoiding separate keys distributed across each application within configured application workflows.
- Usage Cost Analytics. The gateway tracks requests, tokens, response times, and costs across model interactions for operational accounting.
- Performance Monitoring. Performance information helps teams compare response behavior and cost effectiveness across providers during model evaluation.
- Request Caching. Caching can reuse eligible results, reducing repeated requests sent to model providers for similar interactions.
- Provider Failover. Failover can redirect traffic to another configured provider when an upstream service becomes interrupted within configured application workflows.
Self-hosting LLM Gateway
The project documents Docker, Docker Compose, and Kubernetes with Helm. Its repository also includes a unified Docker image and named PostgreSQL and Redis volumes. The deployment separates the user interface, API, gateway, and worker applications. PostgreSQL stores application data, while Redis supports caching and the worker queue. The project does not publish minimum CPU or memory requirements, binary packages, or package-manager installation. Operators should back up PostgreSQL before upgrades and protect gateway secrets in their deployment environment. The repository does not specify an upgrade sequence or backup schedule, so operators must define those procedures for their infrastructure.
Strengths
- It gives applications one OpenAI-compatible interface for multiple model providers.
- The repository identifies centralized keys, usage tracking, cost analysis, and performance monitoring.
- Docker, Docker Compose, and Kubernetes with Helm support self-hosted deployment.
- The hosted service offers free BYOK usage and a published 5% top-up fee.
Drawbacks
- Enterprise features in the ee/ directory require commercial licensing.
- Self-hosting requires PostgreSQL, Redis, and several application services.
- The project does not publish minimum hardware requirements.
What teams replace with it
Teams usually evaluate LLM Gateway when they want to move off OpenAI API, Anthropic API.
For side-by-side commercial comparisons, browse our alternatives hub.
Frequently asked questions
Is LLM Gateway free to use?
The core uses AGPL-3.0, and the hosted service offers free BYOK usage. Hosted credit top-ups carry a flat 5% platform fee. Enterprise features in the ee/ directory require commercial licensing, while enterprise hosted pricing is custom. Self-hosting avoids hosted platform fees, but organizations still pay for infrastructure, operations, PostgreSQL, Redis, backups, and maintenance.
Can companies use LLM Gateway commercially?
Yes, AGPL-3.0 permits commercial use subject to its copyleft conditions. The repository separately identifies commercial enterprise features in the ee/ directory, and multi-organization administration requires a white-label license. Companies should distinguish the AGPL-3.0 core from enterprise code when planning modifications, redistribution, network use, and proprietary extensions.
How do you self-host LLM Gateway?
The project documents Docker, Docker Compose, and Kubernetes with Helm. Its services include the user interface, API, gateway, and workers. PostgreSQL stores application data, while Redis supports caching and the worker queue. The project does not publish minimum hardware requirements, so operators must size the deployment for traffic and establish backup and upgrade procedures.
How does LLM Gateway compare with Langflow?
LLM Gateway focuses on an OpenAI-compatible interface, provider routing, key management, usage and cost tracking, caching, and failover. Langflow focuses on visual flow authoring, Python components, agents, RAG, playground testing, and API or MCP deployment. LLM Gateway uses AGPL-3.0 for its core, while Langflow uses MIT. Choose the former for gateway operations and the latter for visual application construction.
Does LLM Gateway improve data privacy?
Self-hosting allows an organization to run the gateway, API, user interface, workers, PostgreSQL, and Redis in its own infrastructure. The hosted service also supports BYOK. The project does not publish detailed encryption settings, retention controls, audit certifications, or provider data-handling terms. Organizations with strict privacy requirements should assess those controls before choosing hosted or self-managed deployment.
Similar projects to compare
- LangflowMITLangflow is a Python-centered, MIT-licensed visual tool for authoring AI flows with components, agents, retrieval-augmented generation, APIs, and MCP deployment. It supports visual composition while allowing Python customization when needed. Developers can use it to configure, test, and deploy workflows. Langflow offers a free cloud account and an enterprise cloud offering with custom pricing for organizations.
- LiteLLMMIT (core); proprietary enterprise licenseLiteLLM is an open source Python SDK and gateway for calling more than 100 model providers through one interface. The project is MIT licensed outside its enterprise directory, and self-hosting costs $0. LiteLLM also sells a separately licensed Enterprise edition for governance and support, with annual pricing based on request capacity, architecture, and support needs rather than token volume.
- ACI.devApache-2.0ACI.dev is an Apache-2.0 platform from Aipotheosis Labs for connecting AI agents to more than 600 SaaS integrations. It targets developers building agent products with SDKs, a unified MCP server, OAuth, secrets, permissions, and tool discovery. A managed service exists at aci.dev, but published product pages do not list hosted pricing.
- AgentOSApache-2.0AgentOS is a Python toolkit for building, running, tracking, and sharing reinforcement learning agents through the Python Component System. It targets researchers and developers who need explicit dependencies, virtual environments, and experiment runs. AgentOS and PCS use Apache-2.0. Documentation describes a public registry, but no paid hosted AgentOS service is listed.
- AgnoApache-2.0Agno is a Python SDK and AgentOS runtime for building, serving, and managing agents, teams, and workflows. The runtime is Apache-2.0 licensed and self-hostable. A hosted control plane starts at $150 per month for one live connection and three team seats. This provides a concise description of its development components, runtime model, licensing, deployment option, and hosted pricing.
- BeamAGPL-3.0Beam is an open-source runtime for serverless AI workloads, including GPU inference, sandboxes, functions, and background jobs. Beta9 uses AGPL-3.0 and supports self-hosting, while Beam Cloud provides managed compute, dashboards, billing, and hosted services. The hosted product bills CPU, memory, and GPUs by usage, with published rates for several machine types.