cloudflare-r2

Manage S3-compatible object storage on Cloudflare R2.

Updated Jul 23, 2025
One-click install
npx skills add https://github.com/levanminhduc/LuongHoaThoNew --skill cloudflare-r2-levanminhduc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cloudflare-r2
Source: https://github.com/levanminhduc/LuongHoaThoNew/tree/main/.claude/skills/cloudflare-r2
Command: npx skills add https://github.com/levanminhduc/LuongHoaThoNew --skill cloudflare-r2-levanminhduc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides using Cloudflare R2 for S3-compatible object storage with no egress fees.

Core Features & Use Cases

  • R2 basics: Buckets, objects, and lifecycle.
  • Workers integration: Bindings and storage patterns for edge apps.
  • Presigned URLs: Secure, time-limited access to stored data.

Quick Start

Create a bucket, upload a file, and generate a presigned URL for download.

Frequently Asked Questions about cloudflare-r2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up S3-compatible object storage without egress fees?▼

Cloudflare R2 provides S3-compatible object storage with zero egress fees. Create a bucket, configure access credentials, and use S3 API calls or the Wrangler CLI to upload and manage objects at no data transfer cost.

Can I use presigned URLs to grant temporary access to stored files?▼

Yes. R2 supports presigned URLs that generate time-limited, secure download links for stored objects. Generate them via S3 API or SDKs without exposing permanent credentials.

How do I integrate R2 storage with Cloudflare Workers?▼

Use R2 bucket bindings in Cloudflare Workers to read and write objects directly from edge functions. Bindings expose R2 buckets as native Worker runtime objects, enabling low-latency storage access.

What's the best way to migrate existing data to R2?▼

R2's S3 API compatibility allows migration using standard S3 tools and SDKs. Point your migration tool to R2 bucket credentials and transfer objects as you would to any S3-compatible endpoint.

Does R2 support bucket lifecycle policies and CORS configuration?▼

Yes. R2 supports lifecycle policies for automatic object expiration and CORS configuration for cross-origin requests. Both are configurable via S3 API or Wrangler CLI.

Do I need to modify application code to use R2 instead of AWS S3?▼

No. R2 maintains S3 API compatibility, so existing S3-compatible applications and SDKs work with R2 by changing endpoint and credentials without code modification.