How to Obtain Cloudflare R2 Credentials and Endpoint
To connect Cloudflare R2 to Rclone or RcloneView, you’ll need three key pieces of information:
- ✅ Access Key ID
- ✅ Secret Access Key
- ✅ R2 S3-Compatible Endpoint URL
This guide walks you through how to retrieve these from your Cloudflare dashboard.
🧰 Prerequisites
Before you begin:
- You must have a Cloudflare account with R2 Object Storage enabled.
- You need access to the Cloudflare Dashboard.
- Basic understanding of cloud storage concepts is helpful.
📦 Step 1: Create an R2 Bucket (If You Haven’t Already)
- Log in to your Cloudflare Dashboard.
- In the left sidebar, go to R2 → Object Storage.
- Click Create bucket.
- Enter a unique name for your bucket.
- Choose a location (e.g., Automatic, or a region like
westerneurope
). - Click Create Bucket.
This bucket will be your storage location for files transferred using RcloneView.
🔐 Step 2: Generate API Credentials
To authenticate with R2, you’ll need to create API tokens that provide access permissions.
➕ How to Create an Access Key and Secret Key:
- Go to R2 → API in the Cloudflare dashboard.
- Click Manage R2 API Tokens.
- Click Create API Token.
- Give the token a name (e.g.,
Rclone Access
). - Select the permissions:
Admin Read & Write
(full access)
❗other permissions may not allow bucket access.
- Choose whether to apply to:
- All buckets
- Specific buckets only
- Optionally, set expiration (or leave as "Forever").
- Click Create API Token.
Once the token is created, Cloudflare will show you:
- Access Key ID
- Secret Access Key
These credentials will be shown only once. Make sure to copy and store them securely.
🌐 Step 3: Get the R2 Endpoint URL
- Return to R2 → Object Storage in your dashboard.
- Click your bucket name.
- Go to the Settings tab of the bucket.
- Look for the S3 API-compatible endpoint. It will look something like this:
https://<ACCOUNT_ID>.r2.cloudflarestorage.com/westerneurope

This is the endpoint you’ll enter into Rclone or RcloneView when connecting to Cloudflare R2.
✅ Summary
You should now have the following values ready to configure your Cloudflare R2 remote:
Field | Description |
---|---|
Access Key ID | Provided by Cloudflare API token |
Secret Access Key | Provided by Cloudflare API token |
Endpoint URL | Found in R2 bucket settings (S3-compatible URL) |
You can now enter these into RcloneView when setting up a new S3-compatible remote, or use the Rclone CLI.