File Storage · head to head
Cloudflare R2 vs OpenTofu

Cloudflare R2
File Storage
S3-compatible object storage that charges nothing for egress to the internet
- From
- Free
- Free plan
- Yes

OpenTofu
File Storage
Open-source infrastructure as code tool, a drop-in Terraform replacement under the Linux Foundation
- From
- Free
- Free plan
- Yes
The short version
- OpenTofu is a Linux Foundation open-source fork of Terraform under the MPL 2.
- OpenTofu is free; Cloudflare R2 starts at $0.015/mo.
- Only Cloudflare R2 lists zero egress billing; only OpenTofu lists declarative infrastructure configuration.
- Where OpenTofu falls short: compatibility with Terraform is not guaranteed as the projects diverge.
How do Cloudflare R2 and OpenTofu differ?
Cloudflare R2 and OpenTofu differ on pricing model and platforms (Web, API against Web). Only the attributes on which Cloudflare R2 and OpenTofu actually diverge.
| Attribute | Cloudflare R2 | OpenTofu |
|---|---|---|
| Pricing model | Per gigabyte stored per month | Open-source |
| Platforms | Web, API | Web |
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: category for OpenTofu.
Which features does each one have?
They share no listed features; 6 appear only for Cloudflare R2 and 7 only for OpenTofu. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Cloudflare R2
- Zero egress billing
- S3 API compatibility
- Worker binding
- Jurisdictional restriction
- Infrequent Access tier
- Custom domain serving
Only in OpenTofu
- Drop-in Terraform compatibility
- Declarative infrastructure configuration
- Client-side state encryption
- Provider for_each
- Exclude flag for plan and apply
- Early variable evaluation in modules
- Large provider and module registry
What is each one used for?
OpenTofu is most often brought in for replacing Terraform under an open-source licence. The jobs each tool is most often brought in to do.
Cloudflare R2
- Serving a large media or asset library to the public where transfer out, not storage, is the dominant costnot OpenTofu
- Hosting a container or artefact registry that thousands of CI runners pull from every daynot OpenTofu
- Distributing model weights or open datasets that are downloaded far more often than they are updatednot OpenTofu
- Moving off S3 specifically to stop paying data transfer charges on a read heavy bucketnot OpenTofu
OpenTofu
- Replacing Terraform under an open-source licencenot Cloudflare R2
- Multi-cloud infrastructure provisioningnot Cloudflare R2
- Encrypting Terraform-style statenot Cloudflare R2
- Reusable infrastructure modulesnot Cloudflare R2
Where do Cloudflare R2 and OpenTofu fall short?
OpenTofu's most cited limit: compatibility with Terraform is not guaranteed as the projects diverge. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Cloudflare R2
- There is no archive tier below Infrequent Access, so genuinely cold data costs roughly ten to fifteen times what it would cost in a deep archive class and there is nowhere cheaper to lifecycle it to
- Class A operations are billed at 4.50 USD per million, so a workload that writes millions of small objects can spend more on operations than on the storage those objects occupy
- Infrequent Access carries both a retrieval fee and a thirty day minimum storage duration, so data that is deleted or re-read sooner ends up more expensive than if it had stayed on Standard
- You choose a location hint rather than a region, so you cannot prove to an auditor which datacentre holds an object unless you use a jurisdiction restricted bucket, and jurisdictions are limited
- Support level follows your Cloudflare account plan rather than the storage spend, so a team on a low tier account gets ticket support with no storage specific SLA, and an R2 incident is a Cloudflare incident you cannot fail over from because the free egress only exists inside Cloudflare
OpenTofu
- Compatibility with Terraform is not guaranteed as the projects diverge
- No project-run hosted service for state and runs
- Commercial support comes from third parties
- Newer ecosystem of tutorials than Terraform
How much do Cloudflare R2 and OpenTofu cost?
Cloudflare R2 has a free plan, with paid plans from $0.015/mo; OpenTofu is free to use. Plan by plan below, from each vendor's own pricing page.
Cloudflare R2
Free- Free tierFree
- 10 GB stored per month
- 1 million Class A operations
- 10 million Class B operations
- Standard$0.015/mo
- Per gigabyte stored per month
- 4.50 USD per million Class A operations
- 0.36 USD per million Class B operations
- Infrequent Access$0.01/mo
- Per gigabyte stored per month
- Per gigabyte data retrieval fee
- Thirty day minimum storage duration
OpenTofu
FreeNo published plan breakdown. See the OpenTofu review.
Which should you pick?
Choose Cloudflare R2 if
- You need zero egress billing.
- You want to start without paying.
- You work on Web, API.
- You also want s3 api compatibility.
Choose OpenTofu if
- You need drop-in terraform compatibility.
- You want to start without paying.
- You also want declarative infrastructure configuration.
Questions people ask
- Is Cloudflare R2 or OpenTofu better?
- It depends on the job. Cloudflare R2 fits serving a large media or asset library to the public where transfer out, not storage, is the dominant cost; OpenTofu fits replacing Terraform under an open-source licence. Cloudflare R2 starts at Free and OpenTofu at Free.
- Which is cheaper, Cloudflare R2 or OpenTofu?
- Cloudflare R2 starts at Free and OpenTofu at Free.
- Does Cloudflare R2 or OpenTofu run on more platforms?
- Cloudflare R2 runs on Web, API. OpenTofu runs on Web.
- Can I use Cloudflare R2 for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Cloudflare R2 best used for?
- Cloudflare R2 is most often used for serving a large media or asset library to the public where transfer out, not storage, is the dominant cost, hosting a container or artefact registry that thousands of ci runners pull from every day, distributing model weights or open datasets that are downloaded far more often than they are updated, moving off s3 specifically to stop paying data transfer charges on a read heavy bucket. Of those, serving a large media or asset library to the public where transfer out, not storage, is the dominant cost and hosting a container or artefact registry that thousands of ci runners pull from every day are not what OpenTofu is typically brought in for.
- What can Cloudflare R2 do that OpenTofu cannot?
- Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction. OpenTofu covers Drop-in Terraform compatibility, Declarative infrastructure configuration, Client-side state encryption, Provider for_each.
Answered from the vendors’ own pages
Cloudflare R2: Is egress really free, with no hidden transfer charge?
Yes for data served out of R2 to the internet. You still pay per operation for the requests that serve it, and if you pull data into R2 from another provider you pay that provider the egress on the way in.
OpenTofu: What licence does OpenTofu use?
Mozilla Public License 2.0.
SourceCloudflare R2: How does the total cost compare with S3 for a public download bucket?
Storage is more expensive per terabyte than S3 Infrequent Access, but S3 charges roughly 90 USD per terabyte served. Any bucket that serves more than about a fifth of its stored volume each month is cheaper on R2.
OpenTofu: Why was OpenTofu created?
As a fork of Terraform after HashiCorp changed its licence, begun in August 2023.
SourceCloudflare R2: Can I use R2 without using the rest of Cloudflare?
Yes, it works through the plain S3 API from anywhere. You lose the Worker binding and the free CDN caching in front of it, which is where a lot of the practical benefit sits.
OpenTofu: What is the latest version?
1.13.11, published on 30 November 2026.
SourceCloudflare R2: Does R2 have a cold archive class like Glacier?
No. Infrequent Access is the coldest tier, at two thirds of the Standard rate plus retrieval fees.
Related pages
More on Cloudflare R2
Other head to heads
- Cloudflare R2 vs IDrive e2
- Cloudflare R2 vs Storj
- Cloudflare R2 vs Tigris
- Cloudflare R2 vs Azure Blob Storage
- Cloudflare R2 vs Google Cloud Storage
- Cloudflare R2 vs Scality RING
- Cloudflare R2 vs MinIO
- Cloudflare R2 vs Cloudian
- Cloudflare R2 vs Panzura
- Cloudflare R2 vs Ceph
- Cloudflare R2 vs Tresorit
- Cloudflare R2 vs TrueNAS
- Cloudflare R2 vs Resilio Sync
- Cloudflare R2 vs Synology
- Cloudflare R2 vs Nextcloud
- Cloudflare R2 vs Box
- Cloudflare R2 vs Dropbox
- Cloudflare R2 vs pCloud
- Cloudflare R2 vs Pulumi
- Cloudflare R2 vs Terragrunt
- Cloudflare R2 vs Packer
- Cloudflare R2 vs Rancher
- Cloudflare R2 vs Serverless Framework
- Cloudflare R2 vs SST
- Cloudflare R2 vs Flux
- Cloudflare R2 vs Podman
- Cloudflare R2 vs Portworx
- Cloudflare R2 vs Infracost
- Cloudflare R2 vs Puppet
- Cloudflare R2 vs Contabo
- Cloudflare R2 vs Crossplane
- Cloudflare R2 vs Crusoe Cloud
- Cloudflare R2 vs Google Cloud Run
- Cloudflare R2 vs Vagrant
- Cloudflare R2 vs kind
- Cloudflare R2 vs Buildah
- OpenTofu vs IDrive e2
- OpenTofu vs Storj
- OpenTofu vs Tigris
- OpenTofu vs Azure Blob Storage
- OpenTofu vs Google Cloud Storage
- OpenTofu vs Scality RING
- OpenTofu vs MinIO
- OpenTofu vs Cloudian
- OpenTofu vs Panzura
- OpenTofu vs Ceph
- OpenTofu vs Tresorit
- OpenTofu vs TrueNAS
- OpenTofu vs Resilio Sync
- OpenTofu vs Synology
- OpenTofu vs Nextcloud
- OpenTofu vs Box
- OpenTofu vs Dropbox
- OpenTofu vs pCloud
- OpenTofu vs Pulumi
- OpenTofu vs Terragrunt
- OpenTofu vs Packer
- OpenTofu vs Rancher
- OpenTofu vs Serverless Framework
- OpenTofu vs SST
- OpenTofu vs Flux
- OpenTofu vs Podman
- OpenTofu vs Portworx
- OpenTofu vs Infracost
- OpenTofu vs Puppet
- OpenTofu vs Contabo
- OpenTofu vs Crossplane
- OpenTofu vs Crusoe Cloud
- OpenTofu vs Google Cloud Run
- OpenTofu vs Vagrant
- OpenTofu vs kind
- OpenTofu vs Buildah
