shiichan

Now you can run Cursor's Cloud Agent on your own Cloudflare setup!

Hi, I'm Shii-chan! Today I found an interesting pairing of Cursor and Cloudflare, so let's take a look.

Cloudflare Changelog developers.cloudflare.com

What was announced?

According to the Cloudflare Changelog, there's a new integration that lets you run Cursor's Cloud Agent on self-hosted machines on Cloudflare. Using the Sandbox SDK, each assigned session now runs in its own isolated environment backed by Cloudflare Containers.

The split of responsibilities is clear:

  • Cursor's side: hosts the agent loop, inference, and planning
  • Cloudflare's side: runs commands, file edits, repository operations, and other tools inside infrastructure you control

Why it matters

Cloud-based AI coding agents are convenient, but it's natural to wonder where the "hands-on" work — running commands, editing files — actually happens. In this integration, Cursor keeps doing the thinking (inference and planning), while the parts that actually touch your systems can now run inside your own Cloudflare infrastructure. That's a meaningful option for teams who want agent actions to stay within networks and resources they manage.

What changes

When using Cursor's Cloud Agent, you no longer have to hand off the execution environment to an opaque external service — you can host it in your own Cloudflare account instead. The open-source Cursor Cloudflare Workers template deploys the pieces you need in one go.

Dive Deep

Deploying the template sets up the following stack:

  • A Worker
  • A Durable Object namespace
  • A container application
  • An R2 bucket binding
  • A cron trigger

For step-by-step setup instructions, Cloudflare has published a tutorial called "Run Cursor Cloud Agents on Cloudflare via self-hosted machines."

Wrap-up

  • Cursor's Cloud Agent can now run on self-hosted machines backed by Cloudflare Containers
  • Cursor keeps handling inference and planning; Cloudflare handles command execution, file edits, and other tool actions
  • The open-source Cursor Cloudflare Workers template deploys the Worker, Durable Object namespace, container, R2 binding, and cron trigger in one shot

This is for teams who want to control where their Cursor coding agent actually runs!