# LangGraph — card for AI agents

Framework for building stateful, multi-actor applications with LLMs.

Category: Agent, MCP and tool libraries · PyPI package `langgraph` · latest version 1.2.19 (checked 2026-11-01)
Install: `pip install langgraph`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## LangGraph
- Install with `pip install -U langgraph` or `uv add langgraph`. For JS/TS projects, the README points to the equivalent library, LangGraph.js.
- Build a `StateGraph`, add nodes and edges from `START` to `END`, and call `compile()` before `invoke()`.
- Use deterministic steps where you need reliability and predictability, and LLM-driven steps where you need flexibility.
- 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.
- To trace runs, set `LANGSMITH_TRACING=true` and a LangSmith API key.
- To find doc pages, start from `/llms.txt` and follow each `/_llms/` index recursively.

## Agent Skills for it
- langgraph from davila7/claude-code-templates: `npx skills add davila7/claude-code-templates --skill langgraph`
- langgraph-checkpoint from a5c-ai/babysitter: `npx skills add a5c-ai/babysitter --skill langgraph-checkpoint`

## Docs written for agents
- [llms.txt (index of the docs)](https://docs.langchain.com/llms.txt)

## What it is
- LangGraph is an MIT-licensed Python package from LangChain Inc, installed as `langgraph`. The README calls it "a low-level orchestration framework for building, managing, and deploying long-running, stateful agents." The README also points JS/TS users to an equivalent library, LangGraph.js. The README says LangGraph "is inspired by Pregel and Apache Beam" and that its public interface draws on NetworkX.
- The docs' hello-world example builds a `StateGraph`, adds a node, connects it with edges from `START` to `END`, and calls `compile()` before `invoke()`. In Qodo's write-up, each node function receives the current state and returns updates to that state. The docs say LangGraph "does not abstract prompts or architecture" and is focused on "durable execution, streaming, human-in-the-loop, and more."
- The trade-off is control versus convenience. The docs call LangGraph "very low-level" and send people who are new to agents to LangChain's prebuilt agents instead. The README points anyone who wants to build agents quickly to Deep Agents, a higher-level package built on LangGraph. LangChain itself is not required.

## Caveats
- The docs send beginners elsewhere: The docs call LangGraph "very low-level". For people just starting with agents, they recommend LangChain's prebuilt agents instead.
- Qodo found the docs lagging: 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.
- Qodo wanted more testing support: 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.
- Tracing goes through LangSmith: For tracing, debugging and evaluation, the docs point to LangSmith, a separate LangChain platform. You turn it on with an environment variable and an API key.

## Numbers (AgentGid data)
- Gid Score: 79.8 (#106 of all tools, 4 of 192 in its category)
- Used in 78 public projects set up for AI coding agents (1.2%)
- Downloads last week: 15,233,046 (as of 2026-11-24), +15.8% over 4 weeks
- GitHub stars: 45,340 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
LangChain 87.2%, Pydantic 71.8%, python-dotenv 70.5%, FastAPI 65.4%, Uvicorn 64.1%, Pydantic Settings 43.6%

## Checked alternatives (same job)
- LangChain: https://agentgid.com/tools/langchain-pypi/agent.md
- Pydantic AI: https://agentgid.com/tools/pydantic-ai/agent.md
- smolagents: https://agentgid.com/tools/smolagents/agent.md
- Semantic Kernel: https://agentgid.com/tools/semantic-kernel/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/langgraph/
- Homepage: https://docs.langchain.com/oss/python/langgraph/overview
- Repository: https://github.com/langchain-ai/langgraph
- Source: https://github.com/langchain-ai/langgraph#readme
- Source: https://github.com/langchain-ai/langgraph
- Source: https://github.com/langchain-ai/langgraph/releases
- Source: https://docs.langchain.com/oss/python/langgraph/
- Source: https://docs.langchain.com/llms.txt

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
