qmetrics.net

LiteLLM

Open-source AI gateway and Python SDK for 100+ LLM providers

LiteLLM screenshot

LiteLLM is an open-source AI gateway for calling 100+ LLM providers in the OpenAI format. It runs as a Python SDK or self-hosted proxy with virtual keys, spend tracking, guardrails and load balancing

Overview

LiteLLM gives developers and platform teams a single interface for calling more than 100 LLM providers, including OpenAI, Anthropic, Gemini, Bedrock, Azure, Vertex AI, vLLM and Nvidia NIM. Requests use the OpenAI format, so switching providers does not require rewriting application code. It covers endpoints such as chat completions, responses, embeddings, images, audio, batches and rerank.

It can be used in two ways. The Python SDK is imported directly into application code, and a separate litellm-core distribution offers the same API without the proxy, CLI or dashboard. The AI Gateway (proxy server) is a central service for a team or organization. It adds virtual keys, SSO, per-team and per-key budgets and rate limits, spend tracking, guardrails, load balancing, fallbacks, logging and an admin dashboard.

Beyond LLM calls, the gateway can front MCP servers and A2A agents, so tools and agents are reached through the same keys and access controls. An auto-router can choose a model for each prompt. The SDK can also route Claude Code, Codex, OpenCode and other agent harnesses through the gateway, and it has helpers for evaluating agents.

LiteLLM is open source and self-hosted, including in air-gapped setups, and also offers a hosted proxy and an enterprise tier. P95 latency is 8ms at 1k requests per second, and its core includes Rust components.

Key features

  • Unified OpenAI-format API for 100+ providers
  • Python SDK and proxy server
  • Virtual keys with budgets and rate limits
  • Spend tracking per team, key and tag
  • Guardrails such as PII masking and prompt-injection checks
  • Load balancing and fallbacks
  • MCP gateway and A2A agent gateway
  • Admin dashboard with SSO, audit logs and request logs

Use cases

  • Central LLM gateway for an organization
  • Swapping model providers without code changes
  • Tracking and capping LLM spend per team
  • Exposing MCP servers and agents through one endpoint
  • Routing coding agents through a managed gateway

Does the same job as

LiteLLM doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare LiteLLM

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

★ 94.8k⟳ todayApache-2.0

Headroom

Local LLM context compression library and proxy

Headroom shrinks tool outputs, logs, JSON, and chat history before LLM calls to cut input tokens while preserving retrievable originals. It offers a Python library, proxy, MCP tools, and agent wrappers.

★ 81k⟳ yesterdayApache-2.0

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

★ 80.4k⟳ todayApache-2.0

Models

TensorFlow reference models and modeling utilities collection

The TensorFlow Model Garden hosts implementations of models and modeling solutions for TensorFlow, installable via pip as tf-models-official.

★ 77.6k⟳ 11 days agoApache-2.0