Self-Hosted OSS AI Gateways
LiteLLM Proxy
Open-source unified AI gateway routing 100+ cloud and local LLM APIs with budget caps.
Self-Hosted Blueprint
BerriAI/litellm ↗- Min RAM / CPU
- 512 MB · 1 vCPU
- License
- MIT
- GitHub Stars
- 64k
- Maintenance
- Medium
One-click templates on: coolify dokploy railway
Quickstart / Docker Compose
docker-compose.yml
services:
litellm:
image: ghcr.io/berriai/litellm:main-latest
restart: unless-stopped
ports:
- "4000:4000"
environment:
LITELLM_MASTER_KEY: ${LITELLM_MASTER_KEY}Gotchas & Hidden Limits
- Keep Postgres connected in production for virtual API keys, per-user spend caps, and fallback logging.
Best For: Centralizing LLM rate-limit fallbacks, cost tracking, and local-to-cloud routing.
Crossover Point: Pays off immediately when juggling free tiers across Groq, Gemini, OpenRouter, and local Ollama.
Related Comparisons & Alternatives
Alternative To
Spot an outdated limit or pricing change?