LiteLLM
Open-source AI gateway to call 100+ LLM providers in OpenAI format — self-hosted, enterprise-ready
Overview
Requirements
Recommended VPS
Hostinger · KVM 2
2 vCPU · 8192 MB · 100 GB
Hostinger · KVM 2
2 vCPU · 8192 MB · 100 GB
Hostinger · KVM 4
4 vCPU · 16384 MB · 200 GB
Affiliate disclosure
Docker Compose
# Generated by Run This Ai — docker-compose.yml
services:
litellm:
image: ghcr.io/berriai/litellm:main-stable
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./data/litellm:/data
LiteLLM — Faq
LiteLLM
LiteLLM is an open source AI Gateway that gives you a single, unified interface to call 100+ LLM providers — OpenAI, Anthropic, Gemini, Bedrock, Azure, and more — using the OpenAI format. Use it as a Python SDK for direct library integration, or deploy the AI Gateway (Proxy Server) as a centralized service with cost tracking, guardrails, load balancing, and logging.
Is LiteLLM free to self-host?
Yes — it is open source and runs on your own hardware.
Does LiteLLM need a lot of resources?
A server with 1–2GB RAM is enough for most workloads.
How do I deploy LiteLLM?
Easiest via Docker — see the installation guide for commands.
Where does my data go?
Nowhere — everything is processed locally on your server.
LiteLLM — Alt
LiteLLM
LiteLLM is an open source AI Gateway that gives you a single, unified interface to call 100+ LLM providers — OpenAI, Anthropic, Gemini, Bedrock, Azure, and more — using the OpenAI format. Use it as a Python SDK for direct library integration, or deploy the AI Gateway (Proxy Server) as a centralized service with cost tracking, guardrails, load balancing, and logging.
Alternatives to LiteLLM
If LiteLLM isn't quite right, these are common self-hosted alternatives in the same category:
| Tool | Strengths |
|---|---|
| — | Browse the directory for more options |
LiteLLM — Review
LiteLLM
LiteLLM is an open source AI Gateway that gives you a single, unified interface to call 100+ LLM providers — OpenAI, Anthropic, Gemini, Bedrock, Azure, and more — using the OpenAI format. Use it as a Python SDK for direct library integration, or deploy the AI Gateway (Proxy Server) as a centralized service with cost tracking, guardrails, load balancing, and logging.
Strengths
- Full self-hosted control over your data
- Straightforward Docker-based deployment
- Open-source license
Weaknesses
- Initial setup requires Docker familiarity
- You are responsible for maintenance and updates
- Resource needs can grow under heavy load
Verdict
LiteLLM is a solid self-hosted choice — its strengths outweigh the usual maintenance overhead.
LiteLLM — Install
LiteLLM
LiteLLM is an open source AI Gateway that gives you a single, unified interface to call 100+ LLM providers — OpenAI, Anthropic, Gemini, Bedrock, Azure, and more — using the OpenAI format. Use it as a Python SDK for direct library integration, or deploy the AI Gateway (Proxy Server) as a centralized service with cost tracking, guardrails, load balancing, and logging.
Prerequisites
- Docker installed (version 24.0+)
- Docker Compose (version 2.20+)
- At least 1GB RAM (2GB recommended)
Quick start with Docker
# Pull the image
docker pull ghcr.io/berriai/litellm:main-stable
# Run the container
docker run -d --name litellm -p 8080:8080 ghcr.io/berriai/litellm:main-stable
Key features
- Self-hosted and open source
- Docker-based deployment
- License: MIT
- Repository: https://github.com/BerriAI/litellm
- Docker image:
ghcr.io/berriai/litellm:main-stable
LiteLLM — Overview
LiteLLM
LiteLLM is an open source AI Gateway that gives you a single, unified interface to call 100+ LLM providers — OpenAI, Anthropic, Gemini, Bedrock, Azure, and more — using the OpenAI format. Use it as a Python SDK for direct library integration, or deploy the AI Gateway (Proxy Server) as a centralized service with cost tracking, guardrails, load balancing, and logging.
Key features
- Self-hosted and open source
- Docker-based deployment
- License: MIT
- Repository: https://github.com/BerriAI/litellm
- Docker image:
ghcr.io/berriai/litellm:main-stable
What it's good for
LiteLLM runs entirely on your own infrastructure — your data never leaves your server.
Related tools
NextChat
Cross-platform ChatGPT web UI with multi-model support for Ollama, Claude, Gemini, and more
Lobe Chat
Extensible, open-source ChatGPT alternative with plugins, knowledge base, and multi-LLM support
Open WebUI
User-friendly WebUI for LLMs (Ollama, OpenAI API)
text-generation-webui
Run local LLMs with a powerful web interface — text, vision, tool-calling, and OpenAI-compatible API
Streamlit
Build and share data apps in pure Python — fast
Gradio
Build and share delightful machine learning apps in Python