langchain
langchain-ai/langchain · Updated
The agent engineering platform.
langchain-ai/langchain is a Python repository in the AI Agents category with 148,683 stars and 24,965 forks on GitHub, released under the MIT license, last updated today.
How to install langchain in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install langchain in Claude CodeAnthropic's agentic CLI
Clone & open
bashgit clone https://github.com/langchain-ai/langchain.git cd langchain claudeLet Claude read it
Ask “/init” to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.
How to install langchain in Claude DesktopDesktop app (MCP config)
Clone the repository
bashgit clone https://github.com/langchain-ai/langchain.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install langchain in CursorAI-first code editor
Clone & open in Cursor
bashgit clone https://github.com/langchain-ai/langchain.gitIndex & chat
Open the folder — Cursor indexes it automatically. Use @Codebase in chat to ask about it or scaffold from it.
How to install langchain in Codex CLIOpenAI coding agent
Clone
bashgit clone https://github.com/langchain-ai/langchain.gitPoint Codex at it
Run codex in the repo root; add setup notes to AGENTS.md so the agent knows how to build & test.
How to install langchain in WindsurfCodeium's agentic IDE
Clone & open
bashgit clone https://github.com/langchain-ai/langchain.gitUse Cascade
Windsurf indexes the workspace; ask Cascade to explain or reuse modules from the repo.
How to install langchain in ClineVS Code autonomous agent
Clone the repository
bashgit clone https://github.com/langchain-ai/langchain.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install langchain in VS CodeCopilot / MCP support
Clone the repository
bashgit clone https://github.com/langchain-ai/langchain.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
Documentation
Full READMEThe 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](https://docs.langchain.com/oss/python/deepagents/) — 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
uv add langchainfrom 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](https://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.
More AI Agents repositories
- AI Agents265k
deepseek-harness
DeepSeek Harness: Everything is a Plugin.
TypeScriptMITdeepseek-ai/deepseek-harness
- AI Agents258k
hermes-agent
The agent that grows with you
PythonMITNousResearch/hermes-agent
- AI Agents197k
firecrawl
Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScriptAGPL-3.0firecrawl/firecrawl
- AI Agents180k
ponytail
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
JavaScriptMITDietrichGebert/ponytail
- AI Agents110k
orca
Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScriptMITstablyai/orca
- AI Agents109k
gemini-cli
An open-source AI agent that brings the power of Gemini directly into your terminal.
TypeScriptApache-2.0google-gemini/gemini-cli
Catalog data refreshed . Something wrong? Report it.