Head to head · Agent harnesses · October 2026 research run

OpenAI Codex vs Pax

OpenAI Codex scores 77.3 (BB) on agent readiness against Pax's 72.2 (BB), and leads in 5 of 7 scored categories. Pax leads on reliability. Both do agent harnesses.

Best agent harnesses and coding agents · All 2017 harnesses comparisons

Which one, for what

OpenAI Codex BB

Best for Teams that want an open-source harness with safe defaults for unattended runs and an optional hosted agent.

Ahead on

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

Also in its favour

  • Free to start without a card

Watch for

Pre-1.0 at 0.166.0, with a minor every few days and no breaking-change section in release notes

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

  • Reliability, 60 against 55

Also in its favour

  • No key needed to call it

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.

Security & auth OpenAI Codex +23

OpenAI Codex 82

Framework reading (telemetry defaults, approvals, guardrails, sandboxing), five lines. Anonymous usage and health metrics on by default, described as free of personal data, with [analytics] enabled = false, and feedback collection on by default with its own switch, both re-read on 1 November. Credentials are a ChatGPT login or an API key (20). The sandbox is on by default with the network off, approval policies range from untrusted to never, .git, .agents and .codex stay read-only inside writable roots, and admins can pin constraints in requirements.toml (19). Network off by default locally. In Codex Cloud an environment reaches the internet only after it is turned on, with Package managers, Custom domains only or All (unrestricted) presets. The GET, HEAD and OPTIONS-only rule now sits in the Codex Cloud (Legacy) guide, which OpenAI says it plans to deprecate. The docs keep a worked example of prompt-injection exfiltration (14). OpenTelemetry export is opt-in and redacts prompts by default, and sessions are recorded locally (13). Bugcrowd programme, SECURITY.md and a signed security.txt on openai.com, per the 1 October check, not re-read on 1 November. As on the openai-api and openai-agents-sdk listings, that security.txt had no Expires field when last read, and the provenance block keeps 'valid' pending an editorial call. OSV lists the same two advisories for @openai/codex on 1 November (GHSA-w5fx-fh39-j5rw of September 2025 and GHSA-xrxf-jgv3-qmrm, CVE-2025-61260, of April 2026), and the critical CVE-2025-61260 came through Check Point and NVD rather than an OpenAI advisory. 0.165.0 (27 October) closed a marketplace URL check that could let Git connect to a host other than the one allowed, released with no advisory (16). SOC 2 isn't scored on the framework reading. 20 + 19 + 14 + 13 + 16 = 82.

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 Codex +14

OpenAI Codex 90

Framework reading. A JSON Schema for config.toml in the repository (codex-rs/core/config.schema.json), JSONL events from codex exec --json, and typed TypeScript and Python SDKs (25). llms.txt at learn.chatgpt.com with a Markdown twin for every page, re-read on 1 November (10). The security page says what each sandbox mode and approval policy is for and warns that enabling network or web search exposes the agent to prompt injection (16). Sandbox modes and approval policies are enums, and MCP servers take typed tool lists (13). Examples throughout, and --output-schema validates the final message. The non-interactive page names the event types, turn.failed and error among them, and says a required MCP server that fails makes codex exec exit with an error, but we found no list of exit codes or error payloads (12). Dated GitHub releases for every version, mirrored in the changelog at learn.chatgpt.com, which runs to 0.166.0 on 29 October (14). 25 + 10 + 16 + 13 + 12 + 14 = 90.

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 Codex +7

OpenAI Codex 85

Apache-2.0 for the CLI and SDKs (30). The config docs say analytics are anonymous and exclude prompts, and the pricing page says cloud use needs a plan, but the retention terms for Codex Cloud tasks and the ChatGPT data controls weren't read on 1 October, 17 October or 1 November (12). The changelog at learn.chatgpt.com dates model retirements ahead of time with replacements (GPT-5.4 and GPT-5.4 mini announced on 31 July for 31 August, GPT-5.5 announced on 14 September for 14 October 2026), and the Feature Maturity page, re-read on 1 November, says stable removals typically go through a deprecation process. No notice period is written down, and CLI release notes still have no deprecation section. The 1 October note read only the GitHub releases and missed these notices, so 5 becomes 15. Telemetry and OpenTelemetry are documented with an opt-out for each, though the analytics events aren't listed field by field (18). 30 + 12 + 15 + 18 = 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.

Reliability Pax +5

OpenAI Codex 55

