# LangChain

CreateWithAI Hub page: https://createwithaihub.com/open-source/langchain
Latest version of this file: https://createwithaihub.com/open-source/langchain.md

- Type: Library · Category: Libraries & Open Source
- Publisher: LangChain
- Pricing: Free · License: MIT
- Runs on: macOS, Windows, Linux

Open-source framework for building LLM agents and apps with a standard interface across model providers.

LangChain is a framework for building agents and LLM-powered applications by combining interoperable components and third-party integrations. It provides create_agent, a configurable agent harness built on LangGraph, plus a standard interface for chat models, embeddings and vector stores across providers. It pairs with LangSmith for tracing and evaluation, and a JavaScript/TypeScript version is maintained separately.

Useful for: Building a tool-using agent or RAG application that can switch between model providers without rewriting code.

## Key features

- create_agent harness for model, tools, prompt and middleware
- Standard interface for chat models and embeddings across providers
- Large library of integrations (models, tools, vector stores, retrievers)
- Agents built on LangGraph for persistence and human-in-the-loop
- Tracing and evaluation via LangSmith
- Separate LangChain.js for JavaScript/TypeScript

## Connection

- Language: Python
- Focus: LLM orchestration

## Before you start

- Python 3.11 or later

## Install steps from the official documentation

Install with uv:

```
uv add langchain
```

Install with pip (with OpenAI integration):

```
pip install -qU langchain "langchain[openai]"
```

## Official links

- Website: https://www.langchain.com
- Source repository: https://github.com/langchain-ai/langchain
- Documentation: https://docs.langchain.com/oss/python/langchain/overview
- Source: https://github.com/langchain-ai/langchain (Description, quickstart install, ecosystem; MIT; not archived)
- Source: https://docs.langchain.com/oss/python/langchain/overview (create_agent, provider interface, LangGraph and LangSmith relationship, pip install example)
- Source: https://github.com/langchain-ai/langchain/blob/master/libs/langchain_v1/pyproject.toml (langchain 1.5.2; requires-python >=3.11.0,<4.0.0)
- Source: https://docs.langchain.com/oss/python/langchain/install (pip install -U langchain / uv add langchain; page says Python 3.10+)
