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.

Powering top AI teams at the world's largest enterprises

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

200M+
Monthly Downloads
63%
Of Fortune 500 Using LangChain OSS

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

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.

Get Started

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.