https://github.com/langchain-ai/langchain
The agent engineering platform
https://github.com/langchain-ai/langchain
agents ai ai-agents anthropic chatgpt deepagents enterprise framework gemini generative-ai langchain langgraph llm multiagent open-source openai pydantic python rag
Last synced: 17 days ago
JSON representation
The agent engineering platform
- Host: GitHub
- URL: https://github.com/langchain-ai/langchain
- Owner: langchain-ai
- License: mit
- Created: 2022-10-17T02:58:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2026-04-24T19:01:25.000Z (about 1 month ago)
- Last Synced: 2026-04-24T19:02:58.516Z (about 1 month ago)
- Topics: agents, ai, ai-agents, anthropic, chatgpt, deepagents, enterprise, framework, gemini, generative-ai, langchain, langgraph, llm, multiagent, open-source, openai, pydantic, python, rag
- Language: Python
- Homepage: https://docs.langchain.com/langchain/
- Size: 518 MB
- Stars: 134,788
- Watchers: 857
- Forks: 22,281
- Open Issues: 548
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
- Codeowners: .github/CODEOWNERS
- Agents: AGENTS.md
Awesome Lists containing this project
- awesome_open_llms - langchain
- awesome-openclaw-money-maker - **LangChain** - Framework for context-aware reasoning applications. (AI Agent Frameworks / General Agent Frameworks)
- awesome-x-ops - LangChain - powered applications, including agent workflow orchestration. (Agentic Workflow)
- awesome-ai-sdks - GitHub
- awesome-ai-agent - langchain-ai/langchain
- awesome-systematic-trading - LangChain - ai/langchain?style=social) - Building applications with LLMs through composability (Basic Components / Fundamental libraries)
- awesome-mlops - LangChain
- awesome-llm - LangChain - ai/langchain?style=social) |  | (🏆 State-of-the-Art Repositories / 🥇 Must-Star Repositories)
- awesome-ml-python-packages - LangChain
- Awesome-Tool-Learning - LangChain - ai/langchain) (📱 Applications / 🧪 Evalution)
- awesome-openai - LangChain - Framework for building LLM-powered applications with modular components. (Libraries & SDKs / Frameworks & Tools)
- ai-game-devtools - LangChain
- awesome-llm-json - LangChain
- awesome-github-projects - langchain - The agent engineering platform. ⭐138,248 `Python` 🔥 (🤖 AI & Machine Learning)
- awesome-opensource-ai - LangChain - Foundational library for agents, chains, and memory.  (4. Agentic AI & Multi-Agent Systems)
- awesome-mistral - LangChain
- awesome - LangChain - The standard framework for building LLM-powered applications. Enables developers to create applications with large language models using standardized components. ([Read more](/details/langchain.md)) `Open Source` `Llm` `Framework` (Machine Learning & AI)
- awesome-ai - LangChain
- Awesome-AI-Agents - langchain - ⚡ Building applications with LLMs through composability ⚡  (Frameworks / Advanced Components)
- awesome-sentiment-analysis - LangChain
- awesome-ccamel - langchain-ai/langchain - The agent engineering platform. Available in TypeScript! (Python)
- awesome-langchain-zh - LangChain - ai/langchain?style=social): 原始的🐍 (LangChain框架)
- awesome-ai-ml-testing - LangChain Evaluation Framework - Testing framework for LLM applications. (🤖 LLM & Chatbot Testing)
- awesome-genai - Langchain - Build context-aware reasoning applications. [](https://github.com/langchain-ai/langchain/network/members) [](https://github.com/langchain-ai/langchain/stargazers) (Tools & Frameworks / Development Frameworks)
- awesome-llm-and-aigc - LangChain
- awesome-generative-ai-data-scientist - LangChain
- awesome-ai - **LangChain**
- awesome-ai-papers - [LangChain - rag/)\]\[[LangChain Hub](https://smith.langchain.com/hub)\]\[[LangGraph](https://github.com/langchain-ai/langgraph)\]\[[LangGraph 101](https://github.com/langchain-ai/langgraph-101)\]\[[executive-ai-assistant](https://github.com/langchain-ai/executive-ai-assistant)\] (NLP / 3. Pretraining)
- best-of-ai-open-source - GitHub - 3% open · ⏱️ 07.01.2025): (LLM Frameworks & Libraries)
- awesome-LLM-resources - LangChain - aware reasoning applications. (推理 Inference)
- awesome-multimodal-search - GitHub
- awesome-ai-agents - LangChain
- alan_awesome_llm - LangChain - aware reasoning applications. (推理 Inference)
- awesome-engineering - Langchain
- awesome-data-analysis - LangChain - Framework for developing applications powered by language models. (🧠 AI Applications & Platforms / Tools)
- frontend-development-resources - LangChain - LLM App Framework
- awesome-data-engineer - LangChain
- redis-ai-resources - LangChain Python
- Awesome-LLM4Security - langchain - 6B的微调模型对该事件进行分类。然后,根据分类后的结果,使用对应的prompt模板对ChatGLM-pro大模型进行请求,大模型根据向量库中的知识以及自身的逻辑推理能力,生成该类事件的分析研判流程。接着,Agent 根据事件的分析研判流程通过调用工具、访问大模型、请求网络等方式来对该事件进行研判。最后,根据分析的结果输出研判结论以及形成对应的研判报告。 | [AutoMSS](https://github.com/1700111005/autoMSS) | (资源列表 / 项目)
- awesome-agents - LangChain - Framework for developing applications powered by language models with chains, agents, and retrieval. (Frameworks)
- awesome-ai - LangChain - LangChain is a framework for developing applications powered by large language models (LLMs). (Agent)
- awesome-ChatGPT-repositories - langchain - 🦜🔗 Build context-aware reasoning applications (Langchain)
- awesome-hacking-lists - langchain-ai/langchain - 🦜🔗 Build context-aware reasoning applications (Jupyter Notebook)
- awesome-production-machine-learning - LangChain - ai/langchain.svg?style=social) - LangChain assists in building applications with LLMs through composability. (Industry Strength Natural Language Processing)
- awesome-docker - langchain-ai/langchain
- Awesome-AITools - Github - ai/langchain?style=social)|免费| (精选文章 / GPT-LLMs应用)
- awesome-ai-agents-2026 - LangChain
- awesome_ai_agents - LangChain Agents - Build context-aware reasoning applications. (Building / Frameworks)
- awesome-harness-engineering - langchain-ai/langchain
- awesome-openai - LangChain
- awesome-langchain - LangChain GitHub - source repo. (Official Resources)
- Awesome-Long-Chain-of-Thought-Reasoning - LangChain
- awesome-local-ai - LangChain - LLM application framework (AI Agents / Frameworks)
- awesome - langchain-ai/langchain - The agent engineering platform (Python)
- A-to-Z-Resources-for-Students - LangChain + OpenAI Agent Playground
- jimsghstars - langchain-ai/langchain - 🦜🔗 Build context-aware reasoning applications (Jupyter Notebook)
- awesome-agent-papers - LangChain
- awesome-ai-agent-testing - LangChain - **15k+ stars** - Framework for developing applications powered by language models with extensive testing utilities. (Testing Frameworks / Open Source Frameworks)
- awesome-refreshing-llms - LangChain
- AiTreasureBox - langchain-ai/langchain - 11-09_119220_30](https://img.shields.io/github/stars/langchain-ai/langchain.svg)|⚡ Building applications with LLMs through composability ⚡| (Repos)
- awesome-manus - LangChain Tools - Framework for LLM applications with tool integration (Tool Integration / LangManus)
- awesome-ai-tools - LangChain - powered agents and chains. Extensive integrations. Raised $125M at $1.25B valuation (Oct 2025). MIT. (Other AI Agents / Multi-Agent / Orchestration Frameworks)
- awesome-python - LangChain - Building applications with LLMs through composability. (Machine Learning)
- Awesome-LLMOps - LangChain - aware reasoning applications.    (Orchestration / Workflow)
- awesome-prompts - LangChain
- awesome-prompt-engineering - LangChain - Framework for developing LLM applications (Tools & Frameworks / Prompt Testing & Optimization)
- awesome-ai - 🔗
- my-awesome - langchain-ai/langchain - agents,anthropic,chatgpt,deepagents,enterprise,framework,gemini,generative-ai,langchain,langgraph,llm,multiagent,open-source,openai,pydantic,python,rag,typescript pushed_at:2026-05 star:136.8k fork:22.6k The agent engineering platform. (Python)
- Awesome-RAG - LangChain - ai/langchain?style=flat)](https://github.com/langchain-ai/langchain/stargazers) | (Libraries/Frameworks)
- stars - langchain-ai/langchain - 🦜🔗 Build context-aware reasoning applications (Python)
- awesome-vibe-coding - LangChain
- awesome-llm-prod - LangChain - ai|RAG, Structured-Output, Chatbots, Agents|LangChain is a framework for developing applications powered by LLMs| (3. **Real-World Applications**)
- Awesome-RAG-Production - LangGraph
- Ultimate-AI-Resources - LangChain
- awesome-vision-ai-stack - LangChain - Orchestration stack with multimodal integrations. (Applications and Demos / Useful open projects)
- awesome-agents - langchain - aware reasoning applications | framework | 107,188 | 17,419 | 326 | 476 | 0 days, 8 hrs, 0 mins | 885 | MIT License | (Table of Open-Source AI Agents Projects)
- fucking-awesome-python - LangChain - Building applications with LLMs through composability. (Machine Learning)
- awesome-ai - Langchain - ai/langchain) | (LLMs Framework)
- awesome-ai-agents - langchain-ai/langchain - LangChain is a versatile framework for building and deploying applications powered by large language models, offering interoperability, real-time data integration, and advanced agent orchestration capabilities. (AI Agent Frameworks & SDKs / Orchestration Frameworks)
- awesome-product-cli - LangChain CLI - Scaffold LangChain projects, manage templates, and deploy LangServe apps. (Other)
- awesome-local-llm - langchain - build context-aware reasoning applications (Tools / Agent Frameworks)
- awesome-llm-tools - LangChain
- awesome-github-star - langchain - ai | 63463 | (Python)
- awesome-agent-skills - langchain-ai/langchain - Core framework.  (LangChain Tools / Meta)
- llmops - LangChain - ai/langchain?style=flat-square) | (Orchestration / Application Frameworks)
- awesome-ai-agents - LangChain
- Awesome-Prompt-Engineering - GitHub - ai/langgraph) | (Tools and Code / Agent Frameworks)
- awesome-agent-cortex - LangChain - Composable framework for building LLM-powered applications. (Agent Frameworks)
- my-awesome-starred - langchain-ai/langchain - The agent engineering platform. (Python)
- awesome - langchain-ai/langchain - The agent engineering platform. (Python)
- awesome-blockrun - LangChain
- awesome-ai-agents - LangChain - ai/langchain) | Tool integration, memory management, agent chaining | (🌟 Core Frameworks)
- awesome-rag-study - LangChain
- awesome - langchain-ai/langchain - The agent engineering platform. (Python)
- awesome-cli-agentic-tools - LangChain
- awesome-prediction-markets - LangChain - prediction-market-agent). (Agent Frameworks & Examples / Frameworks)
- awesome-generative-ai-meets-julia-language - LangChain - The best option for building applications on top of LLMs (eg, Chains, Agents). It has a lot of adapters for common models, databases, and other services. (Must-Know Python Projects / Generative AI - Previous Generation)
- awesome-rag - LangChain
- awesome-workflow-automation - LangChain
- awesome - LangChain
- awesome - langchain-ai/langchain - The agent engineering platform. (Python)
- awesome-offensive-mcp - **LangChain**
- Awesome-GitHub-Repo - LangChain - 构建大语言模型应用的事实标准框架,提供链式调用、记忆管理、工具集成等核心能力,支持Python和JavaScript。 (AI开源项目 / AI Agent)
- awesome-telco-ai - LangChain - Framework for developing LLM-powered applications (AI Tools and Frameworks / Training Datasets)
- awesome-deep-research - LangChain - A framework for building applications powered by large language models, with components for research workflows. (🤖 Agent Technologies for Research / 🛠️ Agent Frameworks)
- awesome-production-llm - langchain - ai/langchain.svg?style=social) Build context-aware reasoning applications (LLM Application / RAG)
- awesome-ai-mexico - LangChain
- awesome-vibe-coding - LangChain - Build LLM apps. (Open Source Projects / Frameworks & Libraries)
- awesome-email-agents - langchain-community email tools - community (Framework Integrations / LangChain)
- awesome-ai-coding-agent-tools - LangChain - High-level framework for building LLM applications with provider-agnostic tool calling. (Agent SDKs & Frameworks / Orchestration Frameworks)
- awesome-open-source-ai-tools - langchain-ai/langchain - 🦜🔗 Build context-aware reasoning applications (Chatbots & Virtual Companions)
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](http://docs.langchain.com/oss/python/deepagents/)** — a higher-level package built on LangChain for agents that have built-in capabilites for common usage patterns such as planning, subagents, file system usage, and more.
## Quickstart
```bash
pip install langchain
# or
uv add langchain
```
```python
from langchain.chat_models import init_chat_model
model = init_chat_model("openai:gpt-5.4")
result = model.invoke("Hello, world!")
```
If you're looking for more advanced customization or agent orchestration, check out [LangGraph](https://docs.langchain.com/oss/python/langgraph/overview), our framework for building controllable agent workflows.
For an equivalent JS/TS library, check out [LangChain.js](https://github.com/langchain-ai/langchainjs).
> [!TIP]
> For developing, debugging, and deploying AI agents and LLM applications, see [LangSmith](https://docs.langchain.com/langsmith/home).
## 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](http://docs.langchain.com/oss/python/deepagents/)** — Build agents that can plan, use subagents, and leverage file systems for complex tasks
- **[LangGraph](https://docs.langchain.com/oss/python/langgraph/overview)** — Build agents that can reliably handle complex tasks with our low-level agent orchestration framework
- **[Integrations](https://docs.langchain.com/oss/python/integrations/providers/overview)** — Chat & embedding models, tools & toolkits, and more
- **[LangSmith](https://www.langchain.com/langsmith)** — Agent evals, observability, and debugging for LLM apps
- **[LangSmith Deployment](https://docs.langchain.com/langsmith/deployments)** — 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-to-date with the latest AI developments through an active open-source community
- **Flexible abstraction layers** — Work at the level of abstraction that suits your needs — from high-level chains for quick starts to low-level components for fine-grained control. LangChain grows with your application's complexity
---
## Documentation
- [docs.langchain.com](https://docs.langchain.com/oss/python/langchain/overview) – Comprehensive documentation, including conceptual overviews and guides
- [reference.langchain.com/python](https://reference.langchain.com/python) – API reference docs for LangChain packages
- [Chat LangChain](https://chat.langchain.com/) – Chat with the LangChain documentation and get answers to your questions
**Discussions**: Visit the [LangChain Forum](https://forum.langchain.com) to connect with the community and share all of your technical questions, ideas, and feedback.
## Additional resources
- [Contributing Guide](https://docs.langchain.com/oss/python/contributing/overview) – Learn how to contribute to LangChain projects and find good first issues.
- [Code of Conduct](https://github.com/langchain-ai/langchain/?tab=coc-ov-file) – Our community guidelines and standards for participation.
- [LangChain Academy](https://academy.langchain.com/) – Comprehensive, free courses on LangChain libraries and products, made by the LangChain team.