langchain-ai /langchain

The agent engineering platform.

★ 149,565⑂ 25,138👁 926⑃ 25,294● 10,658▤ 1,422
PythonMITCreated 2022-10-17docs.langchain.com/langchain/
Download: langchain-core==1.8.1langchain-core==1.8.1 ↓1.8.12026-11-15
+63
Daily
+312
Weekly
149,565
stars
25,138
forks
926
watchers
25,294
prs
10,658
issues
1,422
releases

README

The agent engineering platform.



  
  
  
  




LangChain is a framework for building agents and LLM-powered applications. It helps you chain together interoperable components and third-party integrations to simplify AI application development — all while future-proofing decisions as the underlying technology evolves.

 [!TIP]
 Just getting started? Check out Deep Agents — a higher-level package built on LangChain for agents that have built-in capabilities for common usage patterns such as planning, subagents, file system usage, and more.

 Quickstart

bash
uv add langchain


python
from langchain.chat_models import init_chat_model

model = init_chat_model("openai:gpt-5.5")
result = model.invoke("Hello, world!")


If you're looking for more advanced customization or agent orchestration, check out LangGraph, our framework for building controllable agent workflows.

For an equivalent JS/TS library, check out LangChain.js.

 [!TIP]
 For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.

 LangChain ecosystem

While the LangChain framework can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools when building LLM applications.

- Deep Agents — Build agents that can plan, use subagents, and leverage file systems for complex tasks
- LangGraph — Build agents that can reliably handle complex tasks with our low-level agent orchestration framework
- Integrations — Chat & embedding models, tools & toolkits, and more
- LangSmith — Agent evals, observability, and debugging for LLM apps
- LangSmith Deployment — Deploy and scale agents with a purpose-built platform for long-running, stateful workflows

 Why use LangChain?

LangChain helps developers build applications powered by LLMs through a standard interface for models, embeddings, vector stores, and more.

- Real-time data augmentation — Easily connect LLMs to diverse data sources and external/internal systems, drawing from LangChain's vast library of integrations with model providers, tools, vector stores, retrievers, and more
- Model interoperability — Swap models in and out as your engineering team experiments to find the best choice for your application's needs. As the industry frontier evolves, adapt quickly — LangChain's abstractions keep you moving without losing momentum
- Rapid prototyping — Quickly build and iterate on LLM applications with LangChain's modular, component-based architecture. Test different approaches and workflows without rebuilding from scratch, accelerating your development cycle
- Production-ready features — Deploy reliable applications with built-in support for monitoring, evaluation, and debugging through integrations like LangSmith. Scale with confidence using battle-tested patterns and best practices
- Vibrant community and ecosystem — Leverage a rich ecosystem of integrations, templates, and community-contributed components. Benefit from continuous improvements and stay up-

Top issues

Discussions

Latest release

langchain-core==1.8.1 langchain-core==1.8.1 2026-11-15
Changes since langchain-core==1.8.0

release(core): 1.8.1 (41855)
chore(deps): bump soupsieve from 4.0 to 4.1 in /libs/core (41850)
feat(core): per-context LangSmith gateway override via langsmith_gateway (41836)
chore(deps): bump soupsieve from 2.9 to 4.0 in /libs/core (41833)

News & coverage (20)

Hacker NewsNew: LangChain templates – fastest way to build a production-ready LLM app▲ 137 · 69 comments · 2023-11-01Hacker NewsOpen SWE: An open-source asynchronous coding agent▲ 111 · 26 comments · 2025-08-08Hacker NewsShow HN: MCPS – Cryptographic identity and message signing for MCP agents▲ 2 · 0 comments · 2026-03-13Analytics InsightLangGraph vs LangChain: Which AI Agent Framework Should You Choose?2026-09-21build.nvidia.comWhat is NemoClaw for LangChain Deep Agents Code?2026-07-08learnTutorial: Build a RAG pipeline using Azure Files with LangChain and Qdrant2026-04-22The Hacker NewsLangChain, LangGraph Flaws Expose Files, Secrets, Databases in Widely Used AI Frameworks2026-03-27irblog.prnewswire.comLangChain Announces Enterprise Agentic AI Platform Built with NVIDIA2026-03-16marktechpostLangChain Releases Deep Agents: A Structured Runtime for Planning, Memory, and Context Isolation in Multi-Step AI Agents2026-03-15SiliconANGLEAI agent tooling provider LangChain raises $125M at $1.25B valuation2025-10-20
10 moreTechCrunchLangChain is about to become a unicorn, sources say2025-07-08techtargetCompare Semantic Kernel vs. LangChain for AI development2025-02-23techtargetWhat is LangChain and how to use it: A guide2025-01-01InfoWorldA brief guide to LangChain for software developers2023-08-28InfoWorldGenerative AI with LangChain, RStudio, and just enough Python2023-08-03Pasquale PillitteriThe Open Source Stack Every AI Startup Uses: 7 GitHub Repos (With Real Star Counts)2026-08-13Pasquale Pillitteri10 Open-Source AI Agent Frameworks to Automate Your Work in 20262026-04-27The GitHub BlogSecret scanning pattern updates — March 20262026-03-10Towards Data ScienceCustom Memory for ChatGPT API2025-02-04Amazon Web Services (AWS)Quickly build high-accuracy Generative AI applications on enterprise data using Amazon Kendra, LangChain, and large language models2023-05-03

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON