tech/cloudflare/r2

Store files and serve static assets via S3-compatible Cloudflare R2.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/2nth-ai/skills --skill tech-cloudflare-r2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tech/cloudflare/r2
Source: https://github.com/2nth-ai/skills/tree/main/tech/cloudflare/r2
Command: npx skills add https://github.com/2nth-ai/skills --skill tech-cloudflare-r2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tech/cloudflare/workers, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for cost-effective, edge-served object storage that is compatible with S3, making it ideal for scenarios where data transfer out is a concern.

Core Features & Use Cases

  • Zero Egress Fees: Store files and serve static assets without additional costs for data transfer out.
  • S3 Compatibility: Seamless integration with S3-compatible clients and tools like AWS SDK v3.
  • Use Case: For storing user-uploaded files, serving static assets like PDFs and media, and implementing multipart uploads for large files.

Quick Start

Use the tech/cloudflare/r2 skill to create a new bucket named 'my-bucket' and upload a file 'image.jpg' to it.

Frequently Asked Questions about tech/cloudflare/r2

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

FAQPage Schema
How do I store user-uploaded files and serve static assets without incurring data transfer costs?

You can use S3-compatible object storage with zero egress fees for edge serving to store files and serve static assets without additional costs for data transfer out. This approach is ideal for scenarios where data transfer out is a concern.

Can I use the AWS SDK v3 to interact with Cloudflare R2?

Yes, Cloudflare R2 offers seamless S3 compatibility, allowing you to integrate it directly with S3-compatible clients and tools like AWS SDK v3 for storing files and implementing multipart uploads.

Do I need Cloudflare Workers to implement multipart uploads and generate presigned URLs?

Yes, this object storage requires Cloudflare Workers to implement multipart uploads for large files and to generate presigned URLs for secure client uploads directly to the bucket.

How do I generate presigned URLs for client uploads to an S3-compatible bucket?

You can generate presigned URLs for client uploads by configuring S3-compatible object storage within your edge serving environment, allowing clients to securely upload files directly without exposing credentials.

What is the best way to handle large file uploads to edge object storage?

The best way to handle large file uploads to edge object storage is by implementing multipart uploads, which allows you to break down large files into smaller parts for reliable and efficient data transfer.