cloudflare-r2

Manage Cloudflare R2 object storage with S3-compatible API access.

3|Updated Nov 14, 2025
One-click install
npx skills add https://github.com/evolv3ai/claude-skills-archive --skill cloudflare-r2-evolv3ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-r2
Source: https://github.com/evolv3ai/claude-skills-archive/tree/main/skills/cloudflare-r2
Command: npx skills add https://github.com/evolv3ai/claude-skills-archive --skill cloudflare-r2-evolv3ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides comprehensive knowledge and tools for managing Cloudflare R2 object storage, enabling efficient and scalable storage of files and data on Cloudflare's global network.

Core Features & Use Cases

  • S3-Compatible API: Use familiar S3 tools and SDKs.
  • Direct Client Uploads/Downloads: Generate presigned URLs for secure, direct access.
  • Large File Handling: Supports multipart uploads for files over 100MB.
  • Use Case: You need to build a web application that allows users to upload profile pictures. This Skill helps you configure R2 for secure uploads, generate unique URLs for each picture, and serve them efficiently.

Quick Start

Use the cloudflare-r2 skill to upload a file named 'report.pdf' to your R2 bucket.

Frequently Asked Questions about cloudflare-r2

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

FAQPage Schema
How do I generate presigned URLs for direct file uploads to Cloudflare R2?

To generate presigned URLs for Cloudflare R2, you use the aws4fetch library or the AWS SDK. This allows clients to upload and download files directly to your R2 bucket without routing data through your application server.

Can I use the S3-compatible API with Cloudflare R2 for object storage?

Yes, Cloudflare R2 provides an S3-compatible API, allowing you to manage object storage using familiar S3 tools and SDKs. You can interact with R2 buckets using standard S3 methods for storing and retrieving files.

What is the best way to handle multipart uploads for large files in Cloudflare R2?

For large files over 100MB, Cloudflare R2 supports multipart uploads to handle them efficiently. This process breaks the file into smaller parts, allowing reliable uploads and resuming interrupted transfers directly to the object storage bucket.

Do I need the wrangler CLI to manage Cloudflare R2 buckets?

Yes, you need the wrangler CLI to manage Cloudflare R2 buckets. Wrangler is required for creating and configuring buckets, while aws4fetch or the AWS SDK handles generating presigned URLs for application-level file access.

How do I configure CORS policies for a Cloudflare R2 bucket?

You configure CORS policies on your Cloudflare R2 bucket to allow secure cross-origin requests from web applications. Proper CORS configuration is essential when enabling direct client uploads and downloads via presigned URLs.

When should I use Cloudflare R2 instead of traditional S3 for static asset hosting?

Use Cloudflare R2 for static asset hosting or user-generated content when you need S3-compatible API access with zero egress fees. R2 integrates with Cloudflare's global network, offering efficient data archiving and content delivery.