Opentofu vs Terraform — The Fork That Actually Works
Terraform's license drama birthed a better open-source alternative. Opentofu wins on principle and practicality.
Opentofu
Opentofu is Terraform without the baggage — same syntax, same ecosystem, but truly open-source under Apache 2.0. No license paranoia, no vendor lock-in fears.
This Isn't Just Another Fork — It's a Rebellion
When HashiCorp switched Terraform from Mozilla Public License to Business Source License (BSL) in 2023, they effectively weaponized their code against competitors. Opentofu forked from the last MPL-licensed version of Terraform, creating a community-driven project under Apache 2.0. This isn't about features — it's about control. Terraform is now a product with strings attached; Opentofu is infrastructure as code you can actually trust.
Where Opentofu Wins — Freedom Without Compromise
Opentofu's killer feature is license certainty. You can use it in any commercial project, fork it, modify it, or embed it without HashiCorp's permission. It maintains 100% compatibility with existing Terraform configurations and providers — your .tf files work unchanged. The community is actively adding features Terraform holds back, like native OCI image support and improved state management. No waiting for HashiCorp's roadmap.
Where Terraform Holds Its Own — The Incumbent's Edge
Terraform still has first-party support from HashiCorp and Terraform Cloud integration if you're locked into their ecosystem. Their registry has slightly more providers (though Opentofu can use them too). If you need enterprise support contracts and don't care about open-source purity, Terraform's sales team will hold your hand. But that's about it — technically, they're identical.
The Gotcha — Switching Costs Are Zero (Seriously)
Here's what surprises people: migrating from Terraform to Opentofu takes minutes. Install Opentofu, point it at your existing state files, and run tofu init. It uses the same provider cache and backend configurations. The only friction is psychological — letting go of the Terraform brand. Your CI/CD pipelines? Change terraform to tofu. That's it. No re-writing, no re-planning.
If You're Starting Today — Use Opentofu
New project? Choose Opentofu. Why? No BSL anxiety means you can build commercial tools on top of it. The community roadmap is transparent and aggressive — features like parallel apply are already in development. It's free forever with no usage limits, unlike Terraform Cloud's $20/user/month for teams. The only reason to pick Terraform is if your CTO insists on a vendor with a sales department.
What Most Comparisons Get Wrong — It's Not About Features
Most reviews compare provider counts or CLI flags. That's missing the point. Opentofu and Terraform are technically identical — same HCL, same execution engine, same providers. The difference is philosophical: Terraform is a product you rent; Opentofu is a tool you own. If you value software freedom, the choice is obvious. If you don't care, you're part of the problem.
Quick Comparison
| Factor | opentofu | terraform |
|---|---|---|
| License | Apache 2.0 (truly open-source) | BSL 1.1 (source-available with restrictions) |
| Pricing | Free, no usage limits | Free CLI, Terraform Cloud from $20/user/month |
| Provider Compatibility | Uses same providers as Terraform | Native provider registry |
| State File Format | Identical to Terraform | Proprietary but documented |
| Community Governance | Linux Foundation, open RFC process | HashiCorp-controlled |
| Enterprise Features | Third-party tools (e.g., Spacelift) | Built-in (Terraform Cloud/Enterprise) |
| CLI Commands | `tofu` instead of `terraform` | `terraform` |
| Future Roadmap | Community-driven (public GitHub) | HashiCorp-controlled (private) |
The Verdict
Use opentofu if: You value open-source principles, want zero license risk, or are building commercial tools on top of IaC.
Use terraform if: Your company has existing Terraform Enterprise contracts or needs hand-holding from HashiCorp support.
Consider: Pulumi if you hate HCL and want real programming languages — but that's a different debate.
Opentofu is Terraform without the baggage — same syntax, same ecosystem, but truly open-source under Apache 2.0. No license paranoia, no vendor lock-in fears.
Related Comparisons
Disagree? nice@nicepick.dev