Sandboxed Code Execution
Building with Modal and the OpenAI Agents SDK | Modal Blog

Building with Modal and the OpenAI Agents SDK | Modal Blog

4/15/2026

What this post added

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.

Read the original post ↗