LiteLLM Proxy — Air-Gapped Production Image
2.0K
OpenAI-compatible API proxy for routing requests to multiple LLM providers. Fully self-contained: every runtime binary, tokeniser encoding, and data file is baked in at build time. Safe to run behind a corporate firewall with no egress except to your configured LLM API endpoints.
docker build -t litellm-proxy docker/litellm/
docker run -p 4000:4000 \
-e LITELLM_MASTER_KEY=sk-your-key \
-e OPENAI_API_KEY=sk-... \
-e ANTHROPIC_API_KEY=sk-... \
-v $(pwd)/litellm_config.yaml:/app/config.yaml \
litellm-proxy:latest
| Variable | Required | Description |
|---|---|---|
LITELLM_MASTER_KEY | Yes | Master API key for proxy authentication |
OPENAI_API_KEY | Per config | OpenAI API key |
ANTHROPIC_API_KEY | Per config | Anthropic API key |
AZURE_API_BASE | Per config | Azure OpenAI endpoint |
AZURE_API_KEY | Per config | Azure OpenAI key |
DATABASE_URL | No | PostgreSQL URL for persistent state |
REDIS_HOST / REDIS_PORT / REDIS_PASSWORD | No | Redis for caching |
| Endpoint | Description |
|---|---|
GET /health | Health check (requires auth) |
POST /v1/chat/completions | OpenAI-compatible chat completions |
POST /v1/completions | OpenAI-compatible completions |
POST /v1/embeddings | OpenAI-compatible embeddings |
GET /v1/models | List available models |
Mount your corporate root CA at /etc/ssl/certs/corporate-ca.crt or set:
-e SSL_CERT_FILE=/etc/ssl/certs/corporate-ca.crt
-e REQUESTS_CA_BUNDLE=/etc/ssl/certs/corporate-ca.crt
-e NODE_EXTRA_CA_CERTS=/etc/ssl/certs/corporate-ca.crt
The default config is at /app/config.yaml inside the image. Override it
with a volume mount or Helm configmap. See litellm_config.yaml for the
full example with all supported providers.
Extract the bundled Helm chart:
docker cp $(docker create --name tmp litellm-proxy):/chart ./chart && docker rm tmp
Content type
Image
Digest
sha256:3f163adc5…
Size
168.2 MB
Last updated
4 months ago
docker pull n8500x/litellm-proxy