
Library LangChain
LangChain
Open-source framework for building LLM agents and apps with a standard interface across model providers.
What it is
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.
What it's 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
How to use it
Before you start
- Python 3.11 or later
uv add langchainpip install -qU langchain "langchain[openai]"Commands are copied from the official documentation. Check the docs for the latest version before running them.
Alternatives
Open-source Python framework for building LLM agents, event-driven workflows and RAG over your own data.
deepset's open-source Python framework for building RAG pipelines and agent workflows with explicit control over context.
Stanford NLP framework for programming language-model pipelines in Python and optimizing their prompts and weights.
MCP servers for this
MCP reference server that gives an AI client controlled read/write access to chosen local directories.
Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.
Community MCP server and Blender addon that let an AI agent model, light and render scenes in a running Blender.
Skills for this
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.
Related resources
Open-source Python library for building AI agents that browse and act on websites, with an optional hosted cloud.
OpenAI's Apache-2.0 open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, for local and self-hosted use.
Coding agent that runs each thread in a cloud sandbox, with a CLI, web, desktop and mobile apps.
Anthropic's family of proprietary large language models (Opus, Sonnet, Haiku tiers) for reasoning, coding and agents.