OpenAI Agents SDK 0.26: Power-User Guide to Docker Mounts, Codex Images and Guardrails

Last updated: November 29, 2026

OpenAI Agents SDK 0.26.0, released November 24, 2026, is a minor Python release with three breaking changes: Docker sandboxes reject in-container mounts, custom Realtime tracing providers must report their disabled state, and the Codex tool needs named grants for local images. It also hardens guardrails, history, MCP and sandboxes.

Contents

What’s new in Agents SDK 0.26

The OpenAI Agents SDK is OpenAI’s open-source Python framework for building agents with tools, handoffs, guardrails, sessions, sandboxes and Realtime voice. Version 0.26.0 shipped on GitHub and PyPI on November 24, 2026, six days after 0.25.0 (v0.26.0 release notes) (PyPI). The release review counts 55 changed files and says the session and RunState schemas are unchanged and Python 3.10 or later is still supported.

The project raises the minor version when a release breaks a public interface that is not marked beta, which is why this release is 0.26 rather than 0.25.1. The main changes are:

  • Docker storage. DockerSandboxClient now rejects InContainerMountStrategy, including read-only mounts, at creation and on resume. It also refuses to reuse privileged containers or containers with added capabilities.
  • Realtime tracing. Realtime now honors the global tracing switch. A custom TraceProvider that inherits is_disabled() gets True, so server traces stop until you implement the method.
  • Codex tool images. A file path written by the model no longer grants access to a local image. You grant named images through image_attachments.
  • Guardrails. An input guardrail tripwire now stops queued function tools, and Realtime output guardrails check remaining text and audio transcripts at turn completion.
  • History and MCP. Handoff filters keep redacted call arguments in saved session history, and explicit per-call MCP metadata now wins over discovery defaults.
  • GPT-Live demo. The browser example moves to GPT-Live 1.1 and adds speech-triggered standby and search citations.

Agents SDK 0.25 vs 0.26

The table compares behavior in 0.25.0 and 0.26.0 based on the official release notes and documentation.

Area Agents SDK 0.25 Agents SDK 0.26
Docker mounts InContainerMountStrategy accepted Rejected; use DockerVolumeMountStrategy or a host SandboxPathGrant
Realtime tracing Sent configured server tracing without checking the global provider Checks TraceProvider.is_disabled()
Codex tool local images Model-supplied path accepted Only named, application-granted images
Codex tool parameters Python validation only Opt-in parameter_validation_mode="json"; default stays "python"
Input tripwire Queued function tools could still run Queued function tools stop
MCP metadata conflicts Discovery defaults could override Call metadata, then tool_meta_resolver, then discovery defaults
Python support 3.10+ 3.10+ (unchanged)

How to upgrade safely

Most apps that do not use Docker sandboxes, custom tracing providers or the Codex tool can upgrade without code changes. If you use any of those, follow these steps from the release notes and the sandbox clients documentation.

  1. Pin and install. Run pip install openai-agents==0.26.0, or pip install "openai-agents[docker]==0.26.0" if you use the Docker client.
  2. Find old mount strategies. Search your manifests (SandboxRunConfig.manifest or SandboxAgent.default_manifest) for InContainerMountStrategy with the Rclone, Mountpoint, FUSE or S3 Files patterns.
  3. Pick a replacement. For a Docker volume driver, set mount_strategy to DockerVolumeMountStrategy, keep mount_path and read_only, and move settings such as a bucket prefix into the entry fields or driver_options.
  4. Or use a host mount. For S3 Files or other storage your application manages, mount it on the Docker host, remove the old entry and add a SandboxPathGrant to Manifest.extra_path_grants. Set host_path to the host mount and path to a container path outside the workspace root, such as /mnt/data, with read_only=True if possible.
  5. Start fresh sessions. Resumed sessions reuse saved mount entries, so create a new session and leave out the old session, session_state and any RunState that contains it. Restore files from a workspace snapshot if needed.
  6. Fix custom tracing. If you subclass TraceProvider, implement is_disabled() with the same state that set_disabled() uses. The built-in provider already does this.
  7. Run your tests. Check sandbox file moves and snapshots, which now use private staging and only rebase absolute links that point to regular files.

