Modal

Building with Modal and the OpenAI Agents SDK | Modal Blog

Apr 15, 2026
Building with Modal and the OpenAI Agents SDK | Modal Blog
SummaryAI, from the source post

This post details the integration of the OpenAI Agents SDK with Modal Sandboxes to build custom agent harnesses. It introduces concepts like `SandboxAgent`, `WorkspaceShellCapability`, `ModalSandboxClientOptions` for GPU attachment, and `SQLiteSession` for stateful interactions. The post also describes advanced patterns like using subagents for higher-order planning and parallelization via a `SubAgentPool` with `asyncio.Future` for non-blocking execution.

More from the Sandboxed Code Execution trail