Featured:MeloLab– Create songs and background music with AI.

Pax is Pydantic AI's official terminal coding agent, built on the Harness SDK. Learn how to try it, swap sandboxes, use code mode, and import sessions.

Type:
AI Tool
Pax product preview
Contents

What is Pax?

Pax is Pydantic AI's official terminal coding agent, built on the Harness SDK. Learn how to try it, swap sandboxes, use code mode, and import sessions.

Updated ·

Pax: Pydantic AI's Terminal Coding Agent

Announcement date:

Pax (pydantic-ai-pax) is the official Pydantic AI coding agent for the terminal, built on the Pydantic AI Harness SDK. It is a plugin-based agent you can run without installing via uvx, point at your own Pydantic AI agent with --agent, and run in cloud or local sandboxes. In single runs of Harness-Bench SWE81 it had the highest average score of the four harnesses that ran all eight models, narrowly, and it cost less than half of what Codex did on GPT-6.2 Sol.

Pax terminal session showing the PAX banner, pydantic-ai-pax 0.75.0, a forecast question answered in three steps, a tool-call count line, and a status bar with the model.
Pax terminal session showing the PAX banner, pydantic-ai-pax 0.75.0, a forecast question answered in three steps, a tool-call count line, and a status bar with the model. — Image from the publisher’s original materials.

What Pax is and how it relates to the Harness SDK

Pax is the official Pydantic AI coding agent for the terminal, built on the Harness SDK. The Harness SDK is the underlying layer; Pax is the terminal-facing agent shipped on top of it.

The design is plugin-first: everything in Pax is a plugin, including the coding agent itself, sandboxes, MCP, and Logfire tracing. That means the pieces you would normally expect to be hard-wired are swappable, and you can add your own plugins alongside the built-in ones.

  • Pax is the official Pydantic AI terminal coding agent.
  • It is built on the Pydantic AI Harness SDK.
  • The coding agent, sandboxes, MCP, and Logfire tracing are all plugins.

Trying Pax and pointing it at your own agent

You can try Pax without installing it by running uvx pydantic-ai-pax, or keep it installed with uv tool install pydantic-ai-pax.

Because the coding agent is a plugin, you can bring your own harness: point Pax at any Pydantic AI agent with the --agent flag. This is the main path for teams that already have a Pydantic AI agent and want a terminal interface around it.

  • Try without installing: uvx pydantic-ai-pax.
  • Install to keep: uv tool install pydantic-ai-pax.
  • Use your own agent: pass --agent to point Pax at any Pydantic AI agent.

Sandboxes and code mode

Before the first prompt, you can swap where a session runs with /sandbox. Cloud options include e2b, boxd, daytona, opensandbox, modal, render, sprites, and kubernetes; local options are smol and BoxLite micro-VMs via /sandbox local smol or /sandbox local boxlite.

Code mode is on by default. Rather than burning turns shuffling results between tools, the model writes a short Python snippet in Monty that searches, reads files, and returns only what matters. In practice this means fewer round trips between tool calls and a tighter loop between reading and acting.

  • Swap sandbox before the first prompt with /sandbox PROVIDER.
  • Cloud providers: e2b, boxd, daytona, opensandbox, modal, render, sprites, kubernetes.
  • Local: /sandbox local smol or /sandbox local boxlite.
  • Code mode is on by default and uses Monty for short Python snippets.

Benchmarks and cost versus Codex and Claude Code

In single runs of Harness-Bench SWE81, Pax had the highest average score of the four harnesses that ran all eight models, narrowly. That is a single-run result, so treat it as a directional signal rather than a settled ranking.

On cost, Pax cost less than half of what Codex did on GPT-6.2 Sol, and about the same as Claude Code on Claude Opus 5.5. Cost comparisons depend heavily on the model and provider you pair with Pax, so the numbers above are specific to those pairings.

  • Highest average score of four harnesses on Harness-Bench SWE81 in single runs, narrowly.
  • Less than half the cost of Codex on GPT-6.2 Sol.
  • About the same cost as Claude Code on Claude Opus 5.5.

Resuming Claude Code and Codex sessions

Pax can show your existing Claude Code or Codex sessions right next to its own via /resume, or import one directly with pax --resume-claude or pax --resume-codex. After importing, you can keep going on any model.

This is useful when you want to continue work that started in another terminal agent without losing the conversation context.

  • /resume lists existing Claude Code and Codex sessions alongside Pax's own.
  • Import directly with pax --resume-claude or pax --resume-codex.
  • Continue the imported session on any model.

What is not in Pax yet

Durable execution that survives crashes and restarts is built into the Harness for agents built on the SDK, but it is not in Pax yet. If crash-resilient long-running sessions are a hard requirement, that gap matters.

Computer use is planned for the next release as /computer-use. It must be started in a new conversation before /sandbox PROVIDER, the sandbox then starts with a desktop the model can see and control through a computer tool, and the desktop needs /permissions full. /computer-use off removes the tool again.

On versioning, Pydantic AI Harness is planned to be called 1.0 in about a month, with the same version policy as Pydantic AI. Pricing for Pax itself is not stated in the announcement.

  • Durable execution is in the Harness SDK but not in Pax yet.
  • Computer use is planned for the next release, not available now.
  • Harness is planned to reach 1.0 in about a month with the same version policy as Pydantic AI.
  • Pax pricing is not stated in the announcement.

Questions

What is Pax and how does it relate to the Pydantic AI Harness SDK?

Pax is the official Pydantic AI coding agent for the terminal, built on the Harness SDK. Everything in Pax is a plugin, including the coding agent itself, sandboxes, MCP, and Logfire tracing.

How do I install Pax or point it at my own Pydantic AI agent?

Run uvx pydantic-ai-pax to try it without installing, or uv tool install pydantic-ai-pax to keep it. To use your own agent, point Pax at any Pydantic AI agent with the --agent flag.

Can Pax resume existing Claude Code or Codex sessions?

Yes. /resume shows your existing Claude Code or Codex sessions next to Pax's own, or you can import one directly with pax --resume-claude or pax --resume-codex and keep going on any model.

Original sources

  1. pydantic.dev — Original source 1 ↗
  2. pydantic.dev — Original source 2 ↗

Tool Info

Has this tool changed? Help us keep it up to date

See also: related tools and guides

Loading reviews…

Pax Reviews

Not rated yet0 user reviews

Do you recommend Pax? Leave a comment below!

Your rating
0 / 2000

Loading reviews…

Categories

FOR PRODUCT BUILDERS

Built something useful? Help people find it.

Start with your website. Add your logo, screenshots and product details to a listing you can keep up to date.

Verify your website badge for a free listing.