BetaEditorial Listing

Pax

Pydantic · Pax by Pydantic: Open-Source, Model-Agnostic Terminal Coding Agent

Open Pax

Pax is Pydantic's open-source coding agent for the terminal: it reads your code, edits files with diffs and runs shell commands with the model you choose, through a ChatGPT or GitHub Copilot sign-in or an API key. It suits developers, especially teams on Pydantic AI, who want a free, pluggable alternative to vendor-tied terminal agents and a ready-made terminal interface for their own Pydantic AI agents.

PricingFree
Setupmedium
Runs onDesktop
APINo
Open sourceYes
DocsYes
CategoryCoding
Coding AgentTerminalCLIOpen SourcePythonPydantic AIModel-AgnosticMCPSandboxPlugins

Best for

Python developers and teams already using Pydantic AI or Logfire who want a free, open-source terminal coding agent they can point at any model provider, run in a sandbox, and extend or replace piece by piece with plugins

Not ideal for

Developers who want a polished IDE extension or a hosted background agent, teams that need a stable 1.0 tool today, or anyone who wants per-action approval prompts and sandboxing without extra setup

Who it's for

Python developers, AI engineers building with Pydantic AI, and teams that want a model-agnostic, extensible terminal coding agent

Capabilities

  • Terminal coding agent that reads code, edits files with diff views and runs shell commands, with ! to run a command directly and !! for interactive programs
  • Everything is a plugin, the coder included: built-ins cover file and shell tools with sub-agent delegation, ask-user, repo context from AGENTS.md or CLAUDE.md, compaction, persistence, MCP, desktop notifications and Logfire tracing, and /plugins disable turns any of them off
  • --agent module:agent runs any Pydantic AI agent from your own codebase in the Pax TUI instead of the default coder
  • Model-agnostic through Pydantic AI: sign in with a ChatGPT or GitHub Copilot subscription, or use API keys; OpenAI, Anthropic and Google SDKs are included, with install extras for Bedrock, Groq, Mistral, Cohere, xAI, OpenRouter, Hugging Face and more; multiple accounts per provider and fallback model chains
  • Swap where a session runs before the first prompt: cloud sandboxes (e2b, boxd, Daytona, OpenSandbox, Modal, Render, Sprites, Kubernetes) or local smol or BoxLite micro-VMs, with your branch and uncommitted changes synced in
  • Code mode, on by default, has the model write short Python snippets in Monty that call several tools and return only what matters, running each statement as it streams in; optional speculative execution (Ctrl+X Ctrl+S) starts file reads and searches even earlier
  • Every conversation is saved: /resume, /fork to run a copy in the background, and Esc twice to rewind the conversation (file changes are not undone), plus pax --resume-claude and pax --resume-codex to import Claude Code and Codex sessions
  • /usage and /cost show tokens and cost per turn and per conversation from public pricing data
  • pax --web runs several sessions in a local browser UI, and -p runs a single prompt non-interactively
  • Optional plugins for GitHub, Linear, Notion, Slack, Google Workspace and Logfire MCP

Limitations

  • In beta: Pydantic describes it as on the road to 1.0, so commands and plugin APIs may change
  • No sandbox and no approval step by default: Pax runs shell commands and edits files as you; the first-run folder-trust prompt only changes how repo instruction files and skills are treated, not what the agent may do
  • Requires Python 3.11 or newer and is installed with uv; on macOS the built-in /bin/pax archiver can answer until your shell picks up the new PATH, so you may need a new terminal or to run pydantic-ai-pax
  • Model usage is billed by your provider or counts against your ChatGPT or Copilot plan, and /cost shows unknown for models without public price data
  • Terminal and local web UI only; no IDE extension or hosted background agent is documented
  • Computer use was described as upcoming at launch rather than generally available
  • Plugins are Python code that runs as you, so third-party plugins need the same trust as any code you install

Use cases

  • Making multi-file code changes from the terminal with a model of your choice, including open-weight models through OpenRouter or Groq
  • Running a risky refactor inside a Daytona, e2b or Modal sandbox instead of on your own machine
  • Giving an in-house Pydantic AI agent a full terminal UI with sessions and tools by launching it with --agent
  • Continuing a Claude Code or Codex session in Pax on a different model
  • Tracing a coding agent's model calls and tool use in Pydantic Logfire while debugging agent behavior
  • Comparing token cost per task across providers with /usage and /cost

