LiteLLM

One API for 100+ LLM providers
LLM / RAG frameworkLLM gateway / SDKMITCloud-optionalPythonBeginner
OSAI Pulse ⓘ ★★★★★★★★★★ /100 signals tracked
🐳 Docker pulls 📦 PyPI downloads / month 📦 npm downloads / month 🚀 Latest release ·
Visit website →View on GitHub

What is LiteLLM?

LiteLLM is a gateway and SDK that exposes 100+ LLM providers behind the OpenAI format, adding routing, fallbacks, budgets and observability.

Why people choose LiteLLM

LiteLLM at a glance

CategoryLLM / RAG framework
TypeLLM gateway / SDK
LicenseMIT
Runs locallyCloud-optional
Built withPython
Skill levelBeginner
Best forteams standardizing on one LLM interface

Open-source alternatives to LiteLLM

Other open-source llm / rag framework tools worth comparing:

LangChainCompose chains, tools and agentsLlamaIndexThe data framework for RAGHaystackProduction pipelines for search and RAGDSPyProgram — not prompt — language modelstxtaiAll-in-one embeddings databaseRAGFlowDeep-document-understanding RAGSemantic KernelMicrosoft's enterprise agent frameworkGraphRAGRAG that builds a knowledge graph firstInstructorReliable structured outputs from LLMsOutlinesGuarantee valid JSON and grammarsGuidanceInterleave control and generationLLMWareEnterprise RAG with small specialised modelsFlashRankUltra-light reranking for better RAGSentence TransformersThe standard way to make embeddingsRagasMeasure whether your RAG is any goodPromptfooUnit tests for your promptsLangfuseSee what your LLM app actually didPhoenixTrace, evaluate and debug LLM apps

LiteLLM head-to-head

LiteLLM vs LangChainLiteLLM vs LlamaIndexLiteLLM vs HaystackLiteLLM vs DSPyLiteLLM vs txtaiLiteLLM vs RAGFlowLiteLLM vs Semantic KernelLiteLLM vs GraphRAGLiteLLM vs InstructorLiteLLM vs OutlinesLiteLLM vs GuidanceLiteLLM vs LLMWareLiteLLM vs FlashRankLiteLLM vs Sentence TransformersLiteLLM vs RagasLiteLLM vs PromptfooLiteLLM vs LangfuseLiteLLM vs Phoenix

FAQ

Is LiteLLM free?

LiteLLM is free and open-source (MIT license), so you can use, self-host and modify it at no cost.

Can I run LiteLLM locally?

LiteLLM can be used locally or in the cloud depending on your setup.

What is the best alternative to LiteLLM?

Popular open-source alternatives include LangChain, LlamaIndex, Haystack. See the comparisons above to choose.

Explore more open-source AI

Browse the full directory of open-source AI tools, models and projects — updated daily.

Browse all tools →