LangChain: the original framework for building AI apps
LangChain is an open source framework (MIT license) that provides ready-made building blocks to connect a language model to tools, data and agents. It is often the first library a Python or TypeScript developer reaches for when moving from ChatGPT to their own AI application.
Data as of October 22, 2026
Key figures
| Developer | LangChain |
|---|---|
| Type | Code |
| Languages | Python, TypeScript |
| Open source | Yes |
| License | MIT |
| First release | October 2022 |
| Suggested level | Intermediate |
| Use cases | chatbot, RAG, workflows |
| Self-hostable | Yes |
| Business model | Freemium |
| Cloud offering | Yes |
| Multi-agent | Yes |
| MCP support | Yes |
| Bring your own model | Yes |
| Official site | Official site · Documentation · Repository |
GitHub
| Repository | langchain-ai/langchain |
|---|---|
| GitHub stars | 148,269 |
| Forks | 24,884 |
| Latest code activity | October 22, 2026 |
| Latest release | langchain-perplexity==1.4.2 (October 21, 2026) |
GitHub activity checked on October 22, 2026.
From early pioneer to agent toolkit
LangChain first shipped in October 2022, a few weeks before ChatGPT launched, and quickly became one of the first libraries for programming around a large language model. The original idea was to “chain” components (a model, a prompt, a data source, a tool) instead of wiring everything by hand.
The project has changed a lot since then. Today the company describes it as a framework for building agents and AI applications, with a standard interface for models, embeddings and vector stores. One key point: according to the official docs, LangChain agents now run on LangGraph, which gives them failure recovery, persistence and human approval steps.
What you can build with it
- An agent that decides which tools to call (search, calculations, an internal API) to finish a task.
- An assistant that answers from your own documents using RAG, retrieval-augmented generation.
- A chatbot that can move from one model provider to another without a heavy rewrite.
LangChain is available in Python and in JavaScript/TypeScript (separate repository). Its catalog of integrations with models, tools and databases is one of its biggest assets.
Getting started
The official docs suggest a three-step start: install the langchain package with your usual Python package manager, initialize a model by naming its provider and model ID, then create an agent and hand it a few tools. You will need an API key from the model provider. If you want a more autonomous agent from day one, the company now points to Deep Agents, a layer on top that adds planning and subagents.
Strengths and weaknesses
Strengths: a very broad integration ecosystem, freedom to pick your model, plenty of documentation, a natural path to LangGraph as your project grows, and LLM observability through LangSmith.
Weaknesses: the library has been reworked many times, so older tutorials often no longer match the current API; always check the date of what you are reading. The abstraction layers can also hide what is really going on, which makes debugging harder without a tracing tool. Finally, the most integrated tooling (LangSmith) is a commercial product.
Alternatives
For agents focused on working with documents, LlamaIndex is the most direct alternative. For teams of agents organized by role, take a look at CrewAI.
Frameworks of the same type
- Agno · multi-agent, workflows, RAG
- Haystack · RAG, chatbot, workflows
- Mastra · multi-agent, workflows, RAG
- Vercel AI SDK · chatbot, RAG, workflows
- Amazon Bedrock Agents / AgentCore · multi-agent, RAG, workflows
- Atomic Agents · workflows, chatbot, automation
Frequently asked questions
What is the difference between LangChain and LangGraph?
LangChain provides high-level components (models, tools, a ready-made agent), while LangGraph is the lower-level orchestration layer that LangChain agents are built on. Most people start with LangChain and drop down to LangGraph when they need precise control.
Does LangChain cost anything?
No, the framework is free and open source. The company sells LangSmith, a platform for tracing, evaluation and deployment. As of October 22, 2026, its Developer plan is free and its Plus plan is $39 per seat per month.
Does LangChain work with Claude, Gemini or Mistral?
Yes. Its core idea is a common interface across many model providers, so you can switch without rewriting your app. Each provider bills its own API usage separately.
Does LangChain support MCP?
Yes. The official docs describe Model Context Protocol support, still flagged as beta in the main package, and the company also maintains dedicated MCP adapters.
Data sources
- github.com
- github.com
- pypi.org
- docs.langchain.com
- docs.langchain.com
- langchain.com
- GitHub — Repository metadata: GitHub
Data as of October 22, 2026
Report an error
Does a figure, a date or a fact look wrong? Tell us: every report is checked.