Head to head · Agent harnesses · October 2026 research run

OpenAI Agents API vs Pax

OpenAI Agents API scores 75.2 (BB) on agent readiness against Pax's 72.2 (BB), and leads in 5 of 7 scored categories. Pax leads on payments & pricing. Both do agent harnesses.

Best agent harnesses and coding agents · All 2017 harnesses comparisons

Which one, for what

OpenAI Agents API BB

Best for Teams that want OpenAI to run the agent loop, with sandboxes, MCP tools and subagents, and are fine with a beta API, US-only data residency and no Zero Data Retention.

Ahead on

  • Schema & documentation, 88 against 76
  • Agent ergonomics, 80 against 75
  • Security & auth, 87 against 59
  • Transparency & trust, 85 against 78

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

Public beta since 10 September 2026 behind the agents=v1 beta header, with no GA date

Pax BB

Best for A developer who wants a terminal coding agent on any model, or a terminal front end for their own Pydantic AI agent (pax --agent).

Ahead on

  • Payments & pricing, 90 against 45

Also in its favour

  • No key needed to call it
  • Open source

Watch for

The default full mode runs every command and file write without asking, and file tools reach paths outside the project

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing Pax +45

OpenAI Agents API 45

No machine payment protocol (0). Model, tool and container prices published without a login, and no fee for the API itself (20). The Free tier reading of the openai-api listing, half (10). Sign-up in a browser (0). 0 + 20 + 10 + 0 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

Pax 90

Self-hosted rule. No payment protocol (0). A free MIT package with nothing to buy from Pydantic, so the pricing, free-tier and onboarding lines take 30 each. An agent can install it with uvx pydantic-ai-pax and run it against a self-hosted vLLM server or with a provider key, with no Pydantic account. 0+30+30+30 = 90.

Security & auth OpenAI Agents API +28

OpenAI Agents API 87

Project keys with restricted per-endpoint permissions, service accounts and workload identity, per the openai-api listing; we didn't confirm a key can be limited to /v1/agents (27 of 30). Automatic review for approvals, a sandbox network restricted to a host allowlist, vaults for secrets and a sandbox security guide (17 of 20). The agent reads web pages, MCP results and browser content; the sandbox security guide and approval flow are the mitigations, with no prompt-injection guide of its own found (8 of 15). Tracing, observability and usage per session and admin audit logs (15). SOC 2 Type 2, ISO 27001 family, Bugcrowd bounty and a disclosure policy, per the openai-api listing (20). Not ZDR-eligible and US residency only, recorded under transparency. 27 + 17 + 8 + 15 + 20 = 87.

Pax 59

Harness reading of the framework checklist, five lines, as for the other harnesses. The default-on observability plugin exports only when a Logfire token or OTLP exporter is configured, including in the environment, leaves prompts, results and files out by default, and tags session roots with the user's email. Pax checks for updates at startup on uv tool installs. Shell commands get Pax's environment minus provider API keys, and saved credentials are encrypted with a keychain key (20 of 30). The default full mode has no approval step and no sandbox, file tools reach paths outside the project, auto and read-only modes hold risky calls, and /sandbox moves a conversation into a local microVM or a cloud sandbox (10 of 20). Folder trust sends an untrusted repository's instruction files to the model as the repository's, and project plugins, hooks and MCP files need approval pinned to their contents, but the Harness's Prompt Injection Defender isn't on by default (9 of 15). Every conversation is saved, and OpenTelemetry spans cover model and tool calls when exported (12 of 15). Valid security.txt and GitHub private reporting for the repository, no advisories for Pax or pydantic-clai2 on OSV, but the threat model handles reports against Pax as bugs while it is unlaunched (8 of 20). 20+10+9+12+8 = 59.

Schema & documentation OpenAI Agents API +12

OpenAI Agents API 88

The reference is linked from the overview and the SDKs carry beta.agents types; we didn't confirm /agents/sessions in OpenAI's public OpenAPI file, so 15 of 25. llms.txt with every Agents API page and Markdown twins (10). The overview, architecture page and the agents guide that compares the Agents API, Agents SDK and Responses API say when to use it (20). Typed configuration with enumerated container sizes, network modes and environment types (13 of 15). Examples in six languages and an errors page with codes per HTTP status, turn and session (15). Dated changelog entries and a versioned beta header (15). 15 + 10 + 20 + 13 + 15 + 15 = 88.

Pax 76

Harness reading, as for opencode and mistral-vibe-cli. Settings are a typed table with defaults, the plugin API is Python, and read_pax_docs serves Pax's own docs to the agent, but there's no JSON schema for the config and no structured output for headless runs (12 of 25). pydantic.dev's llms.txt indexes the Pax overview with a Markdown twin (10). The four-layer table says when to start with Pax, Coder, the Harness or Pydantic AI, and the reference warns that file tools reach outside the workspace and that command patterns are not a sandbox (17 of 20). Permission modes, update channels and plugin settings are named values with stated defaults (11 of 15). Examples for every command, and headless errors go to stderr with a nonzero status, but only Ctrl+C's 130 is a documented code (11 of 15). Pax entries in the shared changelog at pydantic.dev/docs/ai/project/changelog/ and GitHub releases (15). 12+10+17+11+11+15 = 76.

Transparency & trust OpenAI Agents API +7

OpenAI Agents API 85

Closed service with clear terms, Apache-2.0 SDKs (15). Session state retained until deleted, deletable sessions and artifacts, not ZDR-eligible, US residency only, and the data-controls guide agrees; no retention period for artifacts after a sandbox expires (25 of 30). Dated deprecation notices with minimum periods for GA models; a beta API can change faster (15 of 20). Subprocessors and processing countries listed, per the openai-api listing (20). 15 + 25 + 15 + 20 = 75.

