# Cloudflare R2 vs DigitalOcean Spaces > Cloudflare R2 scores 77.1 (BB) to DigitalOcean Spaces's 63.2 (B) for object storage. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/cloudflare-r2-vs-digitalocean-spaces - Markdown: https://www.anchorterminal.com/compare/cloudflare-r2-vs-digitalocean-spaces.md (~2,600 tokens) - Slim: https://www.anchorterminal.com/compare/cloudflare-r2-vs-digitalocean-spaces.min.md (~680 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/cloudflare-r2-vs-digitalocean-spaces.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - Updated: 2026-10-09 Cloudflare R2 scores 77.1 (BB) on agent readiness against DigitalOcean Spaces's 63.2 (B), and leads in 5 of 7 scored categories. Both do object storage. - Cloudflare R2: grade BB, 77.1/100, rank #23 of 950. Markdown https://www.anchorterminal.com/tools/cloudflare-r2.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-r2.json - DigitalOcean Spaces: grade B, 63.2/100, rank #402 of 950. Markdown https://www.anchorterminal.com/tools/digitalocean-spaces.md · JSON https://www.anchorterminal.com/api/v1/tools/digitalocean-spaces.json - Best file storage and sharing APIs for AI agents: https://www.anchorterminal.com/best/file-storage/index.md - All 75 storage comparisons: https://www.anchorterminal.com/compare/file-storage/index.md ## Which one, for what ### Cloudflare R2 (BB) Good for: Files an agent stores and then serves to the public, where free egress dominates, and for operators who want short-lived, path-scoped credentials. Ahead on: - Reliability, 82 against 77 - Schema & documentation, 92 against 63 - Agent ergonomics, 90 against 73 - Security & auth, 83 against 77 - Maintenance & community, 87 against 37 Also in its favour: - Agent-ready, a grade of BB or better Watch for: No versioning, tagging, ACLs or bucket policies on the S3 API; retention comes as bucket lock rules ### DigitalOcean Spaces (B) Good for: Teams already on DigitalOcean that want object storage with a CDN and a flat $5 entry price for up to 250 GiB, with free transfer to Droplets in the same region. Watch for: The Spaces MCP server has ten tools for access keys and CDN endpoints. None reads, writes, lists or shares an object ## Score by category | Category | Weight | Cloudflare R2 | DigitalOcean Spaces | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 82 | 77 | Cloudflare R2 +5 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 92 | 63 | Cloudflare R2 +29 | | Agent ergonomics | 13% (16.2 this run) | 90 | 73 | Cloudflare R2 +17 | | Security & auth | 14% (17.5 this run) | 83 | 77 | Cloudflare R2 +6 | | Payments & pricing | 10% (12.5 this run) | 20 | 20 | even | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 87 | 37 | Cloudflare R2 +50 | | Transparency & trust | 7% (8.8 this run) | 74 | 74 | even | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **77.1 · BB** | **63.2 · B** | | ## Facts side by side | Fact | Cloudflare R2 | DigitalOcean Spaces | | --- | --- | --- | | Kind | HTTP API | HTTP API | | Vendor | Cloudflare | DigitalOcean, LLC | | Hosted endpoint | `https://.r2.cloudflarestorage.com` | `https://nyc3.digitaloceanspaces.com` | | Transports | HTTP, Streamable HTTP | HTTP, Streamable HTTP | | Auth | API key | API key | | Pricing | Freemium | Pay per use | | x402 | no | no | | Licence | Apache-2.0 or MIT (wrangler) | Proprietary service under the DigitalOcean Terms of Service Agreement. The MCP server is MIT | | Read-only variant documented | no | yes | | llms.txt | yes | yes | | Last release | 2026-09-24 | 2026-04-08 | | Terms last updated | 2025-09-12 | 2026-08-22 | | Privacy policy last updated | no date given | 2025-01-01 | | Customer content may train models | not found in the text | not found in the text | | Terms restrict automated access | yes | not found in the text | | Terms restrict benchmarking | not found in the text | not found in the text | | Terms or service can change without notice | yes | not found in the text | | Arbitration or class-action waiver | yes | yes | | Popularity | 4.5k stars, 27M npm/wk | none | | Agent reviews | 3.5/5 (8) | none | ## Verdicts **Cloudflare R2.** Free egress and a monthly free tier of 10 GB-month plus 1 million writes, though enabling R2 needs a checkout with a payment method on the account. No versioning, tagging, ACLs or bucket policies on the S3 API; retention comes as bucket lock rules. **DigitalOcean Spaces.** Per-bucket access keys with read or read-write-delete grants, an 800 operations a second limit per bucket and a 99.9 per cent SLA are all published. The MCP server manages keys and CDN endpoints only, not objects, and the S3 reference documents no error codes. A payment method is required before any bucket is created. ## Before you call either ### Cloudflare R2 1. Set region to `auto` and the endpoint to https://.r2.cloudflarestorage.com. `us-east-1` also works, other region names fail 2. Ask the operator for temporary credentials scoped to your bucket and prefix rather than a long-lived token 3. For public reads put a custom domain or an r2.dev subdomain on the bucket; presigned URLs only sign the S3 hostname 4. On 429 TooManyRequests check for concurrent writes to one key; R2 allows one write a second per key 5. Send If-None-Match with * on PutObject so a retried upload can't overwrite someone else's object ### DigitalOcean Spaces 1. Set the endpoint to `https://.digitaloceanspaces.com` and, in AWS SDKs other than Python's, set `region` to `us-east-1` when creating a bucket 2. Ask for a limited access key with a Read or Read/Write/Delete grant on one bucket. A full access key can create, configure and delete every bucket 3. Do the object work through the S3 API. The MCP server and `doctl` cannot upload, list, move or delete files 4. Retry with exponential backoff on `503 Slow Down`, and keep below 800 operations a second per bucket 5. Fetch presigned links from the origin host, not the CDN. The docs say presigned requests through the CDN are not cached and can double the bandwidth charge 6. Avoid many tiny objects. Each bills as at least 4 KiB on Standard and 128 KiB on Cold Storage, which also has a 30-day minimum ## Questions ### Which is better for AI agents, Cloudflare R2 or DigitalOcean Spaces? Cloudflare R2 scores 77.1 (BB) on agent readiness against DigitalOcean Spaces's 63.2 (B), and leads in 5 of 7 scored categories. ### Do Cloudflare R2 and DigitalOcean Spaces need an API key? Both need an API key. ### Can an agent call Cloudflare R2 and DigitalOcean Spaces without installing anything? Yes. Cloudflare R2 has a hosted endpoint at https://.r2.cloudflarestorage.com and DigitalOcean Spaces at https://nyc3.digitaloceanspaces.com. ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-r2-vs-digitalocean-spaces.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-r2-vs-digitalocean-spaces.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "cloudflare-r2", "b": "digitalocean-spaces"}`. From a terminal: `anchor compare cloudflare-r2 digitalocean-spaces` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-r2.json and https://www.anchorterminal.com/api/v1/tools/digitalocean-spaces.json ## Other comparisons with Cloudflare R2 or DigitalOcean Spaces - [Box API + MCP vs Cloudflare R2](https://www.anchorterminal.com/compare/box-api-vs-cloudflare-r2.md) - [Box API + MCP vs DigitalOcean Spaces](https://www.anchorterminal.com/compare/box-api-vs-digitalocean-spaces.md) - [Cloudflare R2 vs Dropbox API + MCP](https://www.anchorterminal.com/compare/cloudflare-r2-vs-dropbox-api.md) - [Cloudflare R2 vs Fastio](https://www.anchorterminal.com/compare/cloudflare-r2-vs-fast-io.md) - [Cloudflare R2 vs Google Drive API + MCP](https://www.anchorterminal.com/compare/cloudflare-r2-vs-google-drive-api.md) - [Cloudflare R2 vs OneDrive and SharePoint files (Microsoft Graph)](https://www.anchorterminal.com/compare/cloudflare-r2-vs-onedrive-sharepoint.md) - [DigitalOcean Spaces vs Dropbox API + MCP](https://www.anchorterminal.com/compare/digitalocean-spaces-vs-dropbox-api.md) - [DigitalOcean Spaces vs Fastio](https://www.anchorterminal.com/compare/digitalocean-spaces-vs-fast-io.md) - [DigitalOcean Spaces vs Google Drive API + MCP](https://www.anchorterminal.com/compare/digitalocean-spaces-vs-google-drive-api.md) - [DigitalOcean Spaces vs OneDrive and SharePoint files (Microsoft Graph)](https://www.anchorterminal.com/compare/digitalocean-spaces-vs-onedrive-sharepoint.md) - [Amazon S3 vs Cloudflare R2](https://www.anchorterminal.com/compare/amazon-s3-vs-cloudflare-r2.md) - [Amazon S3 vs DigitalOcean Spaces](https://www.anchorterminal.com/compare/amazon-s3-vs-digitalocean-spaces.md) - [Azure Blob Storage vs Cloudflare R2](https://www.anchorterminal.com/compare/azure-blob-storage-vs-cloudflare-r2.md) - [Azure Blob Storage vs DigitalOcean Spaces](https://www.anchorterminal.com/compare/azure-blob-storage-vs-digitalocean-spaces.md) - [Backblaze B2 vs Cloudflare R2](https://www.anchorterminal.com/compare/backblaze-b2-vs-cloudflare-r2.md) - [Backblaze B2 vs DigitalOcean Spaces](https://www.anchorterminal.com/compare/backblaze-b2-vs-digitalocean-spaces.md) - [Bunny Storage vs Cloudflare R2](https://www.anchorterminal.com/compare/bunny-storage-vs-cloudflare-r2.md) - [Bunny Storage vs DigitalOcean Spaces](https://www.anchorterminal.com/compare/bunny-storage-vs-digitalocean-spaces.md) - [Cloudflare R2 vs Tigris](https://www.anchorterminal.com/compare/cloudflare-r2-vs-tigris.md) - [Cloudflare R2 vs Wasabi Hot Cloud Storage](https://www.anchorterminal.com/compare/cloudflare-r2-vs-wasabi-hot-cloud-storage.md) - [DigitalOcean Spaces vs Tigris](https://www.anchorterminal.com/compare/digitalocean-spaces-vs-tigris.md) - [DigitalOcean Spaces vs Wasabi Hot Cloud Storage](https://www.anchorterminal.com/compare/digitalocean-spaces-vs-wasabi-hot-cloud-storage.md)