Introduction to Agentic Workflows
Agentic workflows are designed to automate complex tasks by leveraging AI agents. These agents can perform tasks autonomously, making decisions based on their programming and data. With the integration of OpenAI and Cloudflare Agent Cloud, we can create scalable agentic workflows that enhance productivity and efficiency.
Cloudflare’s strategic positioning has made it a leader in the industry, with a valuation that reflects high expectations for its ‘Agentic Internet’ infrastructure. The company is currently navigating a critical transition from high-growth disruptor to a foundational enterprise utility.
The expansion of OpenAI within Agent Cloud builds on Cloudflare’s broader push to bring advanced AI capabilities to enterprises. With the availability of OpenAI models, including GPT-5.4, millions of customers can access these capabilities across Agent Cloud.
300+
cities with edge deployment
50,000+
AI models available
💡 Key Benefits
Scalable agentic workflows, enhanced productivity, and advanced AI capabilities
Building Agents with OpenAI and Cloudflare
Building agents with OpenAI and Cloudflare’s Agents SDK is a straightforward process. The Agents SDK provides a persistent object on the network with identity, state, and built-in concurrency control. Cloudflare Durable Objects allow agents to persist across sessions and coordinate responses, making it easy to build modular systems that work together intelligently.
To get started, developers can explore the OpenAI Agents SDK and dive into the Cloudflare Agents SDK documentation. The goal is to run an OpenAI agent with a planning loop, allow human decisions to intercept the plan, and preserve state across invocations via Durable Objects.
By leveraging Cloudflare’s Dynamic Workers, developers can execute dynamic, untrusted code in milliseconds. Dynamic Workers are designed specifically for executing untrusted code, giving developers complete control over the sandbox environment.
import { OpenAI } from '@openai/api';
const openai = new OpenAI('YOUR_API_KEY');Example code snippet for building an OpenAI agent
Deploying Agents with Cloudflare Dynamic Workers
Cloudflare Dynamic Workers allow developers to deploy agents at the edge, in over 300 cities worldwide. With Dynamic Workers, agents can start up a hundred times faster than traditional containers and incur only a fraction of the cost.
To deploy an agent with Dynamic Workers, developers can use the Cloudflare Worker platform. The platform provides a simple and efficient way to deploy and manage agents at the edge.
By leveraging Cloudflare’s Sandboxes, agents can clone repositories, install Python packages, and build code. This provides a flexible and scalable way to deploy agents, making it easy to build and deploy complex workflows.
addEventListener('fetch', (event) => {
event.respondWith(handleRequest(event.request));
});Example code snippet for deploying an agent with Dynamic Workers
100x
faster startup time
1/10
cost compared to traditional containers
📈 Scalability
Deploy agents at the edge, in over 300 cities worldwide

Conclusion and Next Steps
In conclusion, the integration of OpenAI and Cloudflare Agent Cloud provides a powerful way to build scalable agentic workflows. By leveraging Cloudflare’s platform, developers can deliver on three critical fronts: research, business, and development.
To get started, developers can explore the OpenAI Agents SDK and dive into the Cloudflare Agents SDK documentation. With the availability of OpenAI models, including GPT-5.4, millions of customers can access advanced AI capabilities across Agent Cloud.
For more information, please visit the Cloudflare documentation and GitHub repository. We look forward to seeing the innovative workflows you will build with OpenAI and Cloudflare.
How this compares
How this compares
| Component | Open / This Approach | Proprietary Alternative |
|---|---|---|
| Model provider | Any — OpenAI, Anthropic, Ollama | Single vendor lock-in |
| Deployment | Edge deployment in 300+ cities | Limited deployment options |
🔑 Key Takeaway
The integration of OpenAI and Cloudflare Agent Cloud provides a powerful way to build scalable agentic workflows, delivering on three critical fronts: research, business, and development. With the availability of OpenAI models, including GPT-5.4, millions of customers can access advanced AI capabilities across Agent Cloud.
Key Links