
LiteLLM
FreeOpen-source AI gateway for routing, monitoring, and governing LLM requests through one OpenAI-compatible API.

About LiteLLM
LiteLLM is an open-source AI gateway and LLM proxy that gives applications one OpenAI-compatible API for connecting to 140+ providers and more than 1,800 models. Platform teams can route requests, switch models without changing application code, track usage and spend, set budgets and rate limits, and add caching, guardrails, and audit controls.
The gateway is MIT-licensed and can be self-hosted in a cloud or fully air-gapped environment, including deployments using Helm, Terraform, Docker, Postgres, Redis, or Kubernetes. Enterprise features add SSO, RBAC, audit logs, SCIM, and dedicated support. Configuration and provider behavior still require technical review before production use.
Key Features
- OpenAI-compatible API for 140+ LLM providers and 1,800+ models
- Model routing, load balancing, fallbacks, and provider switching without application-code changes
- Usage and spend tracking by key, user, team, organization, model, tool, agent, and MCP
- Hard budgets, rate limits, virtual keys, and leaked-key protection
- Response and semantic caching with Redis, S3, and GCS support
- Guardrails, model access controls, prompt-injection and PII protections, and request audit logs
- Self-hosted deployment through Docker, Helm, Terraform, Postgres, Redis, and Kubernetes
Use Cases
- Providing developers with a single API for multiple commercial, cloud, internal, fine-tuned, and self-hosted models
- Routing requests across providers, regions, and keys for availability or cost control
- Tracking AI usage and assigning model costs to teams, projects, business units, agents, or MCP servers
- Enforcing team, key, organization, and model budgets before requests run
- Deploying an AI gateway in a private cloud or fully air-gapped environment
- Adding centralized authentication, access control, guardrails, and audit logging to an organization’s AI stack
Frequently Asked Questions
The LiteLLM gateway is MIT-licensed and free to self-host. An Enterprise tier adds features such as SSO, RBAC, audit logs, SCIM, and dedicated support.
Yes. LiteLLM provides one OpenAI-compatible API for connecting applications to supported model providers.
The official website states that LiteLLM supports more than 140 LLM providers and more than 1,800 models through its gateway.
Yes. It can run in your own cloud or in a fully air-gapped environment. Official deployment options include Docker, Helm, Terraform, Postgres, Redis, and Kubernetes.
The official website states that the self-hosted gateway sends no telemetry to LiteLLM. Prompts are sent only to the model providers configured by the deployment.
Yes. It supports usage and spend tracking, virtual keys, hard budgets, daily or monthly resets, rate limits, and request blocking when a configured cap is reached.
Yes. Routing features include model switching, load balancing across providers, regions, and keys, lowest-cost routing, automatic routing, and fallbacks.
The official website states that agents and MCP servers can be reached through the same gateway as LLMs.
The Enterprise tier includes SSO, RBAC, audit logs, SCIM provisioning, and dedicated support, according to the official website.
Discover your next favorite AI tool
Get handpicked AI tools, fresh launches, and practical insights delivered to your inbox.