Skip to content
Agents tracked: 492 Releases (7d): 545 Agent status: 1 with issuesSince last limit reset: Claude 9d · Codex 7d For AI agents: Markdown Updated Nov 20, 2026

Pydantic Graph

Build typed graphs and state machines with Pydantic for AI workflows.

Agent, MCP and tool librariesPYPI

GitHubWebsite

1. License

License from PyPI license expression.

github.com/pydantic/pydantic-ai

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Pydantic Graph does

Build typed graphs and state machines with Pydantic for AI workflows.

Pydantic Graph popularity

66 / 100
Gid Score, #539 overall
8.8M
downloads a week, pypi
21.3K
GitHub stars
2
agent projects use it
Pydantic Graph: downloads per weekPyPI, pydantic-graph 8,749,773
Pydantic Graph: GitHub starspydantic/pydantic-ai 21,253

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Pydantic Graph is used

  • Pydantic Graph is a dependency in 2 of the 6,254 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,063, Ethereum and EVM 1,777, 3D and games 3,120, agent frameworks and SDKs 13,629); counting those, it appears in 74 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is LangGraph (78 projects).
  • Projects that use it most often also use Pydantic (98.6%), OpenAI Python Library (95.9%), Requests (94.6%).

Often used with

In 98.6% of its projects
In 95.9% of its projects
In 94.6% of its projects
In 93.2% of its projects
In 93.2% of its projects
In 93.2% of its projects

More about Pydantic Graph

More in Agent, MCP and tool libraries

Alternatives

Pydantic Graph This page

MITGid 668.8M/wk

LangGraph

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

MITGid 8014.6M/wk

Pydantic AI

AI agent framework built with Pydantic for structured, typed agent development.

MITGid 641.5M/wk

Compare Pydantic Graph with another tool

Get started

Install it.

pip install pydantic-graph

No step-by-step start for Pydantic Graph yet: we have not written its hand-checked card.