Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

Pydantic AI

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

Agent, MCP and tool libraries PyPI MIT

Used in agent projects
16
1.0% of 1,622 Python repos built with AI coding agents; 188 counting our dependency samples
Gid Score
62 /100
#597 of 3,794 tools, #20 in agent, mcp and tool libraries · ranking
Rank in agent, mcp and tool libraries
#14 of 155
by use in those projects
Downloads
1.5M
PyPI, last 7 days, pydantic-ai
GitHub stars
20.7K
2,967 forks · last push Oct 20, 2026

How Pydantic AI is used

Pydantic AI is a dependency in 16 of the 6,208 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 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 188 projects, and what it is used with below comes from all of them. The most used alternative in our scan is LangChain (126 projects). Projects that use it most often also use python-dotenv (77.7%), Pydantic (76.1%), OpenAI Python Library (64.4%).

Pydantic AI popularity over time

Top tools by Gid Score

Pydantic AI: downloads per weekPyPI, pydantic-ai 1,473,609
Pydantic AI: GitHub starspydantic/pydantic-ai 20,747

Gid Score 62: downloads 68, use in agent projects 60, GitHub stars 62, downloads trend 55 (each 0-100). How it is calculated.

Often used with Pydantic AI

python-dotenv77.7% of Pydantic AI projects · 8.5× more than average
Pydantic76.1% of Pydantic AI projects · 8.8× more than average
OpenAI Python Library64.4% of Pydantic AI projects · 16.3× more than average
Requests47.3% of Pydantic AI projects · 7.0× more than average
Uvicorn46.3% of Pydantic AI projects · 6.0× more than average
Rich44.1% of Pydantic AI projects · 12.3× more than average
FastAPI41.0% of Pydantic AI projects · 5.5× more than average
Anthropic Python SDK39.9% of Pydantic AI projects · 21.9× more than average

From all 188 projects in our scan that use Pydantic AI, including the dependency samples.

By coding agent

Cursor0.4% of projects set up for it
Claude Code0.2% of projects set up for it
GitHub Copilot0.2% of projects set up for it

Share of public repos configured for each agent that list Pydantic AI as a dependency.

Install

Alternatives to Pydantic AI

All agent, mcp and tool libraries

Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Pydantic AI are not listed here; they are in "Often used with".

Tool Gid Score Used in agent projectsDownloads / wk GitHub starsLicense
LangChain pypi
Framework for composing applications with LLMs through chains and agents.
88 126 (7.8%) 37.3M 148K MIT
LangGraph pypi
Framework for building stateful, multi-actor applications with LLMs.
78 76 (4.7%) 12.5M 43.6K MIT
LangGraph SDK pypi
SDK for interacting with LangGraph API to build and run agent workflows.
73 9 (0.6%) 12.2M 43.6K MIT
Browser Use pypi
SDK for AI agents to interact with websites via browser automation.
54 8 (0.5%) 1.5M — MIT
smolagents pypi
Barebones library for building agents that write Python code to call tools.
46 5 (0.3%) 113K — —
CrewAI pypi
Framework for orchestrating collaborative AI agents to solve complex autonomous tasks.
62 3 (0.2%) 669K 59.9K MIT
Semantic Kernel pypi
Microsoft SDK for integrating LLMs with traditional code for AI applications.
51 3 (0.2%) 73.1K 28.7K MIT
Langflow pypi
Visual builder for LLM applications with web UI for no-code workflows.
52 2 (0.1%) 9,395 156K MIT

More in Agent, MCP and tool libraries: Model Context Protocol SDK (JavaScript) Model Context Protocol SDK (Python) FastMCP (Python) LangChain.js Mastra Agent Client Protocol SDK MCP Inspector fastMCP (JavaScript)

Is Pydantic AI right for your project? Ask AgentGid →