The open source stack for building agents
Start with proven agent patterns when speed matters and drop down to lower-level primitives when you need more control.




Three layers for building reliable agents
Three layers of one open source stack, each with adifferent balance of abstraction and control. And they compose - use any layer inside another, as a workflow, tool, or subagent.
Trusted by the largest builder community in AI
Three ways to build,
from full harness to full control
Each package solves a different problem. Choose whereyou want to start, then compose the rest ofthestack around it.
Agents for complex, multistep tasks
Deep Agents is the production-ready harness for long-running work like research, coding, and multi-step workflows. It gives agents the patterns they need to plan, delegate to subagents, manage context, use memory, and work with tools, skills, filesystems, and sandboxes. Start here when you want a capable agent out of the box.
Use Deep Agents when you need to:
- Give agents memory, tools, skills, and filesystem access
- Delegate work to subagents with isolated context
- Manage long context without building summarization and offloading yourself
- Run agents in controlled execution environments
- Customize a powerful harness without starting from scratch

Own harness with framework primitives
LangChain is the framework layer for building agents. It provides create_agent, the core agent loop built on LangGraph, along with primitives for models, inference providers, tools, messages, and middleware. Reach for LangChain when you want the core building blocks and plan to assemble your own harness.
Use LangChain when you need to:
- Build around the standard agent loop
- Connect tools, file stores, sandboxes, retrievers, and external systems
- Add middleware around the agent loop
- Inject guardrails, dynamic context, human review, or business logic
- Build a bespoke harness with your own defaults and controls

Custom agent workflows with full control
LangGraph is the runtime for custom agent workflows. It’s a graph-based framework backed by a durable engine with human-in-the-loop, fault tolerance, streaming, persistence, and observability at every step. Reach for LangGraph when your agent does not fit a standard loop, or when you need to mix deterministic and agentic steps in the same workflow.
Use LangGraph when you need to:
- Mix deterministic steps with agentic behavior
- Add approvals, interrupts, retries, and fault tolerance
- Model complex state transitions directly
- Build multi-agent systems with explicit coordination
- Control how every step of the agent runs




Learn with LangChain Academy
Build from first principles with free courses from LangChain Academy.

Project: Deep Agents
Learn the fundamental characteristics of Deep Agents and how to implement your own Deep

Quickstart: LangSmith Essentials
Learn the essentials of LangSmith — the comprehensive platform for agent engineering that helps teams use live...

Foundation: Introduction to LangChain - Python
Learn how to build AI agents with LangChain. Get started quickly using pre-built architectures and model...
Improve agents in production with LangSmith
LangSmith gives teams the systems to improve and operate agents in production. Connect LangChain, LangGraph, Deep Agents, or dcode to LangSmith to trace agent behavior, evaluate changes, monitor regressions, manage deployment, and apply governance controls.


Trace every model call, tool call, prompt, error, and run


Evaluate on real agent behavior


Monitor cost, latency, errors, and quality


Deploy agents on managed infrastructure


Govern token spend, rate routing, and sensitive data


Trace every model call, tool call, prompt, error, and run
Ready to own your coding agent?
Start building with an open-source coding agent you can customize, inspect, and control.