最后更新:11/28/2026最后核验:2026-11-26

Pax

Pax 功能介绍:模块化终端 AI 编程智能体

5
0

Pax(pydantic-ai-pax)是 Pydantic AI 官方推出的终端编码 agent:在 Harness SDK 的 Coder 能力之上提供 TUI,读代码、改文件、跑命令,可用 ChatGPT 或 GitHub Copilot 订阅登录,也可接入任意模型提供方的 API key,编码器本身、沙箱、MCP 与 Logfire 追踪都做成可插拔插件。

免费

Pax 是什么

Pax(pydantic-ai-pax)是 Pydantic AI 团队推出的官方终端编码 agent:它是 Pydantic AI Harness SDK 中 Coder 能力之上的终端界面(TUI)。它会读取代码仓库、编辑文件并执行 shell 命令,同时把每一步都显示出来。Pax 里的一切都是插件——编码 agent 本身、沙箱、MCP 与 Logfire 追踪——因此各组件可以开关、替换或扩展。Pax 采用 MIT 许可并从 PyPI 安装;模型调用走你自己的 ChatGPT 或 GitHub Copilot 订阅,或你自己的模型提供方 API key。它依赖的 Harness 尚未发布 1.0,Pax 本身也以 beta 形式发布。

核心功能

  • 终端编码 agent:通过 TUI 读取代码仓库、编辑文件并执行 shell 命令,每一步都实时显示。
  • 项目指令:从启动目录及其上层目录读取 AGENTS.md(或 CLAUDE.md),工作到子目录时再读该子目录的;文档注明该能力在 Windows 上尚不可用。
  • 自带模型账号:可用 ChatGPT 或 GitHub Copilot 订阅登录,也可提供 OpenAI、Anthropic 或其他 Pydantic AI 支持的提供方 API key。默认模型为 openai-codex:gpt-6-astra,走 ChatGPT 订阅。
  • 模型与账号切换:用 /model 在对话中途换模型,用 /login 与 /accounts 登录多个账号,某个账号触达速率或用量上限时 Pax 会切到下一个。
  • 一切皆插件:/plugins 可开关 coder、sandbox、observability(Logfire 追踪)与 mcp,可从 Git 安装插件,或按 import 路径指定 Harness 能力。插件是以你的身份运行的 Python 代码。
  • 整体替换 agent:pax --agent my_module:agent 会加载你自己的 Pydantic AI Agent,不加载 Pax 的插件,同时保留终端能力(--resume、--worktree、-p、-m)。
  • 可换沙箱,需在首条提示前选定:/sandbox e2b、boxd、daytona、opensandbox、modal、render、sprites 或 kubernetes 使用云沙箱,或 /sandbox local smol / local boxlite 使用本地微虚拟机。Pax 会把当前分支与未提交改动同步进去。
  • 默认开启 code mode:模型写一段 Monty 里的短 Python 代码来调用多个工具;Ctrl+X 再 Ctrl+S 可开启推测执行。
  • 会话可迁移:每个会话都会保存。/resume claude 与 /resume codex 可继续在 Claude Code 或 Codex 里开始的会话,pax --resume-claude / pax --resume-codex 可直接导入。
  • 持久化工作流:恢复已保存会话、用 /fork 在后台分叉、按两次 Esc 回退到更早的提示,或用 pax --web 在浏览器里同时驱动多个会话。

最适合

已经在 Pydantic AI 生态里的 Python 开发者:希望终端 agent 与自己在服务里运行的 Agent 对象是同一套。希望把一个 TUI 指向自己已有的 ChatGPT 或 Copilot 订阅、或自己的提供方 API key 的开发者。需要可自行扩展插件、而不是使用封闭客户端的团队。希望每个会话自行选择云沙箱或本地微虚拟机、而不接受固定环境的开发者。希望换到另一个终端 agent 继续原有 Claude Code 或 Codex 会话的用户。

定价

Pax 采用 MIT 许可,可从 PyPI 免费安装(pydantic-ai-pax 0.75.0);本次核对未发现付费 Pax 档位,也未发现 Pax 定价页。模型调用不含在内:费用由你自己的 ChatGPT 或 GitHub Copilot 订阅承担,或用你自己的 API key 由 OpenAI、Anthropic 等支持的提供方计费。云沙箱后端(E2B、Modal、Daytona 等)属于第三方服务,有各自的条款,本次未核实。

优缺点

优点

  • 把读代码、改文件与执行命令整合在一个可见的终端工作流里。
  • 可接受 ChatGPT 或 GitHub Copilot 订阅,也可用提供方 API key,直接复用已有的模型访问权限。
  • 自定义程度高:coder、沙箱、MCP 与追踪都是插件,pax --agent 还能换成你自己的 Pydantic AI agent。
  • 云沙箱与本地微虚拟机可按会话选择,并把当前分支与未提交改动同步进去。
  • 会话保存、后台分叉、提示回退与浏览器界面(pax --web)覆盖长时间任务。
  • 可继续在 Claude Code 或 Codex 里开始的会话,不必从头再来。
  • MIT 开源,代码位于 pydantic-ai monorepo 中。

缺点

  • 默认情况下 Pax 以你的身份运行命令并编辑文件,没有沙箱也没有审批步骤——文档要求你在信任的项目里运行。沙箱需手动开启,且必须在新会话的首条提示前用 /sandbox 设定。
  • 模型访问依赖受支持的账号或 API key。Pax 本身免费且为 MIT 许可,但模型调用由你自己的订阅或提供方 key 计费,沙箱后端也是独立的第三方服务。
  • 它依赖的 Pydantic AI Harness 尚未发布 1.0——发布文说团队准备在约一个月后把 Harness 称为 1.0——因此插件与设置接口仍可能变化。Pax 当前发布版本为 0.75.0,并标注为 beta。
  • 文档中尚未进入 Pax 的功能:durable execution 被描述为 Harness 为基于 SDK 构建的 agent 提供,但“not in Pax yet”;computer use 被描述为“coming in the next release as /computer-use”。
  • 发布文里的基准分数与单次运行成本表是厂商自己 11 月的单次运行结果;本次概览没有独立复现,且在该表中 Pax 并不是成本最低的 harness。
  • Pax 没有独立仓库——github.com/pydantic/pydantic-ai-pax 返回 404,代码在 pydantic-ai monorepo 的 src/pydantic_ai_pax 下——所以 monorepo 的 star 数不是 Pax 单独的数字。
  • 文档注明 AGENTS.md / CLAUDE.md 跟随在 Windows 上尚不可用;本次查阅的文档中也没有找到 Pax 专属的隐私或数据保留说明。
  • 本次概览未安装、未实际使用,仅依据发布文、官方 Pax 文档页、PyPI 元数据与 monorepo 的 LICENSE。

替代工具

Claude Code

另一款终端编码 agent。Pax 的发布文用自家的 Harness-Bench SWE81 单次运行结果把 Pax 与 Claude Code 做过对比;Pax 也可通过 /resume claude 或 pax --resume-claude 继续在 Claude Code 里开始的会话。

OpenAI Codex

OpenAI 的终端编码 agent,同样出现在 Pax 发布文的对比里;它也是 Pax 可用 /resume codex 或 pax --resume-codex 导入的两种会话来源之一。

常见问题

详情

平台

macOSWindowsLinux

功能特性

  • 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

支持语言

en

已知限制

  • 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

为此工具评分

相关工具