Connect your R2 bucket
One-time setup. Your credentials are stored locally in your browser.
Account ID
Your Cloudflare Account ID
Open dash.cloudflare.com, go to your R2 section. The Account ID is in the right sidebar.
Access Key ID
Secret Access Key
Create an API Token
In R2, click Manage API Tokens → Create API Token. Set permissions to Object Read & Write. Copy both keys — the Secret is shown only once.
Your R2 bucket
Bucket & public domain
Enter your bucket name (from R2 dashboard) and the public domain you've set up for it — the base URL for your files.
CORS Policy
Enable browser uploads (CORS)
In R2, open your bucket → Settings → CORS Policy. Paste this config and save. This allows the browser to upload directly to your bucket.
[
{
"AllowedOrigins": ["*"],
"AllowedMethods": ["PUT", "GET", "HEAD"],
"AllowedHeaders": ["*"],
"ExposeHeaders": ["ETag"],
"MaxAgeSeconds": 3600
}
]
Ready to test connection
Test connection
Let's verify everything works before you start uploading.
Upload files
Click to select or drag files here
Images, PDFs, video, fonts, zip · or ⌘V to paste from clipboard