Cloudflare

Cloudflare

Manage DNS and get free CDN

Easy5 min0% complete

What you need

  • A Cloudflare account (free)
  • At least one domain on Cloudflare
  1. 1.Log into Cloudflare dashboard
  2. 2.Click on any domain you manage
  3. 3.Scroll down on the right sidebar
  4. 4.Find "Account ID" and copy it
💡The Account ID is a 32-character string of letters and numbers.
  1. 1.Go to My Profile → API Tokens
  2. 2.Click "Create Token"
  3. 3.Use the "Edit zone DNS" template
  4. 4.Under Zone Resources, select "All zones"
  5. 5.Click "Continue to summary" then "Create Token"
  6. 6.Copy the token immediately
API Tokens Page
# Add to your .env.local file:
CLOUDFLARE_API_TOKEN=your_token_here
CLOUDFLARE_ACCOUNT_ID=your_account_id_here

Environment Variables

VariableDescriptionExample
CLOUDFLARE_API_TOKENAPI token with DNS edit permissionsabc123...
CLOUDFLARE_ACCOUNT_IDYour Cloudflare account ID1234567890abcdef...

Test Your Integration

After completing setup, try this prompt in Claude Code:

"Show me all my Cloudflare domains"