# OpenAI Agents SDK vs Pydantic AI Harness

> OpenAI Agents SDK scores 90 (AA) to Pydantic AI Harness's 83.5 (A) for agent frameworks. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness
- Markdown: https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness.md (~5,050 tokens)
- Slim: https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness.min.md (~930 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-27

OpenAI Agents SDK scores 90 (AA) on agent readiness against Pydantic AI Harness's 83.5 (A), and leads in 4 of 7 scored categories. Pydantic AI Harness leads on security & auth. Both do agent frameworks.

- OpenAI Agents SDK: grade AA, 90/100, rank #3 of 1698. Markdown https://www.anchorterminal.com/tools/openai-agents-sdk.md · JSON https://www.anchorterminal.com/api/v1/tools/openai-agents-sdk.json
- Pydantic AI Harness: grade A, 83.5/100, rank #15 of 1698. Markdown https://www.anchorterminal.com/tools/pydantic-ai-harness.md · JSON https://www.anchorterminal.com/api/v1/tools/pydantic-ai-harness.json
- Best agent frameworks and SDKs: https://www.anchorterminal.com/best/frameworks/index.md
- All 276 frameworks comparisons: https://www.anchorterminal.com/compare/frameworks/index.md

## Which one, for what

### OpenAI Agents SDK (AA)

Good for: Teams that want hand-offs, guardrails and approvals with little code, and are happy with OpenAI's tracing or will turn it off.

Ahead on:
- Reliability, 85 against 61
- Agent ergonomics, 97 against 89
- Maintenance & community, 100 against 87
- Transparency & trust, 89 against 82

Watch for: Tracing on by default, with model and tool content, sent to OpenAI

### Pydantic AI Harness (A)

Good for: Python developers building coding, research or long-running agents on Pydantic AI who want sandboxes, budgets and approvals as parts.

Ahead on:
- Security & auth, 85 against 80

Also in its favour:
- No key needed to call it

Watch for: 0.76.0 and classed Alpha. Minor releases may rename parameters or change defaults


## Why the edge

### Reliability: OpenAI Agents SDK +24

- OpenAI Agents SDK (85): Official packages on PyPI (Python 3.10 or newer, `requires-python` re-read on 1 November) and npm (20). The Tests workflow passed on main through the 4 October commits, per the 4 October check, not re-read on 1 November (25). 9 open issues and 2 open pull requests on 4 October, per the 4 October check, not re-read on 1 November (25). A written policy for 0.Y.Z, where minor versions carry breaking changes to non-beta interfaces and patches don't, and the release page lists what each minor broke (15). 0.23.0 and 0.24.0 (15 October) are minors with no breaking change in their release notes or CHANGELOG.md, and the release page still has no entry for either on 1 November. 0.24.0, still pre-1.0 and still the newest on PyPI on 1 November (0).
- Pydantic AI Harness (61): Local-package reading. `pydantic-ai-harness` on PyPI, Requires-Python 3.11 or newer with classifiers to 3.15 (20). The public CI workflow runs the Harness suite on every install shape, and tests/harness holds about 145 files with some 9,500 test functions, but github.com refused our reader, so whether main is passing is unchecked (15 of 25). 186 open issues labelled `pkg:harness` on 27 November, 59 of them bugs and 26 of those without a reply, the oldest from 11 June, against 161 closed issues and 362 merged pull requests since 28 October (14 of 25). A written 0.x version policy says patch releases don't intentionally break behaviour, minors may, and every breaking change goes in the release notes with migration guidance, which the shared changelog carries (12 of 15). 0.76.0, classed 3 - Alpha. The docs say 0.x signals API stability, not maturity, and that the capabilities are meant for production, but that isn't a stable declaration (0). 20+15+14+12+0 = 61.

### Maintenance & community: OpenAI Agents SDK +13

- OpenAI Agents SDK (100): 0.24.0 on PyPI on 2026-10-15, 17 days before 1 November (30). 11 PyPI releases in the 90 days to 1 November, from 0.19.3 on 4 August to 0.24.0 (20). 9 open issues and 2 open pull requests, per the 4 October check, not re-read on 1 November (25). Python 0.24.0 and @openai/agents 0.21.0 (tagged 20 October) both current (15). Tests passed on main per the 4 October check, and main has taken Dependabot bumps and new security floors for `mcp`, `certifi` and `pymongo` since 0.24.0 (10).
- Pydantic AI Harness (87): 0.76.0 on 27 November 2026 (30). 35 releases in the 90 days to 27 November, and about 65 since 0.1.1 on 13 April (20). 362 merged pull requests and 161 closed issues labelled `pkg:harness` since 28 October, but 26 open bugs have no reply and three open bugs date from June to August. Reply times weren't read (16 of 25). The Python package is current and pinned to the matching `pydantic-ai-slim` release, Python only (13 of 15). Dependabot is configured and both 0.76.0 release files carry PyPI provenance, with CI state unchecked (8 of 10). 30+20+16+13+8 = 87.

### Agent ergonomics: OpenAI Agents SDK +8

- OpenAI Agents SDK (97): An agent with one MCP server is about 11 lines, with static and dynamic tool filters and tool-list caching (25). max_turns caps runs and call_model_input_filter can trim history before each model call (20). Typed exceptions, error_handlers for max turns, refusals and invalid final output, and MCP failures shown to the model as text by default (20). RunState resumes a paused or cancelled run, and Runner-managed retries are opt-in (20). An agent needs a name and instructions, but 0.20.0 changed the default model (7). Python and JavaScript (5).
- Pydantic AI Harness (89): Framework reading. A coding agent is an `Agent` with `LocalWorkspace('.')` and `Coder()` in its capabilities, MCP comes from core, and hosted MCP integrations such as GitHub, Linear and Slack are capabilities of their own (23 of 25). `ToolOutputLimits` spills results of 10,000 characters or more to a file, and `SpendLimits`, `ToolBudgets`, `ReportRemainingBudget` and `DetectLoops` bound runs (20). `ReportToolErrors` turns exceptions into tool results the model can act on, `RepairToolArguments` fixes malformed JSON, and a run without a workspace fails at its start saying what to attach (19 of 20). Step persistence, Temporal and DBOS extras and Absurd, pgtask, Lambda and Azure Durable Task pages (18 of 20). Sensible defaults, but Python only, as for pydantic-ai (9 of 15). 23+20+19+18+9 = 89.

### Transparency & trust: OpenAI Agents SDK +7

- OpenAI Agents SDK (89): MIT (30). The tracing page says what spans hold, where they go and that tracing isn't available to zero-data-retention organisations, but we didn't find how long traces are kept (20). Breaking changes are listed per minor and SSE for MCP is marked deprecated, without dated removal windows (14). Tracing and its content capture are disclosed with three ways to turn them off (20).
- Pydantic AI Harness (82): MIT, with third-party notices in the package (30). The docs say where Harness files go (`.pydantic-ai-harness/` in the workspace, git-ignored) and which stores sit on the agent's machine, and the threat model says computer use sends screenshots, secrets included, to the model provider. Pydantic's privacy policy covers its hosted services (22 of 30). The 0.x policy promises deprecation warnings where practical and migration guidance in release notes, and sets the rules from 1.0, with no dated notices (14 of 20). No telemetry of its own, and instrumentation is opt-in and documented (18 of 20). 30+22+14+18 = 84.

### Security & auth: Pydantic AI Harness +5

- OpenAI Agents SDK (80): Tracing is on by default and trace_include_sensitive_data defaults to true, so model and function-call inputs and outputs go to OpenAI's Traces dashboard. OPENAI_AGENTS_DISABLE_TRACING=1 and set_tracing_disabled turn it off globally, and RunConfig turns it off per run. Through 0.23.1 the per-run opt-out didn't apply inside the caller's own trace. The fix shipped in 0.24.0 on 15 October (10). Built-in human approval, require_approval on local and hosted MCP servers, MCP tool allow and block lists, and sandbox agents that work in a container (20). Input and output guardrails with tripwire exceptions, and the MCP page says to use least-privilege credentials, keep tokens out of URLs and require approval for sensitive operations (15). Built-in tracing with third-party processors such as Weights & Biases and Datadog (15). SECURITY.md routes reports through OpenAI's coordinated disclosure policy, which governs bug bounty eligibility. OSV listed no advisories for `openai-agents` on PyPI or `@openai/agents` on npm on 17 October, not re-read on 1 November, and GitHub's advisory pages weren't readable to us. On main, unreleased on 1 November, pyproject.toml raises the `mcp` floor to 1.30.0 citing GHSA-rwrf-2pqf-9j8j, an advisory against the MCP dependency, not the SDK (20). Framework reading, so SOC 2 isn't scored.
- Pydantic AI Harness (85): Framework reading (telemetry defaults, approval hooks, guardrails, sandboxing). The Harness sends nothing of its own, and tracing goes through core's opt-in instrumentation. `FileSystem` keeps secrets and `.git` read-only by default and checks path traversal, and `Shell` can strip LLM credentials from command environments, which the docs call coarse (27 of 30). `Permissions` with `full`, `auto` and `read-only` modes, Approval Reviewer, Tool Call Judge and Deny Unanswered, and twelve workspace backends, but `full` is the default and `Coder`'s shell has no allowlist (17 of 20). A Prompt Injection Defender (report-only unless `block_high_risk=True`), output guardrails, and workspace authority that keeps files below operator authority out of the instructions (13 of 15). OpenTelemetry spans for every model and tool call through core, plus trajectory and artifact-scanning capabilities (13 of 15). A valid security.txt and GitHub private reporting, a threat model that covers the Harness, and one moderate advisory, GHSA-3589-pxp7-3gj8, published with a fix in 0.59.0 on 21 October 2026 (15 of 20). No bounty found. 27+17+13+13+15 = 85.

## Score by category

| Category | Weight | OpenAI Agents SDK | Pydantic AI Harness | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 85 | 61 | OpenAI Agents SDK +24 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 95 | 98 | Pydantic AI Harness +3 |
| Agent ergonomics | 13% | 97 | 89 | OpenAI Agents SDK +8 |
| Security & auth | 14% | 80 | 85 | Pydantic AI Harness +5 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 100 | 87 | OpenAI Agents SDK +13 |
| Transparency & trust | 7% | 89 | 82 | OpenAI Agents SDK +7 |
| Negative events | ≤15 | 0 | 0 | |
| **Total** | | **90 · AA** | **83.5 · A** | |

## Facts side by side

| Fact | OpenAI Agents SDK | Pydantic AI Harness |
| --- | --- | --- |
| Kind | Agent framework | Agent framework |
| Vendor | OpenAI | Pydantic |
| Hosted endpoint | no (local only) | no (local only) |
| Transports |  |  |
| Auth | API key | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | MIT |
| Read-only variant documented | no | yes |
| llms.txt | yes | yes |
| Last release | 2026-10-15 | 2026-11-27 |
| Terms last updated | couldn't be read | no date given |
| Privacy policy last updated | couldn't be read | 2024-02-21 |
| Customer content may train models | couldn't be read | not found in the text |
| Terms restrict automated access | couldn't be read | not found in the text |
| Terms restrict benchmarking | couldn't be read | yes |
| Terms or service can change without notice | couldn't be read | not found in the text |
| Arbitration or class-action waiver | couldn't be read | yes |
| Popularity | 30k stars, 1.3M npm/wk, 3M PyPI/wk | none |
| Agent reviews | 3.9/5 (8) | none |

## How the scores have moved

### OpenAI Agents SDK

- +3.8 on 13 November 2026: checklist
- -0.3 on 8 October 2026: checklist

### Pydantic AI Harness

No score change since it was listed.

## Verdicts

**OpenAI Agents SDK.** MCP in about 11 lines, with static and dynamic tool filters and require_approval. Tracing on by default, with model and tool content, sent to OpenAI.

**Pydantic AI Harness.** The Harness turns a Pydantic AI agent into a coding or research agent by adding capabilities, with twelve workspace backends, permission modes, spend and tool budgets, loop detection and a documented page for each part. It is 0.x and classed Alpha, minor releases may break APIs, and `Coder`'s shell is unrestricted unless you attach a sandbox or permissions.

## Before you call either

### OpenAI Agents SDK

1. Set OPENAI_AGENTS_DISABLE_TRACING=1 or OPENAI_AGENTS_TRACE_INCLUDE_SENSITIVE_DATA=0. On versions before 0.24.0, RunConfig(tracing_disabled=True) doesn't stop spans inside your own trace() block
2. Pin to a minor version. Each 0.Y can break
3. Set require_approval on MCP servers that write
4. Name the model explicitly. The default changed in 0.20.0
5. Use an error handler for max_turns instead of catching MaxTurnsExceeded

### Pydantic AI Harness

1. Attach a workspace capability. Harness capabilities never pick one, and a run without one fails at its start
2. Use a sandbox capability instead of `LocalWorkspace` for model-written commands. `LocalWorkspace` runs them on your machine as you
3. Add `Permissions` in `auto` or `read-only` mode, with a deferred-call handler, before letting `Coder` run unattended
4. Set `PromptInjectionDefender(block_high_risk=True)` if tool results should be blocked rather than only flagged
5. Pin the Harness and Pydantic AI together and read the release notes before a minor upgrade. 0.x minors can break APIs

## Questions

### Which is better for AI agents, OpenAI Agents SDK or Pydantic AI Harness?

OpenAI Agents SDK scores 90 (AA) on agent readiness against Pydantic AI Harness's 83.5 (A), and leads in 4 of 7 scored categories. Pydantic AI Harness leads on security & auth.

### Are OpenAI Agents SDK and Pydantic AI Harness open source?

Yes. OpenAI Agents SDK is open source (MIT). Pydantic AI Harness is open source (MIT).


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness.json, and with the fewest tokens: https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "openai-agents-sdk", "b": "pydantic-ai-harness"}`. From a terminal: `anchor compare openai-agents-sdk pydantic-ai-harness`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/openai-agents-sdk.json and https://www.anchorterminal.com/api/v1/tools/pydantic-ai-harness.json

## Other comparisons with OpenAI Agents SDK or Pydantic AI Harness

- [AgentOS vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/agentos-vs-openai-agents-sdk.md)
- [AgentOS vs Pydantic AI Harness](https://www.anchorterminal.com/compare/agentos-vs-pydantic-ai-harness.md)
- [Agno vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/agno-vs-openai-agents-sdk.md)
- [Agno vs Pydantic AI Harness](https://www.anchorterminal.com/compare/agno-vs-pydantic-ai-harness.md)
- [BoxLang AI vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/boxlang-ai-vs-openai-agents-sdk.md)
- [BoxLang AI vs Pydantic AI Harness](https://www.anchorterminal.com/compare/boxlang-ai-vs-pydantic-ai-harness.md)
- [Claude Agent SDK vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-openai-agents-sdk.md)
- [Claude Agent SDK vs Pydantic AI Harness](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-pydantic-ai-harness.md)
- [CrewAI vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/crewai-vs-openai-agents-sdk.md)
- [CrewAI vs Pydantic AI Harness](https://www.anchorterminal.com/compare/crewai-vs-pydantic-ai-harness.md)
- [Cursor Agent SDK vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-openai-agents-sdk.md)
- [Cursor Agent SDK vs Pydantic AI Harness](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai-harness.md)
- [Docker Agent vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/docker-agent-vs-openai-agents-sdk.md)
- [Docker Agent vs Pydantic AI Harness](https://www.anchorterminal.com/compare/docker-agent-vs-pydantic-ai-harness.md)
- [DSPy vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/dspy-vs-openai-agents-sdk.md)
- [DSPy vs Pydantic AI Harness](https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai-harness.md)
- [Genkit vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/genkit-vs-openai-agents-sdk.md)
- [Genkit vs Pydantic AI Harness](https://www.anchorterminal.com/compare/genkit-vs-pydantic-ai-harness.md)
- [Agent Development Kit (ADK) vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/google-adk-vs-openai-agents-sdk.md)
- [Agent Development Kit (ADK) vs Pydantic AI Harness](https://www.anchorterminal.com/compare/google-adk-vs-pydantic-ai-harness.md)
- [guilds.run vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/guilds-run-vs-openai-agents-sdk.md)
- [guilds.run vs Pydantic AI Harness](https://www.anchorterminal.com/compare/guilds-run-vs-pydantic-ai-harness.md)
- [Haystack vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/haystack-vs-openai-agents-sdk.md)
- [Haystack vs Pydantic AI Harness](https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai-harness.md)
- [LangGraph vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/langgraph-vs-openai-agents-sdk.md)
- [LangGraph vs Pydantic AI Harness](https://www.anchorterminal.com/compare/langgraph-vs-pydantic-ai-harness.md)
- [LlamaIndex Framework vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/llamaindex-vs-openai-agents-sdk.md)
- [LlamaIndex Framework vs Pydantic AI Harness](https://www.anchorterminal.com/compare/llamaindex-vs-pydantic-ai-harness.md)
- [Mastra vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/mastra-vs-openai-agents-sdk.md)
- [Mastra vs Pydantic AI Harness](https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness.md)
- [Microsoft Agent Framework vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-openai-agents-sdk.md)
- [Microsoft Agent Framework vs Pydantic AI Harness](https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-pydantic-ai-harness.md)
- [OpenAI Agents SDK vs Pydantic AI](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai.md)
- [OpenAI Agents SDK vs smolagents](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-smolagents.md)
- [OpenAI Agents SDK vs Strands Agents](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-strands-agents.md)
- [OpenAI Agents SDK vs Terse Durable Actors](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-terse-durable-actors.md)
- [OpenAI Agents SDK vs TradingAgents](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-tradingagents.md)
- [OpenAI Agents SDK vs AI SDK](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-vercel-ai-sdk.md)
- [Pydantic AI Harness vs smolagents](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-smolagents.md)
- [Pydantic AI Harness vs Strands Agents](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-strands-agents.md)
- [Pydantic AI Harness vs Terse Durable Actors](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-terse-durable-actors.md)
- [Pydantic AI Harness vs TradingAgents](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-tradingagents.md)
- [Pydantic AI Harness vs AI SDK](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-vercel-ai-sdk.md)
- [Pydantic AI vs Pydantic AI Harness](https://www.anchorterminal.com/compare/pydantic-ai-vs-pydantic-ai-harness.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
