talira

LangGraph

Low-level orchestration framework for building stateful agents

open sourceMITself-hostablefree

LangGraph is LangChain Inc's MIT-licensed, low-level orchestration framework and runtime for long-running, stateful agents, in Python and JavaScript/TypeScript (LangGraph.js). You model an agent or workflow as a graph of steps over shared state; checkpoints persist that state so a run survives failures and resumes where it stopped, you can pause at any step for a person to inspect or change the state, and agents keep short-term and long-term memory and stream their tokens and steps. It can be used without LangChain, whose agents and Deep Agents harness are built on it. LangChain hosts LangGraph agents in LangSmith as Agent Server (formerly LangSmith Deployment, and before that LangGraph Platform), in its cloud on the Plus plan or hybrid and self-hosted on Enterprise, with LangSmith Studio for visual prototyping.

Problems it solves

  • my multi-step agent crashes halfway through and I have to start the whole run again from scratch
  • pause an AI workflow so a person can approve or edit the next action before it carries on
  • build a multi-agent system where a supervisor agent hands work to specialist agents
  • control exactly which step my LLM agent runs next instead of letting it loop freely
  • remember each user's conversation and facts about them across sessions in my agent, stored in Postgres
  • stream an agent's tokens and intermediate steps to the UI while it works
  • write an agent as an explicit graph of nodes and edges over shared state in Python
  • an agent that runs for hours, waits for an outside event and then resumes from where it stopped
  • build stateful agent workflows in TypeScript the same way our Python team does
  • orchestrate agents with branches, loops and subgraphs that I can reason about and test
  • run my stateful agent behind an API with persistence without building the server myself

Features

  • graphs of nodes and edges over shared state, with branching, loops and subgraphs
  • durable execution: checkpoints let runs survive failures and resume where they stopped
  • human-in-the-loop interrupts to inspect and change state at any point
  • short-term working memory and long-term memory across sessions
  • token-by-token streaming of output and intermediate steps
  • checkpointer packages such as langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite
  • langgraph-cli for running and building agents for LangSmith Agent Server
  • Python (langgraph) and JavaScript/TypeScript (@langchain/langgraph) libraries
  • works on its own or under LangChain agents and Deep Agents
  • tracing and debugging in LangSmith; visual prototyping in LangSmith Studio

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what LangGraph does.

  1. CrewAI Python framework for multi-agent AI: role-based agent Crews and event-driven Flows, with a platform to deploy and govern them
  2. VoltAgent Open source TypeScript AI agent framework, with the VoltOps console for observability, evals and deployment
  3. Mastra The modern TypeScript framework for AI-powered applications and agents
  4. PraisonAI Open source AI agent framework that can run fully offline on your own computers
  5. OpenAI Agents SDK OpenAI's lightweight framework for multi-agent workflows
  6. LangChain A framework for building agents and LLM-powered applications

Compare LangGraph with the top 3