Pax 78

MIT, with third-party notices in the package (30). The README says where settings, sessions, plugins and credentials live and how credentials are encrypted. Pydantic's privacy policy covers its hosted services, and Pax's data goes to the model provider the user picks and to a telemetry destination only when one is configured (20 of 30). The pydantic-clai2 rename keeps old commands with a deprecation note and says the shim will stop being released in a future version, without a date, and the logfire plugin rename carried settings over (10 of 20). The telemetry section documents what is sent, the email tag and /plugins disable observability (17 of 20). 30+20+10+17 = 77.

Agent ergonomics OpenAI Agents API +5

OpenAI Agents API 80

Read as an API an agent drives. Context is compacted automatically, and session budgets and streamed events keep output sized (20 of 25). Sessions can be listed, continued and steered, events streamed or sent by webhook, artifacts fetched (15 of 20). Actionable error codes with recovery steps (20). No idempotency key; a documented check-then-retry procedure (10 of 20). One session call with defaults (medium sandbox, network enabled), SDKs in five languages (15). 20 + 15 + 20 + 10 + 15 = 80.

Pax 75

Harness reading, scored on what an agent or pipeline driving Pax supplies. Coder's six tools plus delegate_task, plugins switch off from a menu, and MCP servers load on demand by default so their tools stay out of prompts (22 of 25). --request-limit N bounds model requests and /compact trims context, but the reference says there is no spending cap in Pax (14 of 20). Headless runs exit nonzero with the error on stderr, and plugin load failures abort them, with no catalogue of exit codes (12 of 20). Every turn is saved, --resume, --continue and --fork-session work headless, conversations rewind, and fallback chains move to the next account on a rate limit (18 of 20). One required input for pax -p, but the default model needs a ChatGPT sign-in, output is text only, and Pax is Python only (9 of 15). 22+14+12+18+9 = 75.

Score by category

CategoryWeightOpenAI Agents APIPaxEdge
Reliability16%6060even
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8876OpenAI Agents API +12
Agent ergonomics13%8075OpenAI Agents API +5
Security & auth14%8759OpenAI Agents API +28
Payments & pricing10%4590Pax +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8783OpenAI Agents API +4
Transparency & trust7%8578OpenAI Agents API +7
Negative events≤1500
TotalBB 75.2/100BB 72.2/100

Facts side by side

FactOpenAI Agents APIPax
KindHTTP APIAgent harness
VendorOpenAIPydantic
Hosted endpointhttps://api.openai.com/v1/agents/sessionsno (local only)
TransportsHTTP
AuthAPI keyNone
PricingPay per useFree
x402nono
LicenceProprietary hosted API under OpenAI's Services Agreement. The SDKs are Apache 2.0MIT
Read-only variant documentednoyes
llms.txtyesyes
Last release2026-10-162026-11-27
Terms last updatedcouldn't be readno date given
Privacy policy last updatedcouldn't be read2024-02-21
Customer content may train modelscouldn't be readnot found in the text
Terms restrict automated accesscouldn't be readnot found in the text
Terms restrict benchmarkingcouldn't be readyes
Terms or service can change without noticecouldn't be readnot found in the text
Arbitration or class-action waivercouldn't be readyes

How the scores have moved

OpenAI Agents API

Pax

No score change since it was listed.

Verdicts

OpenAI Agents API

OpenAI's hosted agent runtime, the Codex harness behind one session call, with MCP, functions, web search, computer use, subagents and sandboxes on OpenAI or your own infrastructure. Documentation, errors and SDKs are thorough. It's still public beta, can't use Zero Data Retention and keeps data in the United States only.

Pax

Pax puts Pydantic's Coder agent in a terminal with any Pydantic AI model, ChatGPT or Copilot sign-in, saved and forkable sessions, MCP servers loaded on demand and a plugin for every part. By default it runs commands and edits files with no approval step or sandbox, and the vendor still calls it beta.

Before you call either

OpenAI Agents API

  1. POST https://api.openai.com/v1/agents/sessions with a project key and the header OpenAI-Beta: agents=v1, or use client.beta.agents in the SDKs
  2. Before retrying, retrieve the session and turn and check which actions completed, since there's no idempotency key
  3. Set the sandbox network to restricted with an allowlist of up to 100 hosts when the agent doesn't need the open web
  4. Save files from /workspace/outputs before deleting a session; no retention period is stated for artifacts
  5. Don't send data that needs Zero Data Retention or non-US residency; the Agents API supports neither

Pax

  1. Before a headless run, set pax config set run.permissions auto or read-only. Headless runs deny held calls instead of waiting
  2. Pass -m with a model you have a key for. The default model needs a ChatGPT sign-in made beforehand with /login openai-codex
  3. Read the stderr text and the exit status. pax -p prints only the final answer on stdout, and Ctrl+C exits with 130
  4. Unset LOGFIRE_TOKEN and OTLP exporter variables, or run /plugins disable observability, if traces must stay on the machine
  5. Use --request-limit N to bound a run. Pax has no spending cap of its own

Questions

Which is better for AI agents, OpenAI Agents API or Pax?

OpenAI Agents API scores 75.2 (BB) on agent readiness against Pax's 72.2 (BB), and leads in 5 of 7 scored categories. Pax leads on payments & pricing.

Can an agent call OpenAI Agents API and Pax without installing anything?

OpenAI Agents API has a hosted endpoint at https://api.openai.com/v1/agents/sessions. No hosted endpoint is listed for Pax.

Are OpenAI Agents API and Pax open source?

No open-source release is listed for OpenAI Agents API. Pax is open source (MIT).

Other comparisons with OpenAI Agents API or Pax

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.