$npx skillfedfor your agent

llama-index-llms-litellm

llama-index llms litellm integration

With conditionsPyPI Artificial IntelligenceReleased Mar 202681.3K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — llama_index_llms_litellm-0.7.1-py3-none-any.whl
v0.7.1 · released 2026-03-20 · Python <4.0,>=3.10 · 2 runtime deps: litellm, llama-index-core

Yes, if you are building with LlamaIndex and need to support multiple LLM providers without provider-specific code. The low install friction, permissive license, active maintenance status, and lack of known vulnerabilities make it a straightforward choice. Install only if you actually need multi-provider flexibility; single-provider projects may not benefit.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later and valid API keys for the LLM providers you intend to use.
  • Low install friction with just two runtime dependencies.
  • Marked active with a recent release in 2026, though repository details are not publicly available.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions.

last release 2026-03-20 (147 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 81,251 downloads/mo, #14,240 on PyPI

Verify before relying

pip install llama-index-llms-litellm

from llama_index.llms.litellm import LiteLLM
from llama_index.core.llms import ChatMessage
import os

os.environ["OPENAI_API_KEY"] = "your-key"
message = ChatMessage(role="user", content="Hello")
llm = LiteLLM("gpt-3.5-turbo")
response = llm.chat([message])
print(response)
  • Whether LiteLLM's full provider roster is accessible through this integration or only a subset
  • Performance characteristics and latency overhead of the abstraction layer
  • Whether streaming and async features work uniformly across all supported providers
Same gist for agents: .md · .json

What it is and what it does

This package bridges LiteLLM and LlamaIndex, allowing you to use multiple LLM providers through LlamaIndex's standardized interface. Instead of writing provider-specific code for OpenAI, Cohere, or other services, you instantiate a single LiteLLM object with a model identifier and call the same methods—chat, complete, stream_chat, stream_complete, and async variants—regardless of which backend you're targeting.

The integration handles the translation between LlamaIndex's message and response formats and LiteLLM's provider abstractions. You set API keys as environment variables and switch providers by changing the model string passed to the LiteLLM constructor. It supports both synchronous and asynchronous calls, as well as streaming responses.

Use it for

  • Build a RAG pipeline that can swap between OpenAI and Cohere without changing application code.
  • Prototype LLM features against multiple providers to compare cost, latency, or output quality.
  • Run LlamaIndex agents that fall back to alternative providers if one API is unavailable.
  • Implement multi-provider chat applications where users can select their preferred LLM backend.
  • Stream LLM responses in a LlamaIndex application without rewriting for each provider's API.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building with LlamaIndex and need to support multiple LLM providers without provider-specific code.

The low install friction, permissive license, active maintenance status, and lack of known vulnerabilities make it a straightforward choice. Install only if you actually need multi-provider flexibility; single-provider projects may not benefit.

Install

llama-index-llms-litellm on PyPI

Before you install

Low install friction with just two runtime dependencies. Marked active with a recent release in 2026, though repository details are not publicly available.

Requires Python 3.10 or later and valid API keys for the LLM providers you intend to use.

License in practice

MIT license permits commercial and private use with minimal restrictions.

Quickstart

pip install llama-index-llms-litellm

from llama_index.llms.litellm import LiteLLM
from llama_index.core.llms import ChatMessage
import os

os.environ["OPENAI_API_KEY"] = "your-key"
message = ChatMessage(role="user", content="Hello")
llm = LiteLLM("gpt-3.5-turbo")
response = llm.chat([message])
print(response)

Verify before relying

  • Whether LiteLLM's full provider roster is accessible through this integration or only a subset
  • Performance characteristics and latency overhead of the abstraction layer
  • Whether streaming and async features work uniformly across all supported providers

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
litellmllama-index-core
MaintenanceActively maintained 147 days since the last release
First released
Downloads81,251 / month, #14,240 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: llama_index_llms_litellm-0.7.1-py3-none-any.whl

Tags

Capabilities
litellm llama-index integrationmulti-provider llm wrapperopenai cohere unified apillm provider abstractionllamaindex litellm adapter
Topics
llm-integrationmulti-providerrag

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “litellm llama-index integration”

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also llama-index-llms-langchain · llama-index-llms-openai · llama-index-llms-openai-like · llama-index-llms-google-genai · llama-index-llms-bedrock · llama-index-llms-ollama · pandasai-litellm · llama-index-llms-azure-openai · llama-index-llms-bedrock-converse · any-llm-sdk

Further reading