Your own storage on Cloudflare R2
Connect a Cloudflare R2 bucket as a library and, if you like, upload books to it from Kevra.
If you have a Cloudflare account, you can keep your books in an R2 bucket (Cloudflare's file storage) and use it as a library in Kevra. Unlike Dropbox or Drive, with R2 Kevra can also upload books, if the key you give it allows it.
Plus plan: connecting R2 needs the Plus plan.
What you need from Cloudflare
In the Cloudflare dashboard, under R2:
- Create a bucket (or use one you already have) and upload your books.
- Create an R2 API token for that bucket. Read permission is enough to read; to upload from Kevra, give it write permission too.
- Note down the Access Key ID, the Secret Access Key and your account's endpoint, which looks like this:
https://<accountid>.r2.cloudflarestorage.com.
How to connect it in Kevra
- In the Library tab, tap the name at the top to open Your libraries and, at the bottom, Add a library.
- On Remote library, tap Add a library → Add R2.
- Fill in Name, Endpoint, Bucket, Access Key ID and Secret Access Key.
- If your books are in a folder inside the bucket, type it in Folder (optional) (for example,
epubs/). Leave it empty to use the whole bucket. - Tap Test and save. Kevra checks it can get in before saving.
- Open the library and tap Sync now.
Your credentials are stored encrypted on our server. Books don't go through Kevra: they download straight from your bucket to your device. More in Cloud libraries.
Uploading books to your R2
With a key that has write permission, long-press a book in your library → Save a copy → Upload to my R2. If the key is read-only, Kevra will tell you.
Audiobooks aren't uploaded: they're too big.
Common questions
- Can I use another S3-compatible service (Backblaze, Wasabi, AWS…)? Kevra is built for Cloudflare R2. Other services aren't tested or supported for now.
- Can I choose folders like in Dropbox? R2 doesn't have Choose folders: the equivalent is the Folder (optional) you set when connecting it.
- Can I share my R2 with someone? Yes, like any cloud library. See Sharing a library.
Was this article helpful?