Skip to content

Pydantic AI 2.60.0 adds Docker sandboxes and hardening

Updated Pydantic AI

Summary

Pydantic AI v2.60.0, published October 23, 2026, adds Docker and BoxLite sandbox capabilities plus sanitization and filesystem hardening.

Category
Frameworks
Date
Open source
Yes
License
MIT
Pricing
Not stated in the sources we cited.

Pydantic AI v2.60.0 was published on GitHub on October 23, 2026 (the release is dated 2026-10-22 in its header). According to the release notes, it adds local sandbox capabilities, extends ModelSelectionContext, and tightens several security-related behaviors.

Release facts

FactDetail
ProductPydantic AI
Releasev2.60.0
Release dateOctober 23, 2026 (published on GitHub)
LicenseMIT, as reported by the GitHub API for the repository
Where to get itGitHub release v2.60.0

What changed

  • New sandboxes. The release notes list a DockerSandbox harness capability that runs the workspace in a local Docker or Podman container, and BoxLiteSandbox, a local BoxLite micro-VM workspace. SmolSandboxBackend can now use a VM the application already has.
  • Model selection context. ModelSelectionContext gains usage_limits, deadline, run_id and conversation_id, plus the run's output retry count and budget.
  • Filesystem and browser safeguards. FileSystem denied and read-only patterns now match case-insensitively, .git files are protected, and reads and Python regex searches are bounded. BrowserUse secrets are kept on allowlisted sites and out of tool results.
  • Untrusted history. sanitize_messages strips request-level instructions from untrusted history and drops client-supplied TextContent.metadata from user prompts.
  • Retry modeling. RetryPromptPart is deprecated in favor of ToolReturnPart(outcome='retried') and RetryFeedbackPart.
  • Provider behavior. BedrockConverseModel now defaults maxTokens to Claude's maximum output, and embedding models raise error categories such as ModelRateLimitError. 'max' is added to unified thinking effort levels.

The notes place several of these items under "Compatibility Notes", so teams upgrading should read the full list.

Questions

Is anything deprecated in v2.60.0? Yes. The release notes deprecate RetryPromptPart and OpenAIDecisionsProvider, and deprecate plain http:// URLs for the GitHub capability.

Does the release change Bedrock behavior? According to the release notes, BedrockConverseModel now defaults maxTokens to Claude's maximum output and streams such requests behind the scenes.

What license does the project use? The GitHub API reports the repository license as MIT. The cited sources do not state pricing for any hosted service.

See the Pydantic AI hub, the Frameworks category, and the earlier Pydantic AI 2.58.0 launch for more.

Alternatives

Pydantic AI compared with its alternatives
ToolLicensePricing note
Pydantic AIThis launchPydantic AI is a model-agnostic Python framework for building typed AI agents and applications.
MITNot stated
AgnoAgno is an orchestration and service layer for agents, exposing them through a REST API and an MCP server.
Apache-2.0Not stated
CrewAICrewAI is a framework for orchestrating role-playing, autonomous AI agents that work together.
MITNot stated
LangGraphLangGraph is an open-source orchestration runtime for building stateful, resilient agents.
MITNot stated
adk-pythonAn open-source, code-first Python toolkit for building, evaluating and deploying AI agents.
Apache-2.0Not stated

More from Pydantic AI

View all

Questions

What is Pydantic AI?

The product site describes it as a model-agnostic Python framework featuring type safety, structured outputs, validation and observability.

Is Pydantic AI open source?

The GitHub repository reports an MIT license.

Which models does it support?

The product site says it supports OpenAI, Anthropic, Google and more.

Filed on Agent Radar. Claims in this note are limited to the sources above.