Last updated: 11/28/2026Last verified: 2026-11-26

Pax

Pax Overview: A Modular Terminal AI Coding Agent

5
0

Pax (pydantic-ai-pax) is the Pydantic AI team’s official terminal coding agent: a TUI in front of the Harness SDK’s Coder capability that reads code, edits files and runs commands, signs in with a ChatGPT or GitHub Copilot subscription or any provider API key, and treats every part — the coder itself, sandboxes, MCP, Logfire tracing — as a swappable plugin.

Free

What is Pax?

Pax (pydantic-ai-pax) is the Pydantic AI team's official terminal coding agent: a TUI in front of the Coder capability from the Pydantic AI Harness SDK. It reads the repository, edits files and runs shell commands while showing each step. Everything in it is a plugin — the coder itself, sandboxes, MCP and Logfire tracing — so components can be toggled, replaced or extended. Pax is MIT-licensed and installed from PyPI; model calls run on your own ChatGPT or GitHub Copilot subscription or your own provider API key. The Harness it is built on is still pre-1.0 and Pax is released as a beta.

Key Features

  • Terminal coding agent: reads the repository, edits files and executes shell commands through a TUI that shows every step as it happens.
  • Project instructions: reads AGENTS.md (or CLAUDE.md) from the folder you start it in and the folders above it, then a subfolder's as it works there. The docs note this is not yet available on Windows.
  • Bring your own model account: sign in with a ChatGPT or GitHub Copilot subscription, or supply an API key for OpenAI, Anthropic or another provider Pydantic AI supports. The default model is openai-codex:gpt-6-astra, which runs on a ChatGPT subscription.
  • Model and account switching: change models mid-conversation with /model, sign in to several accounts with /login and /accounts, and let Pax move to the next account when one hits a rate or usage limit.
  • Everything is a plugin: /plugins toggles coder, sandbox, observability (Logfire tracing) and mcp, installs a plugin from Git, or names a harness capability by import path. Plugins are Python code that runs as you.
  • Replace the agent entirely: pax --agent my_module:agent loads your own Pydantic AI Agent without Pax's plugins, keeping the terminal (--resume, --worktree, -p, -m).
  • Swappable sandboxes, chosen before the first prompt: /sandbox e2b, boxd, daytona, opensandbox, modal, render, sprites or kubernetes for a cloud sandbox, or /sandbox local smol / local boxlite for a local micro-VM. Pax syncs your branch and uncommitted diff into it.
  • Code mode on by default: the model writes one short Python snippet in Monty that calls many tools, and Ctrl+X then Ctrl+S enables speculative execution.
  • Session portability: every conversation is saved. /resume claude and /resume codex continue a session started in Claude Code or Codex, and pax --resume-claude / pax --resume-codex import one directly.
  • Persistent workflows: resume a saved session, fork it into the background with /fork, rewind to an earlier prompt with Esc Esc, or drive several sessions from a browser with pax --web.

Best For

Python developers already in the Pydantic AI ecosystem who want a terminal agent built on the same Agent objects they ship.Developers who want to point one TUI at whichever ChatGPT or Copilot subscription, or provider API key, they already pay for.Teams that need a coding agent they can extend with their own plugins instead of a closed client.Developers who want to choose a cloud sandbox or a local micro-VM per session rather than accept one fixed environment.Users who want to continue existing Claude Code or Codex sessions in a different terminal agent.

Pricing

Pax is MIT-licensed and free to install from PyPI (pydantic-ai-pax 0.75.0); no paid Pax tier or Pax pricing page was found. Model calls are not included: they are billed by your own ChatGPT or GitHub Copilot subscription, or by your own API key with OpenAI, Anthropic or another supported provider. The cloud sandbox backends (E2B, Modal, Daytona and the others) are separate third-party services with their own terms, which this overview did not verify.

Pros & Cons

Pros

  • Combines code reading, file editing and command execution in one visible terminal workflow.
  • Accepts a ChatGPT or GitHub Copilot subscription, or a provider API key, so you can use the model access you already have.
  • Unusually deep customisation: the coder, sandboxes, MCP and tracing are all plugins, and pax --agent swaps in your own Pydantic AI agent.
  • Cloud sandboxes and local micro-VMs are selectable per session, with your branch and uncommitted diff synced in.
  • Saved sessions, background forks, prompt rewind and a browser UI (pax --web) cover long-running work.
  • Can continue sessions started in Claude Code or Codex instead of starting over.
  • Open source under MIT, with the code in the pydantic-ai monorepo.

