langgraph is a free, open source ai development platforms project written in Python and released under MIT. It has 41,841 GitHub stars, 7,065 forks and 786 open issues, and was last pushed 9 hours ago. On this registry it ranks #20 of 61 tracked projects in AI Development Platforms, with 5 head-to-head comparisons available. It gained 133 stars over the last 3 tracked days.

What is langgraph?

LangGraph is a low-level Python orchestration framework for building stateful, long-running agents, aimed at developers and platform teams who need durable execution, human-in-the-loop control, and persistent memory instead of a turnkey agent application.

What it is

LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents. It is maintained in Python under the MIT licence, sits in the AI & Machine Learning / AI Development Platforms category, and can be used standalone even though it integrates with other LangChain products. A JavaScript/TypeScript equivalent exists as LangGraph.js, and the framework is positioned as supporting infrastructure for any long-running, stateful workflow or agent, not only conversational ones.

The concrete problem it solves is the absence of orchestration infrastructure beneath an agent loop. Without a framework at this level, teams must build their own state handling, failure recovery, and resume logic around model calls. LangGraph supplies that layer directly: agents persist through failures and resume from exactly where they left off, human oversight can inspect and modify agent state at any point during execution, and memory is handled both as short-term working memory for ongoing reasoning and as long-term persistent memory across sessions. It therefore replaces bespoke orchestration code rather than a competing product, and it stays low-level by design.

Key capabilities

  • Durable execution: agents persist through failures and resume from exactly where they left off, which allows runs to continue for extended periods.
  • Human-in-the-loop through interrupts: human oversight can inspect and modify agent state at any point during execution.
  • Comprehensive memory: short-term working memory for ongoing reasoning plus long-term persistent memory that survives across sessions.
  • Debugging with LangSmith: visualization tools trace execution paths, capture state transitions, and report detailed runtime metrics.
  • Production-ready deployment through LangSmith Deployment: scalable infrastructure built for stateful, long-running workflows.
  • Ecosystem pairing: LangChain supplies integrations and composable components, and Deep Agents builds on LangGraph for agents that plan, use subagents, and leverage file systems.
  • Cross-language option: LangGraph.js provides an equivalent library for JavaScript and TypeScript.

Who uses it and how

  • Enterprises building long-running agent systems, a use case reflected in the enterprise topic and in the framework's stated use by Klarna, Replit, and Elastic.
  • Teams that need agents to survive process restarts and infrastructure failures rather than losing in-flight work, which is what durable execution targets.
  • Applications requiring approval gates or manual review mid-run, where interrupts let a human inspect and modify state before the agent continues.
  • Long-lived assistants that must remember context across separate sessions, using persistent memory alongside working memory.
  • Organizations already working in the LangChain ecosystem that want to pair orchestration with LangSmith for evaluation, observability, and deployment.

Getting started

Install the Python package with pip install -U langgraph. Full conceptual overviews, API reference, and a quickstart guide are published at docs.langchain.com, and a JavaScript/TypeScript equivalent is available through LangGraph.js.

How it compares

Within its own ecosystem, LangGraph is the low-level orchestration layer, while LangChain provides integrations and composable components, Deep Agents is a higher-level package for agents that plan and use subagents, and LangSmith covers evaluation and observability. LangSmith Deployment is the hosted platform for deploying and scaling long-running stateful workflows, and LangGraph.js mirrors the core library for JavaScript and TypeScript teams. The choice is therefore between levels of abstraction and between the Python and JS/TS implementations, not between vendors.

When to use it — and when not to

LangGraph is the right choice when the orchestration itself must be controlled, because it deliberately supplies supporting infrastructure rather than a finished agent. Teams that want something assembled quickly should look at Deep Agents instead, and anyone unwilling to depend on LangSmith for observability and deployment should note that the README routes production deployment through LangSmith Deployment. The project also carries a substantial open-issue count of 786, so adopters should expect active development and should plan for reading the documentation closely rather than assuming stable, hands-off operation.

project readme (upstream, from github) — read inline

Low-level orchestration framework for building stateful agents.

PyPI - License PyPI - Downloads Version Twitter / X


Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents.

pip install -U langgraph

[!TIP] If you're looking to quickly build agents, check out Deep Agents — a higher-level package built on LangGraph for agents that can plan, use subagents, and leverage file systems for complex tasks.

For an equivalent JS/TS library, check out LangGraph.js and the JS docs.

Why use LangGraph?

LangGraph provides low-level supporting infrastructure for any long-running, stateful workflow or agent:

  • Durable execution — Build agents that persist through failures and can run for extended periods, automatically resuming from exactly where they left off.
  • Human-in-the-loop — Seamlessly incorporate human oversight by inspecting and modifying agent state at any point during execution.
  • Comprehensive memory — Create truly stateful agents with both short-term working memory for ongoing reasoning and long-term persistent memory across sessions.
  • Debugging with LangSmith — Gain deep visibility into complex agent behavior with visualization tools that trace execution paths, capture state transitions, and provide detailed runtime metrics.
  • Production-ready deployment — Deploy sophisticated agent systems confidently with scalable infrastructure designed to handle the unique challenges of stateful, long-running workflows.

[!TIP] For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.

LangGraph ecosystem

While LangGraph can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools for building agents.

To improve your LLM application development, pair LangGraph with:

  • Deep Agents – Build agents that can plan, use subagents, and leverage file systems for complex tasks.
  • LangChain – Provides integrations and composable components to streamline LLM application development.
  • LangSmith – Helpful for agent evals and observability. Debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and improve performance over time.
  • LangSmith Deployment – Deploy and scale agents effortlessly with a purpose-built deployment platform for long-running, stateful workflows. Discover, reuse, configure, and share agents across teams – and iterate quickly with visual prototyping in LangSmith Studio.

Documentation

Discussions: Visit the LangChain Forum to connect with the community and share all of your technical questions, ideas, and feedback.

Additional resources

  • Guides – Quick, actionable code snippets for topics such as streaming, adding memory & persistence, and design patterns (e.g. branching, subgraphs, etc.).
  • LangChain Academy – Learn the basics of LangGraph in our free, structured course.
  • Case studies – Hear how industry leaders use LangGraph to ship AI applications at scale.
  • Contributing Guide – Learn how to contribute to LangChain projects and find good first issues.
  • Code of Conduct – Our community guidelines and standards for participation.

Acknowledgements

LangGraph is inspired by Pregel and Apache Beam. The public interface draws inspiration from NetworkX. LangGraph is built by LangChain Inc, the creators of LangChain, but can be used without LangChain.

Frequently asked questions

Is langgraph free to use?

langgraph is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does langgraph do?

Build resilient agents.

What is langgraph written in?

langgraph is primarily written in Python. Its source is publicly available at https://github.com/langchain-ai/langgraph, and it has 41,841 GitHub stars.