Codex tool image and validation changes

The experimental codex_tool wraps the Codex CLI so an agent can hand a bounded workspace task to Codex during a run. Tool calls send text or local_image input items (tools docs). In 0.26.0, an image path chosen by the model no longer grants access, and this also applies to pending calls.

To keep using images, grant each trusted file by name in your application code, for example image_attachments={"diagram": "/app/diagram.png"}, and have the call use "diagram" as the local_image path. Grants must be absolute paths without commas. If your tool parameters use strict types such as tuples, set parameter_validation_mode="json".

This is a separate change from the Codex model provider in the 1.0 alpha line, which we covered in our OpenAI Agents SDK Codex provider guide. For the Codex CLI itself, see the Codex CLI 0.172 guide.

Guardrails, history and MCP changes

Input guardrails run in parallel with the agent by default, so a tripwire can fire after the agent has used tokens or started tools (guardrails docs). Version 0.26.0 now stops queued function tools after an input tripwire. If a tool has side effects, such as sending email or writing to a database, set run_in_parallel=False so the guardrail finishes before the agent starts.

  • Redacted handoffs. When a handoff filter redacts call arguments, the redacted version is now what gets saved in session history, so sensitive values do not reappear when the session is replayed.
  • MCP metadata order. For conflicting _meta keys, explicit per-call metadata wins, then your tool_meta_resolver, then discovery defaults.
  • Realtime turn checks. Output guardrails now check remaining text and audio transcripts when a turn completes, which closes a gap at the end of spoken replies.

If you are comparing frameworks, our guides to Pydantic AI 2.77 conversation stores and CrewAI Artifacts cover how other agent frameworks handle history and files.

Known limitations

  • No in-place mount migration. Existing Docker sessions that used in-container mounts cannot be resumed. You must create new sessions.
  • Codex tool remains experimental. The documentation says this surface may change, so pin the SDK version in production.
  • Documentation lag. The release review says some documentation updates, including the Realtime guide and portable sandbox links, were still planned after publication. Check the release notes first.

Frequently asked questions

What is new in OpenAI Agents SDK 0.26?

Version 0.26.0, released November 24, 2026, is a minor release with breaking changes for Docker storage mounts, custom Realtime tracing providers and local images in the experimental Codex tool. It also tightens guardrails, session history, MCP metadata and sandbox handling, and upgrades the GPT-Live demo to 1.1.

Is OpenAI Agents SDK 0.26 a breaking release?

Yes, for some setups. The project bumps the minor version for breaking changes. In 0.26.0, Docker sandboxes reject InContainerMountStrategy, custom TraceProvider classes must report is_disabled() correctly, and the Codex tool no longer accepts model-supplied local image paths.

How do I fix Docker mounts after upgrading to Agents SDK 0.26?

Replace InContainerMountStrategy with DockerVolumeMountStrategy and a compatible volume driver, or mount the storage on the Docker host and add a trusted SandboxPathGrant. Then start a fresh session with the updated manifest instead of resuming the old one.

How do I install OpenAI Agents SDK 0.26?

Run pip install openai-agents==0.26.0. The package requires Python 3.10 or later. Install the openai-agents[docker] extra if you use the Docker sandbox client.

Is the 1.0 alpha the same as version 0.26?

No. The release notes say the 1.0 alpha tags belong to a separate release line. Version 0.26.0 is the latest stable release on the main branch, while 1.0.0-alpha.2 is a pre-release.

Does OpenAI Agents SDK 0.26 cost anything?

The SDK is an open-source Python package and installing it is free. Model calls made through it are billed by the model provider you use, such as the OpenAI API.

Sources

Featured image: OpenAI logo, public domain, via Wikimedia Commons. OpenAI is a trademark of OpenAI. FreeAnswers is not affiliated with OpenAI.

Related answers

Leave a Comment