Our take

Pax is most interesting less as yet another terminal coding agent and more as the reference app for Pydantic's agent stack. If you already build with Pydantic AI, --agent turns any of your agents into a full terminal product with sessions, MCP and Logfire tracing, and the plugin model means you can swap the coder rather than live with it. As a daily coding agent it covers the expected ground, adds sandboxes and cost tracking that others leave to you, and Pydantic's own benchmark puts it level with OpenCode and pi rather than clearly ahead. The caveats are real: it is beta, it runs commands as you with no sandbox or approval step by default, and it is terminal-only. Try it if you value an open, Python-native harness you can own; stick with a vendor agent if you want a finished, IDE-integrated product.

Who should use it

Developers who want an open-source terminal coding agent they can run against any model provider, especially Python teams already using Pydantic AI or Logfire who want to extend the agent with plugins or run their own agents in the same interface.

Who should skip it

Teams that need a stable, supported 1.0 tool, prefer working inside an IDE, want a hosted agent that works on tasks in the background, or want approval prompts before every command without setting up a sandbox.

Strengths

  • Free and MIT-licensed, with any Pydantic AI-supported model provider
  • Plugin architecture lets you replace the coder itself or add tools without forking
  • Runs your own Pydantic AI agents in the same TUI with --agent
  • Built-in cloud and micro-VM sandbox options and cost tracking per turn

Weaknesses

  • Beta, with 1.0 still ahead
  • Runs unsandboxed with no approval step unless you add a sandbox
  • Terminal-only, with no IDE extension or hosted agent
  • Needs Python 3.11+ and uv, plus a model subscription or API key

Pax pricing

Open source

Free

  • MIT-licensed, installed with uv from PyPI (pydantic-ai-pax)
  • Sign in with a ChatGPT or GitHub Copilot subscription, or bring API keys for OpenAI, Anthropic, Google and other providers
  • All built-in plugins and sandbox integrations included

Note: Pax itself is free. Model usage is paid to your provider per token or counts against a ChatGPT or GitHub Copilot subscription you sign in with, and sandbox providers such as e2b, Daytona or Modal bill separately if you use them. /usage and /cost estimate spend from public price data.

Technical specs

Modalities

Text, Image

Available models

OpenAI (API or ChatGPT sign-in)GitHub CopilotAnthropic ClaudeGoogle GeminiAmazon BedrockGroqMistralCoherexAIOpenRouterHugging Face

Where Pax excels

Team building agents on Pydantic AI

Launching an in-house agent with --agent gives it a terminal UI, persistent sessions, MCP and Logfire tracing without building any of that, which speeds up testing and internal rollout.

Developer comparing model providers on real work

The same agent and plugins run against OpenAI, Anthropic, Google or open-weight models, and /cost shows what each conversation cost, which keeps the harness constant while the model changes.

Running untrusted or risky changes

Moving a session into a cloud sandbox or local micro-VM before the first prompt keeps shell commands and file edits off your own machine.

Pax vs. competitors

Pax vs. OpenCode

OpenCode is an established open-source, provider-agnostic terminal coding agent. Pax covers similar ground but is built on Pydantic AI, makes every part a plugin, runs custom Pydantic AI agents via --agent, and is still in beta.

Pax vs. Pi Coding Agent

Pi is a minimal, extensible terminal coding agent. Pax also emphasizes extensibility, through Pydantic AI Harness plugins, and adds built-in sandbox providers, Logfire tracing and Claude Code and Codex session import.

Pax vs. Claude Code

Claude Code is Anthropic's coding agent, tied to Claude models and available in the terminal, IDEs and the cloud. Pax runs Claude and many other providers from one terminal app, and can import Claude Code sessions.

Pax vs. OpenAI Codex

Codex is OpenAI's coding agent across CLI, IDE and cloud tasks. Pax is a provider-agnostic, MIT-licensed terminal agent that can use a ChatGPT subscription too and resume Codex sessions on other models.

Pax vs. Crush

Crush is Charm's multi-model terminal coding agent with LSP and MCP support, source-available under FSL-1.1-MIT. Pax is MIT-licensed and built for the Python and Pydantic AI ecosystem, with a plugin system and the ability to run your own agents in its TUI.

