Inteligencia Artificial

Cloudflare launches SDK and Flue framework for production AI agents

The company presents a three-layer platform combining the Agents SDK, the Flue framework, and the Pi harness to facilitate the creation of robust and scalable agents.

June 18, 2026 · 5 min read

Advanced humanoid robot with glowing blue accents in a digital network setting.

TL;DR: Cloudflare launches its Agents SDK and the open-source Flue framework, built on the Pi harness. The three-layer platform solves problems of durable execution, dynamic code, and persistent storage, facilitating the creation of production-ready agents.

What happened?

Cloudflare has announced a significant expansion of its agent platform, introducing the Cloudflare Agents SDK as a base layer and the Flue framework as a new development layer. Flue, developed by the team behind Astro, is built on the Pi harness (the same one used by OpenClaw) and offers a declarative model: instead of programming the agent's behavior, you define its context (model, skills, sandbox, and instructions) and the agent autonomously solves tasks. This three-layer architecture —framework, harness, and platform— aims to address common scaling issues: durable execution, secure execution of untrusted code, persistent file system, and dynamic workflows.

Cloudflare has learned from its experience with Project Think, its first internal agent harness, that agents in production face complex distributed problems. According to the official Cloudflare blog, “2026 is the year agent harnesses go to production,” and they highlight that “building agents that survive in production is hard.” The company identified three key challenges: how to resume an interrupted execution without losing context or wasting tokens, how to securely execute untrusted code, and how to use tools efficiently. These issues are tied to state, storage, and compute, meaning they depend on the underlying platform. Cloudflare has taken the learnings from Project Think and incorporated them into the Agents SDK as a base layer, offering durable execution, dynamic code execution, a durable file system, and dynamic workflows.

Why is it important?

The announcement marks a milestone in the maturity of AI agents. Cloudflare notes that 2026 will be the year “agent harnesses” go into production. The company has learned from its experience with Project Think that agents face complex distributed problems: how to resume an interrupted execution without losing context, how to securely execute untrusted code, and how to use tools efficiently. By offering these primitives as part of the SDK, Cloudflare democratizes access to production-grade infrastructure for startups and companies building agents.

Historically, agent execution has been limited to prototypes or controlled environments. With the Agents SDK, Cloudflare provides primitives that were previously only available on specialized platforms like Temporal for durable workflows or sandboxes like gVisor for secure execution. Native integration with Workers and the edge ecosystem allows agents to run in over 330 cities, reducing latency and improving resilience. This is comparable to when AWS launched Lambda in 2014, democratizing serverless computing; now Cloudflare aims to do the same for agent infrastructure.

Consequences for the ecosystem

  • For developers: Flue reduces the complexity of writing agents. In less than 25 lines of declarative code, you can build a triage agent that intercepts bug reports, reproduces them in a sandbox, and diagnoses the issue. The declarative approach contrasts with imperative frameworks like LangChain, where the developer must manually orchestrate each step. Flue inherits the capabilities of the Pi harness, already used by OpenClaw, enabling autonomous execution without explicit orchestration loops.
  • For enterprises: The platform allows deploying agents as real infrastructure, not prototypes. Durable execution and persistent storage eliminate common bottlenecks. Companies like Vercel or Netlify could integrate Flue to offer agents that automate deployments or monitoring. Additionally, the ability to securely execute untrusted code opens use cases like code assistants that run scripts in isolated sandboxes, similar to what GitHub Copilot offers with Codespaces, but at the infrastructure level.
  • For the framework market: Flue competes with other frameworks like LangChain or AutoGPT, but differentiates itself with its declarative approach and native integration with Cloudflare Workers and the edge computing ecosystem. LangChain, though more mature, relies on external providers for execution and state. AutoGPT, on the other hand, is more experimental and lacks the production robustness that Cloudflare offers. The bet on open-source could accelerate adoption, similar to how React dominated frontend over Angular.

What readers should know

Cloudflare is not just launching a product; it is defining a three-layer architecture that could become a standard. The Agents SDK is open source and available at developers.cloudflare.com/agents. Flue 1.0 Beta is already available at flueframework.com. Integration with the Pi harness allows agents to inherit autonomous execution capabilities without needing to write orchestration loops.

"A safety net alone cannot solve these problems. They are tied to state, storage, and compute, meaning they depend on the platform on which the agent runs." — Cloudflare Blog

This move positions Cloudflare as a key player in agent infrastructure, competing with platforms like OpenAI (with its Assistants API), Anthropic (with Claude Code), and startups like Pi and OpenClaw. The bet on open-source and the declarative model could accelerate the adoption of agents in enterprise environments. However, it remains to be seen whether Flue will gain the traction needed to displace established frameworks. Success will depend on the quality of documentation, community, and ease of integration with existing systems.

In terms of market impact, Cloudflare is betting that agent infrastructure will be as fundamental as CDNs were for the web. By offering durable execution, sandboxing, and persistent storage as basic primitives, it lowers the barrier to entry for startups wanting to build complex agents. This could lead to an explosion of agent applications in areas like technical support, process automation, and data analysis. However, competition is fierce: OpenAI already offers assistants with memory and code execution, while Anthropic focuses on safety. Cloudflare differentiates itself with its infrastructure-based business model and global reach.

For readers, the recommendation is to explore Flue and the Agents SDK if you are building agents that require reliable execution at the edge. The combination of Workers, Durable Objects, and the new SDK offers a comprehensive solution that few competitors match. Additionally, being open-source allows you to inspect and customize the code, something not possible with proprietary solutions. In summary, Cloudflare is laying the groundwork for the next generation of AI applications, and this announcement is an important step in that direction.

Keep reading