#1010th of 242 in Agent frameworks and SDKs

pydantic-ai

Typed Python SDK for building LLM agents across many model providers

Stars
21.4k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 35 weeks+5,865
25 Mar 2026: 15,581 stars1 Apr 2026: 15,818 stars8 Apr 2026: 15,978 stars15 Apr 2026: 16,198 stars22 Apr 2026: 16,378 stars29 Apr 2026: 16,569 stars6 May 2026: 16,711 stars13 May 2026: 16,890 stars20 May 2026: 17,023 stars27 May 2026: 17,207 stars3 Jun 2026: 17,380 stars10 Jun 2026: 17,567 stars17 Jun 2026: 17,703 stars24 Jun 2026: 17,864 stars1 Jul 2026: 18,011 stars8 Jul 2026: 18,175 stars15 Jul 2026: 18,448 stars22 Jul 2026: 18,636 stars29 Jul 2026: 18,792 stars5 Aug 2026: 18,995 stars12 Aug 2026: 19,183 stars19 Aug 2026: 19,339 stars26 Aug 2026: 19,472 stars2 Sept 2026: 19,638 stars9 Sept 2026: 19,792 stars16 Sept 2026: 19,956 stars23 Sept 2026: 20,112 stars30 Sept 2026: 20,292 stars7 Oct 2026: 20,480 stars14 Oct 2026: 20,630 stars21 Oct 2026: 20,787 stars28 Oct 2026: 20,952 stars4 Nov 2026: 21,062 stars11 Nov 2026: 21,188 stars18 Nov 2026: 21,322 stars25 Nov 2026: 21,446 stars

15,581 on 25 Mar 202621,446 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Pydantic AI is a Python agent framework built on Pydantic validation. Agents take typed dependencies, tools and output models, and the provider is chosen with a model string such as 'openai:...' or 'anthropic:...', with fallback models supported. It also covers MCP, durable execution on engines like Temporal, DBOS and Prefect, realtime voice, image generation and embeddings. Evals and Graph ship as separate packages.

Who it is for: Python developers building typed, production LLM agents

Strengths

  • Structured outputs, tools and dependency injection are typed and validated before your code runs
  • Switch providers with a model string, with fallback models when a provider fails
  • Durable execution integrations for Temporal, DBOS, Prefect, Restate and others
  • OpenTelemetry instrumentation works with any backend, not only Logfire

Weaknesses

  • Python only
  • Memory, guardrails, sub-agents and the coding agent live in the separate Harness package
  • Evals, Graph and Monty are separate packages to install and learn
  • README promotes paid Logfire and AI Gateway products alongside the SDK

What it needs

  • no GPU
  • Needs Model provider API key or local model server such as Ollama, Optional: Temporal, DBOS or Prefect for durable execution, Optional: Logfire or any OpenTelemetry backend
  • Models: OpenAI, Anthropic, Google, Bedrock, Azure AI Foundry

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Agent frameworks and SDKs

See all 242
Also in Agent frameworks and SDKs
RankProjectScore
#8gradioPython library for building web UIs around ML models and functions44.2k stars+331 (+0.8%) in 30 daysApache-2.090 out of 100
#9vercel/aiProvider-agnostic TypeScript toolkit for text, structured output, agents and chat UIs28.3k starscustom license90 out of 100
#11agnoPython SDK and runtime for building and serving agents and workflows43.3k starsApache-2.089 out of 100
#12openai-pythonOfficial Python client for the OpenAI REST API, sync and async32.3k starsApache-2.089 out of 100
#13pipecatPython framework for real-time voice and multimodal agent pipelines17.5k starsBSD-2-Clause89 out of 100