Créer, héberger et exploiter des solutions IA.

Logo LiteLLM

LiteLLM

Self-hosted LLM API gateway — route between Ollama, Anthropic and 100+ providers from a single OpenAI-compatible endpoint.

1 GB (2 GB recommended) RAM 2 vCPU Port 4000 Disponible

Stack technique

DockerPythonPostgreSQL 16
RAM minimum1 GB (2 GB recommended)
CPU minimum2 vCPU
Port par défaut4000
OS compatiblesubuntu-24.04

LiteLLM is an open-source LLM proxy that presents a unified OpenAI-compatible API for over 100 LLM providers. Your applications keep a single endpoint — and LiteLLM routes each request to Ollama on the same VPS, to Anthropic Claude, to Azure OpenAI, or to any other backend you configure — without a single line of application code changing.

Deployed on a ServOrbit VPS, LiteLLM gives your development team a private AI gateway with a built-in dashboard for usage analytics, per-key spend limits and rate limiting. It runs alongside Ollama for fully air-gapped inference, or in front of commercial APIs to centralize cost tracking across all your projects.

Fonctionnalités clés

OpenAI-compatible REST API — drop-in replacement, works with every SDK that speaks OpenAI
100+ LLM providers: Ollama, Anthropic, OpenAI, Azure, Mistral, Cohere, Bedrock and more
Per-key rate limiting and budget caps — block runaway costs in multi-team or multi-project setups
Real-time spend analytics and cost dashboard with per-model and per-key breakdowns
Load balancing and automatic failover across provider endpoints
Apache 2.0 — fully auditable, no telemetry, air-gap capable with Ollama

Quand utiliser cette solution ?

1

Multi-model AI backend

Route cost-sensitive tasks to a local Ollama instance and complex reasoning requests to Anthropic Claude — all from the same OpenAI SDK call in your application. Change the routing in the LiteLLM config, never in app code.

2

Team AI budget control

Issue virtual API keys to each team or project with a monthly spend cap. When a key hits its budget, LiteLLM returns a 429 — no surprise cloud bill at the end of the month.

3

LLM provider migration

Switch your entire application from one provider to another by updating a config file. OpenAI-compatible surface means zero application changes — migrate from GPT-4 to Llama 3 on Ollama without touching a single import.

Déployer LiteLLM sur votre VPS

Guide optimisé pour les VPS Cloud ServOrbit.

01

Provision a VPS

Order a ServOrbit VPS with at least 1 GB RAM running Ubuntu 22.04. LiteLLM itself needs around 256 MB; PostgreSQL takes most of the remaining budget. Port 4000 must be reachable, or plan a reverse proxy on 80/443.

02

Generate secrets

SSH into the VPS and run openssl rand -hex 32 to generate LITELLM_MASTER_KEY — this is your admin API key that unlocks the dashboard and all administrative endpoints. Also set strong DB credentials. Keep the master key safe.

03

Deploy with Docker Compose

Create /opt/litellm/.env with DB_NAME, DB_USER, DB_PASSWORD, LITELLM_MASTER_KEY, UI_USERNAME and UI_PASSWORD. Then create /opt/litellm/docker-compose.yml with two services: LiteLLM (ghcr.io/berriai/litellm:main-latest, port 4000) and PostgreSQL 16. Run docker compose up -d. Allow 30 seconds for first boot.

04

Open the dashboard and add your first model

Navigate to http://:4000/ui and log in with your UI_USERNAME and UI_PASSWORD. Go to Models, click Add — enter a model name like ollama/llama3.1 with base URL http://host.docker.internal:11434 to route to a local Ollama, or paste an Anthropic API key for anthropic/claude-3-5-haiku-20241022. Test with curl -H "Authorization: Bearer " http://:4000/v1/models.

05

Issue team API keys

In the dashboard under API Keys, create per-team virtual keys with optional max_budget (in USD), tpm_limit and rpm_limit. Share these keys with your developers — they point their OpenAI SDK at your LiteLLM gateway and the spend is tracked per key.

Questions fréquentes

LiteLLM is an open-source LLM proxy (Apache 2.0) that exposes a unified OpenAI-compatible API for over 100 LLM providers — Ollama, Anthropic Claude, OpenAI GPT-4, Azure OpenAI, Mistral, Cohere and more. It sits between your applications and any LLM backend, handling routing, rate limiting and cost tracking.

Créer, héberger et exploiter des solutions IA.

Activez LiteLLM sur votre infrastructure.

VPS Cloud dédié — IPv4 incluse, datacenter européen, support inclus. Vos données ne quittent jamais votre serveur.

Configuration recommandée : 1 GB (2 GB recommended) RAM · 2 vCPU

Besoin d'aide ?

Parcourez notre centre d'aide et notre FAQ, ou écrivez à notre équipe — support en anglais, français et arabe.