langgraph 1.0.1


pip install langgraph

  Latest version

Released: Oct 20, 2025

Project Links

Meta
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy
LangGraph Logo

Version Downloads Open Issues Docs

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.

Get started

Install LangGraph:

pip install -U langgraph

Then, create an agent using prebuilt components:

# pip install -qU "langchain[anthropic]" to call the model

from langgraph.prebuilt import create_react_agent

def get_weather(city: str) -> str:
    """Get weather for a given city."""
    return f"It's always sunny in {city}!"

agent = create_react_agent(
    model="anthropic:claude-3-7-sonnet-latest",
    tools=[get_weather],
    prompt="You are a helpful assistant"
)

# Run the agent
agent.invoke(
    {"messages": [{"role": "user", "content": "what is the weather in sf"}]}
)

For more information, see the Quickstart. Or, to learn how to build an agent workflow with a customizable architecture, long-term memory, and other complex task handling, see the LangGraph basics tutorials.

Core benefits

LangGraph provides low-level supporting infrastructure for any long-running, stateful workflow or agent. LangGraph does not abstract prompts or architecture, and provides the following central benefits:

  • 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.

LangGraph’s 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:

  • 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 LangGraph Studio.
  • LangChain – Provides integrations and composable components to streamline LLM application development.

[!NOTE] Looking for the JS version of LangGraph? See the JS repo and the JS docs.

Additional resources

  • Guides: Quick, actionable code snippets for topics such as streaming, adding memory & persistence, and design patterns (e.g. branching, subgraphs, etc.).
  • Reference: Detailed reference on core classes, methods, how to use the graph and checkpointing APIs, and higher-level prebuilt components.
  • Examples: Guided examples on getting started with LangGraph.
  • LangChain Forum: Connect with the community and share all of your technical questions, ideas, and feedback.
  • LangChain Academy: Learn the basics of LangGraph in our free, structured course.
  • Templates: Pre-built reference apps for common agentic workflows (e.g. ReAct agent, memory, retrieval etc.) that can be cloned and adapted.
  • Case studies: Hear how industry leaders use LangGraph to ship AI applications at scale.

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.

