LLM Gateway
- About
- Open-source API gateway for LLM providers. Open-source alternative to OpenRouter and Vercel AI Gateway.
- Catalogue
- No. 603
- Category
- AI
- GitHub stars
- ★ 1.8k
- Last commit
- Page updated

Overview
LLM Gateway sits between your applications and LLM providers. It routes requests to OpenAI, Anthropic, Google Vertex AI and others through one OpenAI-compatible API, and you can use the hosted version or self-host it with Docker.
What it does well
Provider API keys are managed in one place, and every request is tracked for tokens, response time and cost. You can compare models on performance and price, and switch between them without changing your app's code.
Why it’s in the collection
LLM Gateway gives you one API and one bill view across AI providers, on your own infrastructure if you want. Most of it is AGPL-licensed.
Is LLM Gateway open source?
With conditions. Everything outside the ee directory is AGPL-3.0. The ee directory holds enterprise features under LLM Gateway's commercial license. Read the license.
On GitHub
- Stars
- 1,768
- Forks
- 200
- Commits
- 5,403
- Latest
- Repository
- theopenco/llmgateway
Languages
- TypeScript 95.2%
- MDX 3.7%
- Other 1.1%
Compared with
OpenRouterCommercial unified API for many AI models.
PortkeyAI gateway with a commercial cloud.
Vercel AI GatewayVercel's unified API for AI models.
See every open-source alternative to OpenRouter and Vercel AI Gateway in the collection.
Compare it with other open-source AI gateways.



