Run OpenAI Agents API sessions in Daytona sandboxes with zero inbound ports

mattturck · x · 2026-09-11

OpenAI's new Agents API hosts the entire agent loop (the Codex harness handles planning, tool calls, context management and failure recovery) — you only supply a sandbox. Daytona published a guide: the sandbox runs codex exec-server, which dials out to OpenAI and registers as the session's execution environment, exposing no inbound ports, with least-privilege keys and bring-your-own-image support.

Unlike the self-hosted Agents SDK, your app just creates a session, attaches a sandbox, submits a task and streams output. OpenAI offers first-class sandbox integrations with Daytona, E2B, Modal, Cloudflare and others.

Original post →

More from coding & agent

coding & agent channel →