LLM Gateway
Also known as: llmgateway.io, Polar Lights LLC, DevPass by LLM Gateway
LLM Gateway is an open source, OpenAI compatible gateway that sends the model calls of the agents and apps a team builds to 250+ models across 40+ providers through one key. It fails over between providers within the same request, caches responses and tracks cost per request, key, project and coding agent. Enterprise adds guardrails that block or redact prompt injection, PII and secrets, versioned dynamic routes, provider compliance policies, SSO with SCIM and tamper evident audit logs. The whole stack also self hosts under AGPLv3.
LLM Gateway is an API gateway for large language model traffic, operated by Polar Lights LLC of Lewes, Delaware, and built in the open on GitHub under the AGPLv3 license, with a commercial license for its enterprise features. Applications send requests with one key to one OpenAI compatible endpoint, or an Anthropic compatible one for tools such as Claude Code, and the gateway forwards them to OpenAI, Anthropic, Google, Mistral, DeepSeek and dozens of other providers. The company says it has routed more than a trillion tokens and adds new models within 48 hours of release. It also sells DevPass, flat monthly plans for developers who code with AI agents, and Lounge, a consumer chat app.
The gateway serves the agents and AI features a buyer builds rather than running agents of its own. A request that names only a model is scored across every provider serving it and retried on the next healthy one if the first fails, inside the same call, and a session header keeps a conversation on one provider so prompt caches stay warm. On Enterprise, dynamic routes move model choice into named, versioned graphs with header conditions, a classifier that rates difficulty or task type, and percentage splits that hold each session in one arm.
Guardrails scan every prompt for prompt injection, jailbreaks, PII and secrets and then block, redact or warn, while compliance policies refuse providers that lack SOC 2, ISO 27001 or zero data retention. Each request lands in an activity log with cost, tokens, latency and routing details, an Agents view groups traffic by coding tool and session, and an MCP server lets an assistant read usage and call models. Twelve open source starter agents and eleven app templates round out the kit.
Token prices match each provider's own rates. Prepaid credits carry a flat 5% platform fee, bringing your own provider keys is free, and self hosting is free. Enterprise is custom priced with volume discounts, full request and response retention for 30 days at $0.01 per million tokens, a 99.9% uptime SLA and a 30 day production pilot. DevPass costs $29, $79 or $179 a month.
LLM Gateway holds a SOC 2 Type II attestation, and Enterprise adds SAML or OIDC sign on with SCIM, four member roles and IAM rules per member, team and key. The managed cloud runs on Google Cloud in the European Union and the United States, and the self hosted stack runs on Docker, Kubernetes or Terraform modules for AWS, Google Cloud and Azure.
It fits engineering teams that want one key and one bill across many model providers, failover without code changes and per key budgets for developers and coding agents, and teams that need the gateway inside their own cloud. It fits less well for a buyer who wants the gateway itself to run agents, hold tool credentials or approve tool calls, since it routes model calls and leaves the agent loop to the customer's code, or for one that needs output quality scoring, which the product does not offer.
Vendor details
Canonical URL
https://llmgateway.io
Category
Agent infrastructure
Subcategory
Open source, OpenAI compatible gateway that routes the model calls of the agents and apps a team builds, with provider failover, guardrails, budgets and usage analytics
Funding status
Operated by Polar Lights LLC of Lewes, Delaware, and developed in the open with community contributors on GitHub. LLM Gateway names no outside investors.
Company status
independent
Use cases & customers
Primary use cases
Target customers
Deployment options
Integrations
Routes to 40+ providers including OpenAI, Anthropic, Google AI Studio and Vertex AI, AWS Bedrock, Azure, Groq, Cerebras, xAI, DeepSeek, Mistral, Together AI, Fireworks and Perplexity, plus any OpenAI compatible custom provider on Enterprise. Works as a drop in endpoint for the OpenAI and Anthropic SDKs, the Vercel AI SDK and TanStack AI, with setup guides for Claude Code, Cursor, Codex, Cline, OpenCode, Continue and n8n. SSO connects to Okta, Microsoft Entra ID and Google Workspace, data streams feed a SIEM or warehouse, and alerts post to Slack and Discord.
In practice
A startup's support agent calls Claude Sonnet through LLM Gateway with a session header on each conversation. When Anthropic's API starts returning errors during a launch, the gateway retries those requests on Google Vertex AI and AWS Bedrock inside the same call, conversations keep their cached prompts, and the activity log shows which provider served each turn.
A platform team gives 40 developers gateway keys for Claude Code, Cursor and Codex. Microsoft Entra groups sync over SCIM into teams with per developer budget ceilings, the Agents view shows which coding tool drives spend, and an over budget request is rejected before it reaches a provider.
A fintech with EU customers runs the self hosted gateway in its own AWS account through the Terraform modules. A compliance policy limits routing to providers with SOC 2 and zero data retention, guardrails redact card numbers and email addresses before prompts leave, and data streams send audit logs to its SIEM.
Sources & related URLs
Related / legacy domains
Research sources
Agentic Index coverage score
8.0 / 14 capabilities · 57%
| Integrations & Tool Calling | Partial |
|---|---|
|
Requests carry tool definitions and returned tool calls in one OpenAI compatible format to every tools capable model in the catalog, and coding agents such as Claude Code, Cline and Codex run their own tools over the gateway. Realtime voice sessions also accept remote MCP servers with an authorization header and an approval setting, which the gateway validates and passes to the model provider. The gateway executes no tools itself, stores no tool credentials and offers no MCP gateway for outside systems, so actions happen in the customer's code. Sourcedocs.llmgateway.io/features/realtimeread 2026-11-09 |
|
| Workflow Orchestration | Not documented |
|
Nothing in the product runs an agent loop or sequences steps. Each request resolves to a single model call, and the Batch API works through an uploaded file of independent requests in the background with the usual routing, retries and limits. Planning, tool execution and branching between steps stay in the customer's own agent code or framework, such as the Vercel AI SDK, with the gateway answering each model call as it arrives and holding nothing about the run between calls. Sourcedocs.llmgateway.io/features/batchread 2026-11-09 |
|
| Knowledge Grounding & RAG | Not documented |
|
Embedding, rerank, OCR and document reading requests pass through to providers, and a search endpoint returns ranked web results with page snippets for a customer's own retrieval code. The Files API holds batch input files only. The gateway keeps no index, vector store or knowledge base over the customer's documents, so any retrieval layer is built and stored by the customer with the models the gateway routes to, outside the product. Sourcedocs.llmgateway.io/features/searchread 2026-11-09 |
|
| Human Oversight & Guardrails | Partial |
|
Guardrails on Enterprise scan every prompt for prompt injection, jailbreaks, PII, secrets, blocked terms, custom regex, restricted topics and file types, and each rule blocks the request, redacts the content or logs a warning. Owners and admins set them for the whole organization or per project, and per key, member and team budgets reject spend over a cap before a provider is called. Every control acts automatically, and no step pauses a request or tool call for a person to approve. Sourcedocs.llmgateway.io/features/guardrailsread 2026-11-09 |
|
| Security, Identity & Governance | Full |
|
Enterprise organizations sign in through SAML 2.0 or OIDC with Okta, Microsoft Entra ID or Google Workspace, and SCIM provisions users and maps directory groups to roles and teams. Four roles (owner, admin, project admin and developer) scope access by project, and IAM rules per member, team and key restrict models, providers, pricing tiers and IP addresses. A SOC 2 Type II report and a penetration test under NDA are available through the trust center, which lists GDPR as in progress. Sourcedocs.llmgateway.io/features/ssoread 2026-11-09 |
|
| Observability & Auditability | Full |
|
Every request appears in an activity log with model, provider, tokens, cost, latency, cache status and routing metadata, including the dynamic route version and node path taken, and an Agents view splits coding tool traffic into sessions with CSV export. Free plans keep metadata only, while Enterprise keeps full payloads for 30 days. Tamper evident audit logs record who changed keys, roles, IAM rules, guardrails and SSO settings, and data streams send them to a SIEM in signed, ordered batches. Sourcedocs.llmgateway.io/features/audit-logsread 2026-11-09 |
|
| Memory & State Persistence | Partial |
|
Stored Responses API items let a later request chain onto an earlier response, and they sit in dedicated storage for 30 days, or not at all when a request sets store to false. A session header ties a conversation's requests together so routing stays on one provider and the activity log shows the whole thread. That is conversation state for one thread with a fixed lifetime, and the gateway offers no memory store that an agent reads and writes across sessions per user or team. Sourcedocs.llmgateway.io/features/data-retentionread 2026-11-09 |
|
| Deployment & Data Residency | Full |
|
The whole stack, meaning gateway, API, dashboard and worker, self hosts under AGPLv3 on Docker, Docker Compose or Kubernetes with a Helm chart, with guides for AWS, Google Cloud and Azure managed services, and Enterprise adds Terraform modules that deploy it into the customer's own cloud account. The managed cloud runs on Google Cloud in the European Union and the United States. Per project routing overrides on Enterprise pin model traffic to a provider region with its own fallback chain. Sourcedocs.llmgateway.io/self-hostread 2026-11-09 |
|
| Prebuilt Agents / Templates / Packs | Full |
|
Twelve open source starter agents can be cloned and run against the gateway, among them a research agent that writes cited reports, a code review agent that gates CI on GitHub Actions, a SQL agent that corrects its own queries, a support triage agent and a meeting notes agent that posts to Slack or Discord. Each stands alone as a TypeScript program on the AI SDK. App templates add a chatbot, an image generator and a Slack Q&A bot, and agent skills install into coding tools. Sourcellmgateway.io/agentsread 2026-11-09 |
|
| Triggers & Channel Coverage | Not documented |
|
Work reaches the gateway only when a client sends a request to its API, its Anthropic compatible endpoint, a realtime socket or the MCP server. Notifications about budgets, provider issues, model retirements and compliance changes go to people in the app or by email, and Slack and Discord alerts carry billing and guardrail events to a team's channels. No schedule, webhook, event or inbound queue starts an agent run, since the product runs no agents of its own. Sourcedocs.llmgateway.io/features/notificationsread 2026-11-09 |
|
| Model Flexibility & Routing | Full |
|
Customers pick among 250+ models from 40+ providers, pin a provider with a prefix, or name only a model and let routing score providers on price, uptime, throughput and latency, with failover inside the same request. Requests can also ask for the cheapest or fastest provider or use auto routing with filters. On Enterprise, dynamic routes send traffic through versioned graphs with header and body conditions, a difficulty and task classifier and percentage splits, and custom OpenAI compatible providers join the catalog. Sourcedocs.llmgateway.io/features/routingread 2026-11-09 |
|
| APIs / SDKs / MCP Extensibility | Full |
|
Applications call an OpenAI compatible REST API, described by an OpenAPI specification, with endpoints for chat, responses, embeddings, images, video, speech, batches and files, plus an Anthropic compatible messages endpoint, an AI SDK provider, a CLI and a VS Code extension. Enterprise master keys create projects, API keys, IAM rules and custom providers from the customer's backend. A hosted MCP server takes a bearer key or OAuth and offers tools for account details, usage and cost breakdowns, model listing, chat and image generation. Sourcellmgateway.io/guides/mcpread 2026-11-09 |
|
| Testing, Debugging & Optimization | Partial |
|
Percentage splits in dynamic routes send a fixed share of traffic to a second model, assigned per session so a conversation stays in one arm, and route analytics compare each route's spend with sending everything to its priciest model. Prompt versions move between labels such as staging, canary and production with instant rollback, and a model arena template compares answers side by side. Nothing scores output quality, since there are no datasets, judges, feedback scores or test runs. Sourcedocs.llmgateway.io/features/dynamic-routesread 2026-11-09 |
|
| Browser / Computer-use | Not documented |
|
LLM Gateway is a routing layer for model calls, so it hosts no browser, desktop or remote computer session for an agent to drive. The nearest thing is a QA agent template the customer clones and deploys on its own infrastructure, where Playwright turns plain English test steps into navigation, clicks and typing; that browser belongs to the customer's copy of the code, not to the gateway. Anthropic models reached through the gateway keep their own web fetch and web search tools, which read pages without operating them. Sourcellmgateway.io/templatesread 2026-11-09 |
|
The Agentic Index coverage score grades every vendor Full, Partial or Not documented against the same 14 buyer facing capabilities, from public evidence only. Each capability links to how all vendors in the index score on it. How this evidence is graded
Pricing
Free to start with no card. Tokens at each provider's own rates, plus a flat 5% fee on prepaid credits. Bringing your own provider keys is free, and self hosting under AGPLv3 is free. Enterprise is custom priced.
Per token at provider list rates, drawn from prepaid credits that carry a 5% platform fee at purchase, plus optional payload storage at $0.01 per million tokens on Enterprise; DevPass is a flat monthly plan
Included quota
The free plan covers the full model catalog on credits or the customer's own keys, metadata only logs, one rate limited free model at 20 requests a minute, and no per seat charge. Paid models carry no rate limit. Enterprise adds full payload retention for 30 days, custom rate limits and unlimited seats.
What is public
Provider token rates per model in the live catalog, the flat 5% platform fee on credits, the international card fee, top up limits, free bring your own keys and self hosting, the Enterprise payload storage rate, the refund rule, and DevPass and Lounge plan prices.
Billing mechanics
Customers buy prepaid credits by card or crypto and each request draws its provider token price from the balance. Requests on the customer's own provider keys are billed by those providers directly. Enterprise adds invoicing and volume pricing.
Cost watchouts
The 5% fee applies at credit purchase, with 1.5% more on international cards. Guardrails, SSO, audit logs, dynamic routes and full payload retention are Enterprise only, and payload storage adds $0.01 per million tokens. A classifier node in a dynamic route bills each rating at the classifier model's rate.
Variable cost rationale
The gateway's own fee is a fixed 5% of credits bought, or nothing on the customer's own keys, so cost tracks model usage almost one for one: token volume, model choice and long agent sessions drive the bill. Per key, member and team budgets and per request spend caps bound the exposure, and DevPass turns coding agent use into a flat monthly price with a pacing limit.
Additional watchouts
Model spend sits on top of the platform fee and scales with agent traffic. Enterprise governance features, including guardrails, SSO and audit logs, carry custom pricing. Requests that do not pin a provider may route to undisclosed stealth providers.
Overage / add-ons
No overage in the usual sense: each request draws its provider token price from prepaid credits, and requests stop when credits or a key, member or team budget run out. Top ups run from $10 to $5,000. DevPass plans can opt into pay as you go overflow from a credit balance past their monthly allowance.
Sales call required
Mixed (some tiers require a call)
Free / trial
Free plan with no card, metadata only logs and one rate limited free model. Bringing your own provider keys and self hosting are free. Enterprise starts with a 30 day production pilot.
Lowest paid plan
No gateway subscription. Prepaid credits start at a $10 top up and carry a flat 5% platform fee on top of provider token rates. DevPass coding plans start at $29 a month.
Commercial notes
LLM Gateway is open source under AGPLv3 with commercial licensing for its enterprise features, operated by Polar Lights LLC. Its pitch is pass through provider pricing, a self hostable stack and no lock in.
Key ambiguities
Enterprise pricing is quoted by sales. The pricing page lists volume discounts on the 5% fee without naming the thresholds.
Cancellation / refund
No subscription or minimum on the gateway. Credits are generally non refundable once used, with a self serve refund within 14 days while less than 10% of a purchase is spent. Enterprise starts with a 30 day production pilot and no long term contract before its decision gate.
Support SLA / resale
Community support on Discord for the free plan. Enterprise adds 24/7 support from gateway engineers in a dedicated Slack or Discord channel, onboarding and migration help, and a 99.9% uptime SLA.
Missing data
Enterprise price points and volume discount thresholds.
Related vendors
- AgentOps — Agent observability and debugging platform: open source SDKs trace…
- AgentPhone — AgentPhone gives the AI agents a team builds their own US or…
- Agno — Python agent framework and AgentOS runtime (formerly Phidata) for…
- AIsa — Resource and payment gateway for AI agents, with one key to 110+…
- Albato — Albato is a no code integration platform that sells an embedded,…
- AlphaBitCore — AI control plane for regulated financial firms: one gateway enforces…
Alternatives to LLM Gateway
The closest documented capability profiles to LLM Gateway among agent infrastructure platforms tracked by Agentic Index, ordered by similarity on the same 14 point evidence the rankings use. No vendor pays for placement.
- Stacklok8.0 / 14Fuller documented coverage on Integrations & Tool Calling
- Arize AI9.0 / 14Adds documented Triggers & Channel Coverage
- MLflow9.0 / 14Adds documented Triggers & Channel Coverage
- Vercel Sandbox6.0 / 14A lighter documented profile than LLM Gateway
- Arcade7.5 / 14Fuller documented coverage on Integrations & Tool Calling and Testing, Debugging & Optimization
- Confident AI8.5 / 14Adds documented Triggers & Channel Coverage
Similarity is computed from each vendor's Agentic Index coverage score evidence, axis by axis, not from the totals. How this evidence is graded