BerriAI/litellm - GitHub screenshot

BerriAI/litellm - GitHub

By Berrie AI Incorporated
Developer ToolsOpen source / self-hosted

LiteLLM: AI gateway, Python SDK and model-spend controls

Last updated Sep 12, 2026

Claim Tool

What is BerriAI/litellm - GitHub?

LiteLLM is an AI gateway and Python SDK from Berrie AI Incorporated, published in the BerriAI GitHub repository. The SDK provides a common interface for model calls inside Python applications. The proxy gateway centralizes access for a team, with virtual keys, model routing, spend tracking, budgets and an administration interface. The official documentation lists support for more than 100 model providers. Supported endpoints and features vary by integration, so verify your model’s streaming, tool-calling, image, audio or embedding requirements. The router supports retries, fallbacks and load balancing; observability integrations can send request data to tools such as Langfuse, LangSmith and OpenTelemetry. LiteLLM also provides an MCP gateway. It can connect upstream servers using Streamable HTTP, SSE or stdio, expose tools through a fixed gateway endpoint, and scope access by key, team or organization. This requires configuring the upstream servers and authentication; the gateway does not automatically grant access to third-party tools. Agent-to-agent integrations are documented separately. The open-source offering has no software license fee for self-hosting. Code outside the enterprise directory is MIT-licensed, while enterprise code has separate terms. Enterprise pricing is quoted by annual gateway request capacity, deployment architecture and support needs, rather than a per-token license charge. Model-provider charges and infrastructure costs still apply. Enterprise adds controls and support such as SSO, SCIM, audit logs and service-level agreements. Compare New API for another self-hosted gateway with provider-channel management and usage accounting. Evaluate a representative workload, inspect request logging and secret handling, test budget and failure behavior, and decide whether SDK integration or a shared gateway best fits your application.

BerriAI/litellm - GitHub's Top Features

Key capabilities that make BerriAI/litellm - GitHub stand out.

Python SDK for direct application integration

Shared AI proxy gateway and administration UI

More than 100 documented model-provider integrations

Virtual keys, users, teams, budgets and rate limits

Spend tracking and observability integrations

Router retries, fallbacks and load balancing

MCP gateway for Streamable HTTP, SSE and stdio upstreams

Key, team and organization MCP permissions

Separate enterprise identity, audit and support features

Use Cases

Who benefits most from this tool.

Developers

Integrate model calls through the Python SDK or a shared proxy gateway.

Enterprises

Evaluate centralized model access, spending controls and the separate enterprise offering.

Startups

Compare SDK integration with a self-hosted gateway as AI usage grows.

Educational Institutions

Manage authorized model access for research and learning applications with appropriate access and data controls.

Open Source Communities

Inspect, contribute to or adapt the open-source gateway within its license terms.

Teams

Manage shared model access and budgets for application projects.

DevOps Professionals

Deploy and observe a gateway, testing retries, limits and recovery behavior.

Security Experts

Review gateway authentication, secret handling, logging and MCP permissions.

CI/CD Specialists

Use the SDK or gateway in model-evaluation workflows and validate deployment changes before release.

Educators

Demonstrate model integration and API behavior while protecting student data and checking outputs.

Tags

AI gatewayPython SDKLLM routingMCP gatewayvirtual keysAI budgetsself-hosted

BerriAI/litellm - GitHub's Pricing

Open source / self-hosted

The open-source gateway is free to self-host with no software license fee. Enterprise is separately quoted; upstream model usage and infrastructure remain separate costs.

Open Source

No software license fee

Self-hosted gateway and SDK

  • Model integrations, virtual keys, spend tracking, budgets, rate limits and logging.

Enterprise

Request pricing

Annual gateway capacity, architecture and support needs

  • Additional identity, audit and support features; enterprise code has separate licensing.

Watch-outs

  • MIT licensing applies outside the enterprise directory; read the repository license boundary.
  • A free software license does not make hosted infrastructure or model calls free.
  • Self-hosting controls the gateway location; configured upstream providers and logging integrations can still receive requests or data.

Top BerriAI/litellm - GitHub Alternatives

User Reviews

Share your thoughts

If you've used this product, share your thoughts with other builders

Recent reviews

Frequently Asked Questions

What is the difference between the LiteLLM SDK and proxy?
The Python SDK runs inside your application. The proxy is a shared gateway for centralized keys, routing, spend tracking and administration.
Is LiteLLM free?
The open-source offering has no software license fee for self-hosting. Hosting, operations and upstream model usage can still cost money; Enterprise is quoted separately.
What license does LiteLLM use?
The repository licenses code outside the enterprise directory under MIT. The enterprise directory has its own license terms.
Can LiteLLM set budgets and rate limits?
Yes. The open-source pricing page lists virtual keys, users, teams, spend tracking, budgets and rate limits. Test the configured limits for your workload.
Does LiteLLM support MCP?
Yes. Its MCP gateway supports upstream Streamable HTTP, SSE and stdio servers, with access controls by key, team and organization. Configure each upstream’s authentication and permissions.
How is LiteLLM Enterprise priced?
The public pricing page describes annual gateway request capacity, deployment architecture and support needs as the pricing basis. Request a quote; this license pricing does not replace model-provider charges.
Does self-hosting LiteLLM keep all requests offline?
No. The gateway runs in your environment, but cloud model providers, MCP servers and observability integrations may receive data according to your configuration.