> Godmode v0.19.2 documentation · Reviewed 2026-11-17
> Source: https://godmode.build/docs/v0.19.2/provider-cloudflare

# Cloudflare

Put your product online with hosting, data storage, and domain settings.

## Connect Cloudflare

Keep a working [native login](/docs/v0.19.2/credentials#keep-a-working-login), or save the keys below.

```sh
godmode setup cloudflare
```

## Account access

A user API token reaches the account and zone resources included in its policies. The setup deliberately starts broad and changes available Read permissions to Edit; inspect the summary for Workers, D1, R2, DNS and any other intended service. Resource selection, your account role and service availability still limit access. R2 S3 credentials are a separate credential type.

## Add credentials

Save only the keys your product needs.

### API token

Let your agent manage the Cloudflare accounts and zones your product uses.

**[Visit Cloudflare's token page](https://dash.cloudflare.com/profile/api-tokens)**

1. Create a token from **Read All Resources**.
2. Change **Read** to **Edit** where available.
3. Review the summary, create the token and copy it.

Save as `CLOUDFLARE_API_TOKEN` in Godmode.

## Check access

- Check the user token with GET /client/v4/user/tokens/verify, then list the intended account or zone resources using Cloudflare's API or Wrangler. An active token does not prove every service permission. Select the exact account and zone before provisioning or deploying.

## Register a domain

Registration creates a billable domain purchase. Confirm the price and your spending limit first.

For domain registration, verify Registrar write permission for the intended account; changing Read to Edit does not establish Registrar access. The Registrar API beta registers supported available domains and requires a valid default payment method, a default registrant contact and acceptance of the Domain Registration Agreement. The user must set up billing in the dashboard. Check the domain's current availability and price and the user's purchase authorization before registering.

## Restore access

- Fix missing permissions or resource policies without replacing a valid secret. For a lost, expired or revoked secret, use the dashboard to create a replacement or roll the token, then godmode set CLOUDFLARE_API_TOKEN. Rolling invalidates the old value; creating a separate token allows a staged replacement.

## Provider docs

- [Create API tokens](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/)
- [Roll tokens](https://developers.cloudflare.com/fundamentals/api/how-to/roll-token/)
- [Wrangler commands](https://developers.cloudflare.com/workers/wrangler/commands/)
- [Registrar API beta prerequisites and workflow](https://developers.cloudflare.com/registrar/registrar-api/)
- [Registrar API support and billing requirements](https://developers.cloudflare.com/api/resources/registrar/)

Source: Godmode v0.19.2 provider catalog · 2026-11-13.
