Skip to main content

Credentials

1. Create R2 API Token

  1. Go to https://dash.cloudflare.com/ -> R2 Object Storage
  2. Manage R2 API Tokens -> Create API Token
  3. Set permissions: Object Read (or Object Read & Write)
  4. Scope to your bucket
  5. Copy the Access Key ID and Secret Access Key
  6. Note your Account ID from the Cloudflare dashboard URL

2. Set Environment Variables

For Python configuration, see the R2 resource docs.