# Pydantic AI

> Typed Python agent framework that works across providers, including OpenAI-compatible local servers.

Canonical: https://thelocalbench.com/tools/pydantic-ai · Data as of 2026-10-12 · The Local Bench (thelocalbench.com), data as of 2026-10-12, CC BY 4.0

Flags: [verified] checked against primary source · [sourced] cited · [estimate] formula · [sample] placeholder

- Category: Agent frameworks / Typed SDK
- Website: https://pydantic.dev/pydantic-ai
- Repository: https://github.com/pydantic/pydantic-ai
- Open source: yes, MIT [verified] https://github.com/pydantic/pydantic-ai/blob/HEAD/LICENSE
- Pricing: free, starting $0 [verified] https://github.com/pydantic/pydantic-ai
- Platforms: Python [sourced] https://github.com/pydantic/pydantic-ai#readme
- Added 2026-10-13, last verified 2026-10-13
- Sponsored: no

## Works with local models

| Integration | Status | Flag | Source |
|---|---|---|---|
| Ollama | yes | [sourced] | https://github.com/pydantic/pydantic-ai#readme |
| llama.cpp | not yet confirmed | [not_measured] |  |
| LM Studio | not yet confirmed | [not_measured] |  |
| OpenAI-compatible | yes | [verified] | https://ai.pydantic.dev/models/openai/ |
| MCP | yes | [sourced] | https://github.com/pydantic/pydantic-ai#readme |

JSON: https://thelocalbench.com/api/v1/tools/pydantic-ai.json

Logo: trademark of its owner, shown to identify the tool (source: favicon-svg, https://pydantic.dev/favicon/favicon.svg).