Cons

  • By default Pax runs commands and edits files as you, with no sandbox and no approval step — the docs say to run it in a project you trust. Sandboxing is opt-in via /sandbox, which has to be set in a new conversation before the first prompt.
  • Model access depends on a supported account or API key. Pax itself is free and MIT-licensed, but model usage is billed by your own subscription or provider key, and the sandbox backends are separate third-party services.
  • The Pydantic AI Harness it is built on is still pre-1.0 — the launch post says the team is getting ready to call the Harness 1.0 in about a month — so the plugin and settings surface can still change. Pax is published as 0.75.0 and labelled a beta.
  • Documented features not in Pax yet: durable execution is described as built into the Harness for agents built on the SDK but "not in Pax yet", and computer use is described as "coming in the next release as /computer-use".
  • The benchmark scores and per-run cost tables in the launch post are the vendor's own single runs from November; they were not independently reproduced for this overview, and Pax was not the cheapest harness in that table.
  • There is no standalone repository for Pax — github.com/pydantic/pydantic-ai-pax returns 404 and the code lives at src/pydantic_ai_pax inside the pydantic-ai monorepo — so the monorepo's star count is not a Pax-specific number.
  • AGENTS.md / CLAUDE.md following is documented as not yet available on Windows, and no Pax-specific privacy or data-retention statement was found in the docs checked for this overview.
  • No installation or hands-on test was performed for this overview; it is based on the launch post, the official Pax docs page, PyPI metadata and the monorepo LICENSE.

Alternatives

Claude Code

Another terminal coding agent. The Pax launch post benchmarks Pax against Claude Code on its own Harness-Bench SWE81 runs, and Pax can continue sessions started in Claude Code via /resume claude or pax --resume-claude.

OpenAI Codex

OpenAI's terminal coding agent, also benchmarked in the Pax launch post, and one of the two session sources Pax can import with /resume codex or pax --resume-codex.

FAQ

Details

Platform

macOSWindowsLinux

Features

  • Terminal TUI over the Harness SDK’s Coder capability: it reads the repo, edits files and runs shell commands, showing each step, with AGENTS.md / CLAUDE.md picked up from the folder you start it in
  • Bring any model or account — the docs say you can sign in with a ChatGPT or GitHub Copilot subscription or supply an API key for OpenAI, Anthropic or another supported provider, switch models mid-conversation, and sign in to several accounts so Pax moves to the next one at a limit
  • Everything is a plugin: toggle coder, sandbox, observability (Logfire tracing) and MCP from /plugins, install a plugin from Git or write one in Python, and swap the whole agent with pax --agent my_module:agent
  • Sandboxes are swappable before the first prompt — /sandbox e2b, boxd, daytona, opensandbox, modal, render, sprites or kubernetes for cloud, or /sandbox local smol / boxlite for a local micro-VM, with your branch and uncommitted diff synced in
  • Code mode is on by default (the model writes short Python snippets in Monty instead of shuffling tool results), and /resume imports existing Claude Code or Codex sessions with pax --resume-claude / --resume-codex
  • Sessions are saved: resume, fork into the background with /fork, rewind to an earlier prompt, or run several sessions in a browser with pax --web

Languages

en

Known limitations

  • Needs Python 3.11 or newer and is installed with uv (uv tool install --compile-bytecode pydantic-ai-pax); Pax itself is free and MIT-licensed, but every model call is billed by your own ChatGPT/Copilot subscription or your own provider API key
  • The docs state plainly that “Pax runs commands and edits files as you, with no sandbox and no approval step. Run it in a project you trust.” — sandboxing is opt-in via /sandbox
  • The Pydantic AI Harness it is built on is still pre-1.0: the launch post says the team is “getting ready to call it 1.0 in about a month”, so the plugin and settings surface can still change
  • Documented features that are not in Pax yet: durable execution is listed as “not in Pax yet”, and computer use is described as “coming in the next release”
  • The benchmark numbers in the launch post (Harness-Bench SWE81 averages, cost per run) are the vendor’s own single-run figures from November and are not reproduced here as verified results
  • There is no standalone repository for Pax — github.com/pydantic/pydantic-ai-pax returns 404 and the code lives at src/pydantic_ai_pax inside the pydantic-ai monorepo, so the monorepo’s star count is not a Pax-specific number
  • Verified from the launch post, the official Pax docs page, PyPI metadata (0.75.0, MIT, Python >=3.11) and the monorepo LICENSE on 2026-11-26; the tool was not installed or run for this listing

Rate This Tool

Related Tools