Pydantic · Pax by Pydantic: Open-Source, Model-Agnostic Terminal Coding Agent
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.
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
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.
Open source
Free
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.
Modalities
Text, Image
Available models
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. 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.
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.

Anomaly
Developers who want an open-source coding agent they can run in the terminal, a desktop window, or a browser, with any model provider and undo for agent changes
FreeEarendil Inc.
Developers who want a small, model-agnostic terminal agent they fully control and are willing to extend with their own tools, and teams embedding an agent loop in their own software
FreeAnthropic
Developers and teams who want deep codebase reasoning, multi-file changes, and persistent project instructions in a terminal-friendly or IDE-native workflow
Paid
OpenAI
Developers and teams already paying for ChatGPT Plus, Pro, Business, or Enterprise who want one coding agent across the terminal, IDE, and parallel cloud tasks
Freemium
Charm
Terminal-first developers who want one agent across many model providers and local models, with language-server context, MCP, and skills, on macOS, Linux, Windows, Android, or the BSDs
FreePax 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.
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 →