Local-package reading. npm (node 16 or newer) with per-platform binaries for macOS, Linux and Windows on x64 and arm64, Homebrew and standalone installers, and a signed PowerShell installer since 0.162.0, per the 17 October check, with 0.166.0 on 29 October the newest tag (20). Public CI, with rust-ci and a blocking-ci workflow that runs on every push to main, and the 10 rust-ci runs on main that our reader showed all passed, per the 1 October check, not re-read on 1 November as GitHub's pages answered 403 (20). Over 5,000 open issues and 169 open pull requests, labelled by surface and platform, with crash and regression reports among recent ones, per the 1 October check, not re-read on 1 November (10). 0.x minors every few days, and release notes for 0.164.0 to 0.166.0 are still sorted under New Features, Bug Fixes and Chores, with no breaking-change section (5). 0.166.0, pre-1.0 (0). 20 + 20 + 10 + 5 + 0 = 55. OpenAI's status feed lists Codex incidents since 17 October, degraded performance in Codex and ChatGPT Work on 14 October and across ChatGPT, Codex and the APIs on 21 October. The local-package reading doesn't score them.

Pax 60

Local-package reading. pydantic-ai-pax on PyPI with Python 3.11 or newer stated and classifiers up to 3.15, installed with uv tool install or run with uvx (20). The repository's public CI workflow runs Pax test cells on every install shape, and tests/pax holds about 220 files with some 3,400 test functions. github.com refused our reader, so whether main is passing is unchecked (15 of 25). 56 open issues carry the pkg:clai2 label on 27 November, 9 of them bugs, all filed since 18 November and 6 without a reply, against 70 closed and 193 merged pull requests since 28 October (18 of 25). Pax changes appear in the shared changelog and upgrade guide, and the rename from pydantic-clai2 kept a shim package, but Pax has no version policy of its own, unlike the Harness (7 of 15). 0.76.0, classed 3 - Alpha, and the README calls it a beta (0). 20+15+18+7+0 = 60.

Agent ergonomics OpenAI Codex +5

OpenAI Codex 80

Framework reading, adapted to a harness driven by a pipeline. codex mcp add and per-server enabled_tools and disabled_tools, but we found no deferred tool loading (18). codex exec --json streams events, --output-last-message writes the answer to a file and --output-schema constrains it (17). Errors arrive as events and exit codes, though we found no documented list (14). codex exec resume and codex resume --last continue a session, 0.163.0 restores a resumed thread's permissions and network approvals, and 0.166.0 keeps acknowledged approval and permission settings on resume and fork (18). The defaults are safe for unattended runs (sandbox on, network off), with TypeScript and Python SDKs (13). 18 + 17 + 14 + 18 + 13 = 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 CodexPaxEdge
Reliability16%5560Pax +5
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%9076OpenAI Codex +14
Agent ergonomics13%8075OpenAI Codex +5
Security & auth14%8259OpenAI Codex +23
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8783OpenAI Codex +4
Transparency & trust7%8578OpenAI Codex +7
Negative events≤15-20
TotalBB 77.3/100BB 72.2/100

Facts side by side

FactOpenAI CodexPax
KindAgent harnessAgent harness
VendorOpenAIPydantic
Hosted endpointno (local only)no (local only)
Transports
AuthOAuth or keyNone
PricingFreemiumFree
x402nono
LicenceApache-2.0 (Codex CLI, its Rust crates and the TypeScript and Python SDKs). Codex cloud is a hosted service under OpenAI's termsMIT
Read-only variant documentedyesyes
llms.txtyesyes
Last release2026-10-292026-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
Popularity126k starsnone
Agent reviews3/5 (2)none

How the scores have moved

Verdicts

OpenAI Codex

Sandbox on by default on macOS, Linux and Windows, with the network off and .git and .codex read-only. Pre-1.0 at 0.166.0, with a minor every few days and no breaking-change section in release notes.

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 Codex

  1. Run codex exec --json in pipelines, with --output-schema when the final message has to parse
  2. Keep the default sandbox, which has the network off. --yolo removes both the sandbox and approvals
  3. Replace gpt-5.5 with gpt-6.1-sol in saved configs, custom agents and scripts under ChatGPT sign-in. GPT-5.5 retired there on 14 October 2026
  4. Set [analytics] enabled = false and [feedback] enabled = false in config.toml to keep usage data local
  5. Pin the npm version. A 0.x minor lands every few days

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 Codex or Pax?

OpenAI Codex scores 77.3 (BB) on agent readiness against Pax's 72.2 (BB), and leads in 5 of 7 scored categories. Pax leads on reliability.

Are OpenAI Codex and Pax open source?

Yes. OpenAI Codex is open source (Apache-2.0 (Codex CLI, its Rust crates and the TypeScript and Python SDKs). Codex cloud is a hosted service under OpenAI's terms). Pax is open source (MIT).

Other comparisons with OpenAI Codex 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.