← all repositories
langchain-ai/langgraph

Your LLM agent will crash. This graph wants to help.

LangGraph adds state machines and durability to the usual "prompt, pray, loop" agent pattern.

37.9k stars Python AgentsLLMOps · Eval
langgraph
Velocity · 7d
+73
★ / day
Trend
cooling
star history

What it does LangGraph is a low-level orchestration framework for building long-running, stateful AI agents in Python. It structures agent logic as a graph of nodes and edges, with built-in persistence so workflows survive crashes and resume exactly where they left off. It can run standalone or as part of the broader LangChain ecosystem.

The interesting bit The project borrows from Google’s Pregel graph-processing model and Apache Beam’s durable execution concepts — applied to the notoriously flaky world of LLM agents. The API surface is inspired by NetworkX, which means graph construction feels familiar rather than framework-heavy. The “human-in-the-loop” interrupt mechanism is the rare feature that acknowledges agents are wrong often enough to need a kill switch.

Key highlights

  • Durable execution with automatic crash recovery and state resumption
  • Human-in-the-loop interrupts for inspecting or modifying agent state mid-run
  • Short-term working memory plus long-term persistent memory across sessions
  • Optional but tight integration with LangSmith for tracing and LangChain for model abstractions
  • Higher-level “Deep Agents” package available for teams who want less boilerplate

Caveats

  • The README is ecosystem-heavy; standalone usage is promised but the documentation funnel keeps steering toward paid LangChain products
  • “Production-ready deployment” links point to LangSmith’s commercial platform, not self-hosted options

Verdict Worth evaluating if you’re building agents that must run for minutes or hours and can’t afford to lose state on a GPU hiccup. Skip if you need a lightweight, framework-agnostic solution — the gravitational pull toward LangChain’s commercial orbit is real.

Frequently asked

What is langchain-ai/langgraph?
LangGraph adds state machines and durability to the usual "prompt, pray, loop" agent pattern.
Is langgraph open source?
Yes — langchain-ai/langgraph is open source, released under the MIT license.
What language is langgraph written in?
langchain-ai/langgraph is primarily written in Python.
How popular is langgraph?
langchain-ai/langgraph has 37.9k stars on GitHub and is currently cooling off.
Where can I find langgraph?
langchain-ai/langgraph is on GitHub at https://github.com/langchain-ai/langgraph.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.