LLM Gateway
Route, manage, and analyze LLM requests across OpenAI, Anthropic, Google, and 40+ providers through one unified, OpenAI-compatible API. Free and open source.
LLM Gateway is an open-source alternative to:

LLM Gateway simplifies working with multiple LLM providers by offering a single, OpenAI-compatible API interface. Whether you're using OpenAI, Anthropic, Google, or 40+ other providers, LLM Gateway handles routing, cost tracking, and performance monitoring—all in one place.
Key Features
- Unified API Interface: Keep your existing OpenAI SDK code; just change the base URL to switch providers.
- Multi-provider Support: Access 40+ providers through one integration with no vendor lock-in.
- Performance Monitoring: Compare latency, cost, and quality across models to optimize your use case.
- Secure Key Management: Centralize all provider keys in one dashboard to avoid scattered credentials.
- Self-hosted or Cloud: Deploy on your own infrastructure or use the managed cloud service.
- Cost-aware Analytics: Track requests, tokens, total spend, and average cost per 1K tokens.
- Per-model/provider Breakdown: Analyze usage and spend by provider and model to identify outliers.
- Errors & Reliability Monitoring: Monitor error rates, cache hit rates, and reliability trends.
- Project-level Usage Explorer: Drill into each project's requests, models, errors, cache, and costs.
- Enterprise Audit Logs: Maintain compliance with comprehensive audit trails.
- LLM Guardrails: Prevent prompt injection, detect PII, and block malicious requests.
Tech / Self-Hosting
LLM Gateway is open source and can be self-hosted for full control over your infrastructure. Alternatively, use the managed cloud service for a hassle-free experience. The project is SOC 2 Type II certified, ensuring enterprise-grade security and compliance.