Frequently asked questions

What is Pax by Pydantic?

Pax is the official Pydantic AI coding agent for the terminal. It reads code, edits files and runs shell commands with the model you choose, and it is built on the Pydantic AI Harness SDK, where every part, including the coding agent, is a plugin.

Is Pax free and open source?

Yes. Pax is published on PyPI as pydantic-ai-pax under the MIT license, in the pydantic/pydantic-ai repository. You pay only for model usage, through an API key or a ChatGPT or GitHub Copilot subscription, and for any sandbox provider you choose.

How do I install Pax?

Run uvx pydantic-ai-pax to try it without installing, or uv tool install pydantic-ai-pax to keep it. It needs Python 3.11 or newer. On macOS, if the system pax archiver answers instead, open a new terminal or run pydantic-ai-pax directly.

Which models does Pax support?

You can sign in with a ChatGPT or GitHub Copilot subscription or use API keys. The OpenAI, Anthropic and Google SDKs are included, and install extras add providers such as Bedrock, Groq, Mistral, Cohere, xAI, OpenRouter and Hugging Face. You can keep several accounts per provider and set fallback model chains.

Can I move my Claude Code or Codex sessions to Pax?

Yes. pax --resume-claude and pax --resume-codex import existing sessions from those tools so you can continue them in Pax.

Pax vs OpenCode: what is the difference?

Both are open-source, model-agnostic terminal coding agents. Pax is built on Pydantic AI, treats every component as a swappable plugin, can run any Pydantic AI agent in its TUI with --agent, and offers built-in cloud and micro-VM sandboxes; it is still in beta and terminal-focused, while OpenCode also has desktop and editor clients.

Integrations & fit

OpenAIChatGPTGitHub CopilotAnthropicGoogleAmazon BedrockGroqMistralCoherexAIOpenRouterHugging FacePydantic AIPydantic LogfireMCPe2bDaytonaModalKubernetesRenderGitHubLinearNotionSlackGoogle WorkspaceClaude CodeCodex
Good fit forSolo / individual, Startup / small team
Pricing modelFree· No cost to start
See pricing on Pax →

Alternatives to consider

About Pax

Pax is the official terminal coding agent from the team behind Pydantic and Pydantic AI, released in beta on November 25, 2026 together with the Pydantic AI Harness SDK it is built on. You install it with uv (uvx pydantic-ai-pax to try it, uv tool install pydantic-ai-pax to keep it), pick a model with /model, sign in with a ChatGPT or GitHub Copilot subscription via /login or set a provider API key, and work in a TUI that edits files, shows diffs, runs shell commands and keeps sessions you can resume, fork or rewind. Its defining design choice is that everything is a plugin, the coding agent included: file and shell tools, MCP, repo context from AGENTS.md or CLAUDE.md, compaction, persistence and Logfire tracing are each plugins you can disable, replace or extend without forking. Two features set it apart from other terminal agents. First, --agent points the same TUI at any Pydantic AI agent in your own codebase, so teams building agents get a chat interface, sessions and tooling for free. Second, a session can be moved into a cloud sandbox (e2b, Daytona, Modal, Kubernetes and others) or a local micro-VM before the first prompt, and Code Mode lets the model write short Python snippets that search and read files and return only what matters. It can also resume sessions from Claude Code and Codex. Pax is MIT-licensed and free; model usage goes through your subscription or API account, and /usage and /cost show tokens and cost per turn and in total. In Pydantic's own Harness-Bench SWE81 (single November runs across eight models, full methodology promised for 1.0), Pax averaged 58.5, narrowly ahead of OpenCode (58.2) and pi (57.3); pi was cheaper per run. The tradeoffs: it is beta software heading to 1.0, by default it runs commands and edits files as you with no sandbox and no approval step, it needs Python 3.11 or newer, and it is a terminal tool with no IDE extension or hosted cloud agent.

Updates from Pax

LaunchPax and Pydantic AI Harness released in beta

Pydantic released Pax, its terminal coding agent, alongside the Pydantic AI Harness SDK beta, with plugins, --agent for custom Pydantic AI agents, cloud and micro-VM sandboxes, Code Mode and session import from Claude Code and Codex. Pydantic said it is heading toward 1.0 next month.

Are you the founder? Claim this listing →