Cloudflare supports connecting a Cursor Origin repository to your Cloudflare Worker. Workers Builds automatically builds and deploys your Worker when you push a change to the configured production branch. You can also enable preview builds to create Previews without deploying changes to production.
Beyond automatic builds and deployments, the Cloudflare Cursor Origin integration reports build activity in Origin so you can follow a deployment without leaving your repository.
When a commit is part of a pull request, Cloudflare posts a comment on the pull request with the build status and links to the build.
When a preview build runs wrangler preview, the comment also includes a Preview URL. This URL lets you test the code changes in an isolated copy of your Worker.
Subsequent pushes to the same branch update the same Preview URL. Each deployment also gets an immutable Deployment URL for testing one exact deployment.
Cloudflare creates an Origin check run for each build triggered from the repository. Check runs show whether a build is queued, in progress, or complete. Select the check run details to open the build in the Cloudflare dashboard.
If multiple Workers are connected to one repository, such as in a monorepo, each triggered build appears as a separate check run.
When you use build watch paths, Cloudflare only creates check runs for Workers whose configured paths trigger a build.
To install the Cloudflare app for Cursor Origin:
- Open the Cloudflare app in Cursor ↗.
- Select Install.
- Choose the Origin owner and grant access to either all repositories or selected repositories.
- Follow the prompts to connect the installation to your Cloudflare account and configure the Worker build.
You can manage the Cloudflare app from Cursor codebase settings ↗.
The Cursor workspace administrator who installs the app chooses the user or team that owns the repositories Cloudflare can access. The administrator can grant access to all repositories owned by that user or team, or limit access to selected repositories.
Cloudflare recommends granting access only to repositories that you intend to connect to Workers Builds.
To change the repositories available to Cloudflare:
- Open Cursor codebase settings ↗.
- Select the Cloudflare app.
- Update the repositories that the installation can access.
Removing a repository from the installation disables new builds for Workers connected to that repository. Previous deployments continue to run on Cloudflare.
To remove Cloudflare's access to all repositories owned by the selected Origin user or team, uninstall the Cloudflare app from Cursor codebase settings ↗.
Uninstalling the app disables new builds for every Worker connected through that installation. Previous deployments continue to run on Cloudflare.
If you only want to stop automatic builds for one Worker, disconnect the Git repository from the Worker instead.
If the Origin connection cannot access a repository or receive new changes, reinstall the app:
- Open Cursor codebase settings ↗.
- Select the Cloudflare app and uninstall it.
- Open the Cloudflare app in Cursor ↗.
- Select Install, choose the Origin owner, and grant repository access.
- Follow the prompts to reconnect the installation to Cloudflare.
- Retry the build.