This is an early release preview. You may encounter bugs.
LiteLLM logo
Unclaimed

Tool inference

LiteLLM

Open-source AI gateway exposing 100+ LLM providers through one OpenAI-compatible interface, as a Python SDK or self-hosted proxy

A+ 92/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
No votes yet

01 / About

What LiteLLM is.

LiteLLM is an AI gateway that exposes more than 100 large language model (LLM) providers — OpenAI, Anthropic, Gemini, Bedrock, Azure, and others — through a single interface that follows the OpenAI request and response format. You can use it as a Python SDK inside your own code or deploy the proxy server as a central gateway for a team or organization.

The SDK gives you the completion() call with a consistent output shape regardless of provider, OpenAI-compatible exceptions, a Router that retries and falls back across multiple deployments, and observability callbacks for services such as Lunary, MLflow, and Langfuse. The proxy adds virtual keys, per-project and per-user spend tracking, guardrails, caching, load balancing, and an admin dashboard.

Beyond chat completions, the gateway routes Agent2Agent (A2A) calls to agents built on LangGraph, Vertex AI Agent Engine, Azure AI Foundry, Bedrock AgentCore, and Pydantic AI, and bridges Model Context Protocol (MCP) servers so their tools can be called from any model via /chat/completions or from IDEs such as Cursor.

Supported endpoints include /chat/completions, /responses, /messages, /embeddings, /images, /audio, /batches, /rerank, and /a2a, with per-provider coverage varying by endpoint. Published Terraform modules deploy the componentized stack (gateway, backend, UI, managed Postgres, Redis, object store) on AWS (ECS Fargate, Aurora, ElastiCache) or GCP (Cloud Run, Cloud SQL, Memorystore), and Docker images are signed with cosign.

Features

  • Unified API: one OpenAI-format interface across 100+ providers, so switching providers does not require rewriting call sites
  • Python SDK: direct library use with a Router for retry and fallback across deployments, application-level load balancing, and cost tracking
  • AI gateway (proxy): a self-hosted service with authentication, virtual keys, multi-tenant spend management, per-project logging, guardrails, and caching
  • Admin dashboard: a UI for monitoring usage and managing keys, models, and settings
  • A2A agent gateway: register agents and call them through the proxy with the A2A SDK, using virtual keys for access
  • MCP gateway: load MCP server tools in OpenAI tool format in the SDK, or register MCP servers on the proxy and call their tools from any model
  • Endpoint coverage: chat, responses, messages, embeddings, images, audio transcription and speech, moderation, batches, and rerank
  • Observability callbacks: logging integrations for Lunary, MLflow, Langfuse, and others
  • Terraform deployment: registry modules for AWS and GCP that provision the gateway, backend, UI, database, cache, and secret storage
  • Stable releases: Docker images tagged -stable pass a 12-hour load test before publication
  • Signed images: every GHCR image is signed with cosign and verifiable against a pinned public key

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

03 / Build

Build with LiteLLM.

Browse the catalogue for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get LiteLLM →

Browse the catalogue