{
 "kind": "tool",
 "slug": "langgraph",
 "path": "tools/langgraph/",
 "name": "LangGraph",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Agent, MCP and tool libraries",
   "tools/agent-libraries/"
  ]
 ],
 "lead": "Framework for building stateful, multi-actor applications with LLMs.",
 "chips": [
  {
   "label": "Agent, MCP and tool libraries",
   "path": "tools/agent-libraries/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install langgraph"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/langchain-ai/langgraph"
  },
  {
   "label": "Website",
   "href": "https://docs.langchain.com/oss/python/langgraph/overview"
  },
  {
   "label": "Its AgentGid profile",
   "path": "agents/langgraph/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI license expression.",
   "src": "https://github.com/langchain-ai/langgraph"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 20, 2026. ",
   "src": "https://github.com/langchain-ai/langgraph"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "78 projects",
   "status": "info",
   "sub": "#5 of 192 in its category",
   "note": "Dependency in 78 public GitHub projects set up for AI coding agents that we scanned (1.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://docs.langchain.com/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What LangGraph does",
   "parts": [
    {
     "t": "prose",
     "text": "LangGraph is a deliberately low-level runtime. You wire an agent as a graph that mixes hand-coded deterministic steps with LLM-driven ones, and LangGraph handles durable state, so runs can pause, resume and pick up after failures."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "LangGraph popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "80",
       "of": "/ 100",
       "l": "Gid Score, #106 overall"
      },
      {
       "n": "15.2M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "45.3K",
       "l": "GitHub stars"
      },
      {
       "n": "78",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How LangGraph is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "LangGraph is a dependency in 78 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (4.8% of the 1,623 Python ones), #5 of 192 in agent, mcp and tool libraries.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,035; those are left out of every share on this page.",
      "The most used alternative in our scan is LangChain (127 projects).",
      "Projects that use it most often also use LangChain (87.2%), Pydantic (71.8%), python-dotenv (70.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "46 projects, 1.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "33 projects, 1.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "31 projects, 0.9%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 87.2% of its projects",
       "v": "LangChain",
       "path": "tools/langchain-pypi/"
      },
      {
       "l": "In 71.8% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 70.5% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 65.4% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 64.1% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 43.6% of its projects",
       "v": "Pydantic Settings",
       "path": "tools/pydantic-settings/"
      },
      {
       "l": "In 38.5% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 38.5% of its projects",
       "v": "OpenAI Python Library",
       "path": "tools/openai-pypi/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "LangGraph in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Fixed steps and model-driven steps in one graph",
       "v": "The docs name this as one of LangGraph's core strengths. Some parts of a workflow can be plain code that is predictable and auditable. Other parts can let the model decide."
      },
      {
       "l": "Runs that resume after failure",
       "v": "The README describes durable execution: agents that keep going through failures, run for long periods, and resume where they stopped."
      },
      {
       "l": "Postgres persistence in a few lines",
       "v": "Qodo passed a <code>PostgresSaver</code> checkpointer to <code>compile()</code>. The post says this saved the agent's whole workflow state with no custom infrastructure. It also mentions SQLite and in-memory checkpointers, and says checkpoints and branch points let you undo and replay changes."
      },
      {
       "l": "Inspect and edit state mid-run",
       "v": "The docs list human-in-the-loop as a built-in benefit: you can look at the agent's state and change it at any point."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "The docs send beginners elsewhere",
       "v": "The docs call LangGraph \"very low-level\". For people just starting with agents, they recommend LangChain's prebuilt agents instead."
      },
      {
       "l": "Qodo found the docs lagging",
       "v": "In its post, Qodo says the framework was moving fast and the docs were sometimes incomplete or out of date. For newer, niche features, Qodo had to ask the maintainers directly. This is one team's experience when the post was written, not a statement about the docs today."
      },
      {
       "l": "Qodo wanted more testing support",
       "v": "Qodo's engineer says his team relied on manual testing more than it wanted to. He writes that he hopes LangGraph will build mocking and testing infrastructure over time. This is his view at the time of the post."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Hello world graph (spacing as on the docs page)"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Python",
       "code": "from langgraph . graph import StateGraph , MessagesState , START , END\n\ndef mock_llm ( state : MessagesState ):\n    return { \"messages\" : [{ \"role\" : \"ai\" , \"content\" : \"hello world\" }]}\n\ngraph = StateGraph ( MessagesState )\ngraph . add_node ( mock_llm )\ngraph . add_edge ( START , \"mock_llm\" )\ngraph . add_edge ( \"mock_llm\" , END )\ngraph = graph . compile ()\n\ngraph . invoke ({ \"messages\" : [{ \"role\" : \"user\" , \"content\" : \"hi!\" }]})"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about LangGraph",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "langgraph: Expert in LangGraph - the production-grade framework for building stateful, multi-actor AI applications. Covers graph construction, state ma",
        "langgraph-checkpoint: LangGraph checkpoint and persistence configuration for stateful workflow management"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "LangChain vs LangGraph",
         "note": "used together in 68 projects",
         "path": "tools/compare/langchain-python-vs-langgraph/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "langchain: Model and tool integrations",
        "python-dotenv: .env file loading",
        "pydantic: Data validation",
        "fastapi: Web API framework",
        "uvicorn: ASGI server",
        "pydantic-settings: Settings from env vars"
       ]
      },
      {
       "title": "More in Agent, MCP and tool libraries",
       "path": "tools/agent-libraries/",
       "items": [
        {
         "text": "Model Context Protocol SDK (JavaScript)",
         "path": "tools/modelcontextprotocol/"
        },
        {
         "text": "Model Context Protocol SDK (Python)",
         "path": "tools/mcp/"
        },
        {
         "text": "FastMCP (Python)",
         "path": "tools/fastmcp-pypi/"
        },
        {
         "text": "Agent Client Protocol SDK",
         "path": "tools/agentclientprotocol-sdk/"
        },
        {
         "text": "LangChain.js",
         "path": "tools/langchain-npm/"
        },
        {
         "text": "Mastra",
         "path": "tools/mastra/"
        },
        {
         "text": "MCP Inspector",
         "path": "tools/modelcontextprotocol-inspector/"
        },
        {
         "text": "fastMCP (JavaScript)",
         "path": "tools/fastmcp-npm/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "LangGraph",
       "me": true,
       "facts": [
        "MIT",
        "Gid 80",
        "15.2M/wk"
       ]
      },
      {
       "name": "LangChain",
       "why": "Framework for composing applications with LLMs through chains and agents.",
       "path": "tools/langchain-pypi/",
       "facts": [
        "MIT",
        "Gid 89",
        "37.6M/wk"
       ]
      },
      {
       "name": "Pydantic AI",
       "why": "AI agent framework built with Pydantic for structured, typed agent development.",
       "path": "tools/pydantic-ai/",
       "facts": [
        "MIT",
        "Gid 64",
        "1.8M/wk"
       ]
      },
      {
       "name": "smolagents",
       "why": "Barebones library for building agents that write Python code to call tools.",
       "path": "tools/smolagents/",
       "facts": [
        "Gid 50",
        "158K/wk"
       ]
      },
      {
       "name": "Semantic Kernel",
       "why": "Microsoft SDK for integrating LLMs with traditional code for AI applications.",
       "path": "tools/semantic-kernel/",
       "facts": [
        "MIT",
        "Gid 55",
        "85.6K/wk"
       ]
      }
     ],
     "more": "Compare LangGraph with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install langgraph"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## LangGraph\n- Install with `pip install -U langgraph` or `uv add langgraph`. For JS/TS projects, the README points to the equivalent library, LangGraph.js.\n- Build a `StateGraph`, add nodes and edges from `START` to `END`, and call `compile()` before `invoke()`.\n- Use deterministic steps where you need reliability and predictability, and LLM-driven steps where you need flexibility.\n- Do not add LangChain just to use LangGraph; it is optional. For a simple model and tool-calling loop, the docs recommend LangChain's prebuilt agents.\n- To trace runs, set `LANGSMITH_TRACING=true` and a LangSmith API key.\n- To find doc pages, start from `/llms.txt` and follow each `/_llms/` index recursively.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi langgraph"
  ],
  [
   "Category",
   "Agent, MCP and tool libraries"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "cli==0.4.33, October 7, 2026"
  ],
  [
   "On GitHub since",
   "August 2023"
  ],
  [
   "Gid Score",
   "79.8"
  ],
  [
   "Rank in category",
   "#5 of 192"
  ],
  [
   "GitHub",
   "langchain-ai/langgraph"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "Used by Klarna, Replit, Elastic, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/langchain-ai.png"
}