> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-opensw-1778865734-3544a9b.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LiteLLM integrations

> Integrate with LiteLLM using LangChain Python.

> [LiteLLM](https://github.com/BerriAI/litellm) is a library that simplifies calling Anthropic, Azure, Huggingface, Replicate, etc.

## Installation and setup

<CodeGroup>
  ```bash pip theme={null}
  pip install langchain-litellm
  ```

  ```bash uv theme={null}
  uv add langchain-litellm
  ```
</CodeGroup>

## Chat models

```python theme={null}
from langchain_litellm import ChatLiteLLM
```

```python theme={null}
from langchain_litellm import ChatLiteLLMRouter
```

See more detail in the [LiteLLM chat guide](/oss/python/integrations/chat/litellm).

***

## API reference

For detailed documentation of all `ChatLiteLLM` and `ChatLiteLLMRouter` features and configurations head to the [API reference](https://reference.langchain.com/python/langchain-litellm).

***

<div className="source-links">
  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>

  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/litellm.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
