Cloudflare

Building agents with OpenAI and Cloudflare’s Agents SDK

Jun 25, 2025Kate Reznykova, Sunil Pai
Building agents with OpenAI and Cloudflare’s Agents SDK
SummaryAI, from the source post

This post details the integration of OpenAI's Agents SDK with Cloudflare's Agents SDK, which leverages Durable Objects for persistent execution. It explains the separation of concerns (OpenAI for cognition, Cloudflare for execution environment) and demonstrates architectural patterns for building AI agents: multi-agent systems, human-in-the-loop workflows, and addressable agents. Key learnings include the importance of state management with Durable Objects, correct routing for agent identity and persistence, and the composability of agents.

More from the Edge Computing with Cloudflare Workers trail