Connect Cloudflare#
Keep a working native login, or save the keys below.
godmode setup cloudflareAccount 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.
- Create a token from Read All Resources.
- Change Read to Edit where available.
- 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
- Roll tokens
- Wrangler commands
- Registrar API beta prerequisites and workflow
- Registrar API support and billing requirements
Source: Godmode v0.20.0 provider catalog · 2026-11-13.