i ideas / repo launcher
pydantic avatar

pydantic/pydantic-ai

★ 21,141PythonMIT88

How Python does AI. Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end.

What it is

Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end. Pydantic AI is the Python AI SDK: a typed, extensible agent loop with every model a string swap away, and another one to fall back to when a provider fails. The same agent runs everywhere you need it: behind a web frontend, in the terminal, on a voice call, on a durable background queue, in GitHub Actions, or as a plain object you call run() on. Image generation and embeddings come in the same box.

When to use it

Reach for pydantic-ai when you want an LLM to plan, call tools, browse, or coordinate with other agents instead of answering a single prompt — it's written in Python and fits stacks tagged agent-framework, genai, harness, harness-engineering.

Category
AI Agents
Also in
Generative Media
Stars
21,141
Forks
3,148
Last push
today
Created
2024-06-21
Open issues
1,965
Website
pydantic.dev/pydantic-ai

Quick start

$ git clone https://github.com/pydantic/pydantic-ai.git

Hand it to your AI

Read https://ideas.asveas.com/r/pydantic/pydantic-ai.md and help me add pydantic/pydantic-ai to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to pydantic-ai

All AI Agents →

Pairs well with

FAQ

What is pydantic-ai?

pydantic/pydantic-ai is an agent framework on GitHub: How Python does AI. Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end. Agents, realtime voice, image generation, embeddings.

When should I use pydantic-ai?

Reach for pydantic-ai when you want an LLM to plan, call tools, browse, or coordinate with other agents instead of answering a single prompt — it's written in Python and fits stacks tagged agent-framework, genai, harness, harness-engineering.

What are the best alternatives to pydantic-ai?

Popular alternatives in AI Agents: Significant-Gravitas/AutoGPT (188k★), langchain-ai/langchain (149k★), browser-use/browser-use (121k★), heygen-com/hyperframes (82.8k★), crewAIInc/crewAI (60.8k★).

Is pydantic-ai actively maintained?

pydantic/pydantic-ai looks very actively maintained: the last push was today (2026-11-11), with 21,141 stars and 1,965 open issues.

What license does pydantic-ai use?

pydantic/pydantic-ai is published under the MIT license. Check the repository's LICENSE file before commercial use.