Complete S3 setup · Cloudflare R2
Cloudflare R2 Setup Guide
Create an R2 bucket, API token, CORS policy, and ShrimpSend settings.
When to use R2
- S3-compatible storage with favorable egress pricing.
Create bucket
R2 → Create bucket.

API token
Manage R2 API Tokens → Create with Object Read & Write on one bucket.

S3 API Endpoint from bucket Settings.
CORS
Settings → CORS Policy; Origins https://xiachuan.net (+ www); full Methods set.

ShrimpSend settings
| Field | Example |
|---|---|
| Endpoint | https://<accountid>.r2.cloudflarestorage.com |
| Region | auto |
| Path-style | Often on for R2 S3 API |


FAQ
Region often auto. 403 → token scope. This is your R2 bucket, not platform built-in S3.