Must have
Installation requirements
- PostgreSQL is required for virtual keys, teams, users and spend tracking.
Application hosting
LiteLLM Proxy is an AI gateway that puts one OpenAI-compatible API in front of many model providers, with virtual keys, budgets and spend tracking. It routes requests to models hosted elsewhere, so it needs CPU and memory, not a GPU.
Requirements last checked against the project's documentation.
A sensible first server for LiteLLM Proxy is 2 vCPU, 8 GB RAM and 20 GB of storage. The cheapest listed plan that fits is OVHcloud VPS-2 (US) at $8.50/month.
Find the software and services needed to run the application.
See requirementsPlan memory, storage and CPU for the way you will use it.
Open resource plannerCompare plans for the starting size, then review the provider and billing terms.
See plansMust have
Recommended
Size by worker count: LiteLLM gives each worker 1 vCPU and 4 GiB of memory. Model inference happens at the providers it routes to, outside this server budget.
Where to start
LiteLLM's production guide sizes 1 vCPU and 4 GiB per worker and, on a single VM, one worker per vCPU, so a 2 vCPU server runs two workers in 8 GB. Running PostgreSQL on the same server and the disk size are our estimates.
LiteLLM production best practices · Size it for your workload
Our shortlist
One cheapest plan per provider, based on each provider's standard list price. Check the plan page for introductory and renewal pricing before you buy.
Deploy with
The host must provide
Storage
The proxy itself is stateless. Keys, teams, spend logs and models added in the Admin UI live in PostgreSQL, so size and back up the database; spend logs grow with request volume.
Step by step
Set LITELLM_MASTER_KEY (it must start with sk-) and a long random LITELLM_SALT_KEY in a secret store. The salt key encrypts stored provider credentials and cannot be changed after you add models.
Official instructionsPoint DATABASE_URL at PostgreSQL, give each worker 1 vCPU and 4 GiB, and cap the database connection pool so all workers together stay within what PostgreSQL accepts.
Official instructionsRun a single instance until you need more; a second instance needs Redis for rate limits and router state.
Official instructionsSecurity
Cost
Want the full monthly bill? Use the hosting cost calculator. Add storage, backups and other costs to your estimate.