Skip to content
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

Spot an outdated limit or pricing change?

Report Outdated Limit or Pricing Change

Flag changed quotas, pricing tiers, credit-card rules, or license shifts for manual verification.

Request Type
2–120 characters, e.g. Coolify or Neon.
⚠ Enter the tool name (at least 2 characters).
Include https:// (e.g. https://coolify.io/pricing).
⚠ Enter a valid URL starting with https:// or http://.
Deployment Model
Lowercase letters, numbers, and hyphens only (e.g. coolify).
Optional — only used if editors need clarification.
⚠ Enter a valid email address (e.g. name@domain.com).
Share key free allowances, credit-card gate, sleep rule, or min Docker RAM.
⚠ Enter at least 10 characters describing the correction.
Human Verification

Search StackTiers Infrastructure Index

↑↓ navigate · ↵ openFull Pagefind search →