Golf on Cloudflare
This page explains what Cloudflare-native Golf is, which Cloudflare services it uses and what to check before you deploy it. It is for operators deciding whether to run Golf in their own Cloudflare account.
Golf uses Cloudflare’s managed services to store code, run checks and share private previews. You deploy it in your own account and manage its permissions, configuration and costs. The Cloudflare version does not need a Forgejo server.
Why Cloudflare fits agent speed
Coding agents push, read and land changes continuously, not a few times an hour. Cloudflare’s building blocks suit that pattern:
- Artifacts keeps Git on Cloudflare’s object storage, so Golf does not build its own storage engine.
- Durable Objects coordinate requests, so writes happen in order and permission changes take effect.
- Containers give each test or agent task its own Linux sandbox.
- Workers AI runs models on the same platform as the code.
Making Cloudflare-native Golf fast enough for many agents to work in one repository at once is the active agentic mode roadmap, and it is not complete. The rest of this page describes what Golf does today.
What each part is for
| Your task | Services Golf uses | What they do |
|---|---|---|
| Open a repository or API request | Workers, Access, Durable Objects | Serve Golf, identify the user and coordinate shared updates |
| Store code and discuss changes | Artifacts, D1 | Keep Git history separate from issues, reviews, users and permissions |
| Run an approved check or agent task | Queues, Workflows, Containers | Hold job requests, track progress and run the task |
| Save results and images | R2, managed image registry | Keep reports, files and the exact container images used or produced |
| Try a change in a browser | Preview Worker, Workers for Platforms, D1, R2 | Serve a private static site or an approved app with its own data |
| Get optional AI help | Workers AI, AI Gateway | Generate advice or proposed changes under configured limits |
| Notify the team | Email Service, signed webhooks, D1 | Save pending messages, check access and record delivery attempts |
| Operate the installation | Secrets Store, DNS, logs, analytics, Cron and timers | Protect credentials, connect domains, investigate errors and perform cleanup |
The service inventory explains each integration and its current limits. A configured service may still be optional, untested or reporting an error.
Before you deploy
You need Workers Paid, a separate Workers for Platforms subscription, Artifacts (open beta), Containers, a Zero Trust organization and an active zone you own. The setup guide lists every value to supply, the API permissions and the local tools. The cf CLI recipe creates a fresh installation. Alchemy replaces, updates or extends an existing installation; it can't create one from an empty account. Both scripts currently seed the Golf demo content. Keep private deployment inputs and state out of Git.
The product is alpha, and releases can include breaking changes. Complete feature support, general production deployment, disaster recovery and large-scale operation remain unfinished. Read the tested status before choosing a workflow.