1.0.1 Oct 20, 2025
1.0.0 Oct 17, 2025
1.0.0rc1 Oct 17, 2025
1.0.0a4 Sep 29, 2025
1.0.0a3 Sep 07, 2025
1.0.0a2 Sep 02, 2025
1.0.0a1 Aug 27, 2025
0.6.11 Oct 21, 2025
0.6.10 Oct 09, 2025
0.6.9 Oct 07, 2025
0.6.8 Sep 29, 2025
0.6.7 Sep 07, 2025
0.6.6 Aug 20, 2025
0.6.5 Aug 13, 2025
0.6.4 Aug 07, 2025
0.6.3 Aug 03, 2025
0.6.2 Jul 30, 2025
0.6.1 Jul 29, 2025
0.6.0 Jul 28, 2025
0.6.0a2 Jul 25, 2025
0.6.0a1 Jul 22, 2025
0.5.4 Jul 21, 2025
0.5.3 Jul 14, 2025
0.5.2 Jul 09, 2025
0.5.1 Jul 02, 2025
0.5.0 Jun 26, 2025
0.5.0rc1 Jun 17, 2025
0.5.0rc0 Jun 16, 2025
0.4.10 Jun 25, 2025
0.4.9 Jun 25, 2025
0.4.8 Jun 02, 2025
0.4.7 May 24, 2025
0.4.6 May 23, 2025
0.4.5 May 15, 2025
0.4.4 May 15, 2025
0.4.3 May 08, 2025
0.4.2 May 07, 2025
0.4.1 Apr 30, 2025
0.4.0 Apr 29, 2025
0.3.34 Apr 24, 2025
0.3.33 Apr 23, 2025
0.3.32 Apr 23, 2025
0.3.31 Apr 17, 2025
0.3.30 Apr 14, 2025
0.3.29 Apr 11, 2025
0.3.28 Apr 11, 2025
0.3.27 Apr 08, 2025
0.3.26 Apr 08, 2025
0.3.25 Apr 03, 2025
0.3.24 Apr 02, 2025
0.3.23 Apr 02, 2025
0.3.22 Apr 01, 2025
0.3.21 Mar 27, 2025
0.3.20 Mar 25, 2025
0.3.19 Mar 24, 2025
0.3.18 Mar 19, 2025
0.3.17 Mar 19, 2025
0.3.16 Mar 19, 2025
0.3.15 Mar 18, 2025
0.3.14 Mar 18, 2025
0.3.13 Mar 18, 2025
0.3.12 Mar 18, 2025
0.3.11 Mar 14, 2025
0.3.10 Mar 14, 2025
0.3.9 Mar 13, 2025
0.3.8 Mar 12, 2025
0.3.7 Mar 12, 2025
0.3.6 Mar 11, 2025
0.3.5 Mar 05, 2025
0.3.4 Mar 04, 2025
0.3.3 Mar 04, 2025
0.3.2 Feb 28, 2025
0.3.1 Feb 27, 2025
0.3.0 Feb 26, 2025
0.2.76 Feb 26, 2025
0.2.75 Feb 26, 2025
0.2.74 Feb 19, 2025
0.2.73 Feb 15, 2025
0.2.72 Feb 13, 2025
0.2.71 Feb 11, 2025
0.2.70 Feb 06, 2025
0.2.69 Jan 31, 2025
0.2.68 Jan 28, 2025
0.2.67 Jan 23, 2025
0.2.66 Jan 21, 2025
0.2.65 Jan 21, 2025
0.2.64 Jan 17, 2025
0.2.63 Jan 16, 2025
0.2.62 Jan 10, 2025
0.2.61 Jan 05, 2025
0.2.60 Dec 18, 2024
0.2.59 Dec 11, 2024
0.2.58 Dec 10, 2024
0.2.57 Dec 10, 2024
0.2.56 Dec 05, 2024
0.2.55 Dec 05, 2024
0.2.54 Dec 03, 2024
0.2.53 Nov 21, 2024
0.2.52 Nov 19, 2024
0.2.51 Nov 19, 2024
0.2.50 Nov 15, 2024
0.2.49 Nov 15, 2024
0.2.48 Nov 14, 2024
0.2.47 Nov 13, 2024
0.2.46 Nov 13, 2024
0.2.45 Nov 04, 2024
0.2.44 Nov 02, 2024
0.2.43 Oct 31, 2024
0.2.42 Oct 31, 2024
0.2.41 Oct 31, 2024
0.2.40 Oct 30, 2024
0.2.39 Oct 18, 2024
0.2.38 Oct 15, 2024
0.2.37 Oct 15, 2024
0.2.36 Oct 14, 2024
0.2.35 Oct 09, 2024
0.2.34 Oct 02, 2024
0.2.33 Oct 02, 2024
0.2.32 Oct 01, 2024
0.2.31 Sep 30, 2024
0.2.30 Sep 30, 2024
0.2.29 Sep 30, 2024
0.2.28 Sep 25, 2024
0.2.27 Sep 24, 2024
0.2.26 Sep 24, 2024
0.2.25 Sep 23, 2024
0.2.24 Sep 23, 2024
0.2.23 Sep 20, 2024
0.2.22 Sep 16, 2024
0.2.21 Sep 13, 2024
0.2.20 Sep 13, 2024
0.2.19 Sep 06, 2024
0.2.18 Sep 06, 2024
0.2.17 Sep 05, 2024
0.2.16 Sep 01, 2024
0.2.15 Aug 30, 2024
0.2.14 Aug 24, 2024
0.2.13 Aug 23, 2024
0.2.12 Aug 22, 2024
0.2.11 Aug 22, 2024
0.2.10 Aug 21, 2024
0.2.9 Aug 21, 2024
0.2.8 Aug 21, 2024
0.2.7 Aug 21, 2024
0.2.7a0 Aug 21, 2024
0.2.6 Aug 21, 2024
0.2.5 Aug 21, 2024
0.2.5a0 Aug 20, 2024
0.2.4 Aug 15, 2024
0.2.3 Aug 08, 2024
0.2.2 Aug 07, 2024
0.2.1 Aug 07, 2024
0.2.0 Aug 07, 2024
0.1.19 Aug 01, 2024
0.1.18 Jul 31, 2024
0.1.17 Jul 31, 2024
0.1.16 Jul 29, 2024
0.1.15 Jul 26, 2024
0.1.14 Jul 24, 2024
0.1.13 Jul 24, 2024
0.1.12 Jul 24, 2024
0.1.11 Jul 23, 2024
0.1.10 Jul 23, 2024
0.1.9 Jul 18, 2024
0.1.8 Jul 12, 2024
0.1.7 Jul 10, 2024
0.1.6 Jul 09, 2024
0.1.5 Jul 01, 2024
0.1.4 Jun 28, 2024
0.1.3 Jun 28, 2024
0.1.2 Jun 26, 2024
0.1.1 Jun 22, 2024
0.0.69 Jun 14, 2024
0.0.68 Jun 13, 2024
0.0.67 Jun 13, 2024
0.0.66 Jun 10, 2024
0.0.65 Jun 07, 2024
0.0.64 Jun 06, 2024
0.0.63 Jun 05, 2024
0.0.62 Jun 03, 2024
0.0.61 Jun 02, 2024
0.0.60 May 31, 2024
0.0.59 May 30, 2024
0.0.58 May 30, 2024
0.0.57 May 30, 2024
0.0.56 May 29, 2024
0.0.55 May 22, 2024
0.0.54 May 21, 2024
0.0.53 May 20, 2024
0.0.52 May 20, 2024
0.0.51 May 20, 2024
0.0.50 May 17, 2024
0.0.49 May 14, 2024
0.0.48 May 08, 2024
0.0.47 May 08, 2024
0.0.46 May 07, 2024
0.0.45 May 07, 2024
0.0.44 May 03, 2024
0.0.43 May 03, 2024
0.0.42 May 03, 2024
0.0.41 May 03, 2024
0.0.40 Apr 30, 2024
0.0.39 Apr 25, 2024
0.0.38 Apr 17, 2024
0.0.37 Apr 12, 2024
0.0.36 Apr 11, 2024
0.0.35 Apr 11, 2024
0.0.34 Apr 10, 2024
0.0.33 Apr 10, 2024
0.0.32 Apr 04, 2024
0.0.31 Apr 02, 2024
0.0.30 Mar 22, 2024
0.0.29 Mar 20, 2024
0.0.28 Mar 13, 2024
0.0.27 Mar 13, 2024
0.0.26 Feb 22, 2024
0.0.25 Feb 22, 2024
0.0.24 Feb 08, 2024
0.0.23 Feb 04, 2024
0.0.22 Feb 04, 2024
0.0.21 Jan 31, 2024
0.0.20 Jan 27, 2024
0.0.19 Jan 23, 2024
0.0.18 Jan 23, 2024
0.0.17 Jan 23, 2024
0.0.16 Jan 21, 2024
0.0.15 Jan 19, 2024
0.0.14 Jan 18, 2024
0.0.13 Jan 17, 2024
0.0.12 Jan 17, 2024
0.0.11 Jan 16, 2024
0.0.10 Jan 09, 2024
0.0.9 Jan 08, 2024
0.0.8 Jan 08, 2024

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
langchain-core (>=0.1)
langgraph-checkpoint (<4.0.0,>=2.1.0)
langgraph-prebuilt (<1.1.0,>=1.0.0)
langgraph-sdk (<0.3.0,>=0.2.2)
pydantic (>=2.7.4)
xxhash (>=3.5.0)