Terraform vs OpenTofu: Which IaC Tool After the License Change?
Terraform vs OpenTofu 2026 — BSL vs MIT license, feature parity, OpenTofu 1.8 new features, and which IaC fork to use after HashiCorp's license change.
Quick Answer
OpenTofu 1.8 is a drop-in replacement for Terraform with a true MIT open-source license and growing community — choose it for new projects or if BSL licensing concerns your legal team. Terraform wins if you rely on Terraform Cloud, Sentinel policies, or HashiCorp's enterprise support contracts. For pure CLI usage, OpenTofu is fully compatible and adds features Terraform hasn't shipped yet.
Terraform vs OpenTofu: Overview
Terraform Cloud users, enterprises with HashiCorp support contracts, existing HCL codebases
OSS CLI free; Terraform Cloud free (500 managed resources)
Terraform Cloud Plus $20/user/month; Enterprise custom pricing
Teams needing true open-source IaC, organizations with OSS procurement policies
Fully free; MIT license with no commercial restrictions
Free forever (CLI); use any compatible state backend (S3, GCS, Spacelift, env0)
Terraform vs OpenTofu: Feature Comparison
| Feature | Terraform | OpenTofu |
|---|---|---|
| License | BSL 1.1 (non-OSI) | MIT (OSI-approved) |
| State Encryption | Plaintext (Vault add-on) | Built-in AES-256 (1.8+) |
| Provider Functions | Not available | Added in OpenTofu 1.8 |
| Managed Cloud Platform | Terraform Cloud (full-featured) | None native (use Spacelift/env0) |
| Module Registry Compatibility | Terraform Registry (15K+ modules) | Compatible with Terraform Registry |
| Enterprise Support | HashiCorp SLAs + pro services | Community + third-party vendors |
Pros & Cons
Terraform
Pros
- Terraform Cloud: managed remote state, cost estimation, Sentinel policy-as-code, audit logs
- HashiCorp enterprise support: SLAs, professional services, and compliance certifications
- 15,000+ Registry modules: the largest community module library in IaC
- Stable release cadence: 1.9.x with tested upgrade paths and migration guides
- Terraform CDK (CDKTF): generates HCL from TypeScript/Python for teams wanting both worlds
Cons
- BSL 1.1 license: not OSI-approved open source since August 2023 — disqualifies from some OSS policies
- Slower feature velocity: upstream features are sometimes behind OpenTofu community contributions
- Terraform Cloud lock-in: remote state, runs, and Sentinel are HashiCorp proprietary
- No workspace encryption: secrets in state files are plaintext without paid Vault integration
OpenTofu
Pros
- MIT license: true open-source with no commercial restrictions — passes any OSS procurement policy
- Linux Foundation governance: neutral foundation stewardship prevents future license changes
- OpenTofu 1.8: added provider-defined functions and state file encryption (AES-256, PBKDF2)
- Drop-in compatible: rename `terraform` to `tofu`; existing HCL files work unchanged
- 20,000+ GitHub stars and growing: active community with features shipping faster than Terraform
Cons
- No managed cloud platform: must self-manage state (S3 + DynamoDB) or pay for Spacelift/env0
- Smaller enterprise ecosystem: fewer commercial support partners than HashiCorp's certified network
- Version gap: OpenTofu 1.8 matches Terraform 1.8 feature set; some 1.9 Terraform features not yet ported
- Less name recognition: procurement teams and auditors may ask questions about the fork provenance
Our Verdict: Terraform vs OpenTofu
OpenTofu is the pragmatic choice for new projects: MIT license, drop-in HCL compatibility, and built-in state encryption make it strictly better than Terraform for teams without Terraform Cloud dependencies. Terraform remains the choice when you need Terraform Cloud's managed remote runs, Sentinel policy-as-code, or HashiCorp enterprise support contracts. Use OpenTofu if your org has OSS procurement requirements or you want provider-defined functions and native encryption; use Terraform if you're already invested in Terraform Cloud and the HashiCorp ecosystem.
Terraform vs OpenTofu — FAQs
Is OpenTofu truly compatible with existing Terraform code?
Yes, for the vast majority of codebases. OpenTofu forked from Terraform 1.5.x and has tracked feature parity through 1.8. All HCL syntax, provider calls, module structures, and state file formats are identical. The only incompatibilities arise from Terraform 1.9+ features not yet backported to OpenTofu, and Terraform Cloud-specific features (remote runs, Sentinel). Migrating is typically: install OpenTofu, alias `terraform` to `tofu`, and run `tofu init` — no HCL changes required.
What happened to the Terraform open-source license in 2023?
In August 2023, HashiCorp relicensed Terraform from Mozilla Public License 2.0 (MPL-2.0, open source) to Business Source License 1.1 (BSL 1.1), which is not approved by the Open Source Initiative. The BSL allows free use for most purposes but prohibits competing hosted services. This triggered the community to fork the last MPL-licensed version and create OpenTofu under the Linux Foundation with a permanent MIT license commitment. HashiCorp was subsequently acquired by IBM in 2024.
What new features does OpenTofu 1.8 add over Terraform 1.8?
OpenTofu 1.8 introduced two major features absent from Terraform: provider-defined functions (allowing providers to expose custom functions callable in HCL expressions) and native state file encryption using AES-256-GCM with PBKDF2 key derivation — no Vault required. These were community-requested features that Terraform had not shipped. OpenTofu also added early evaluation of variables and locals for module source and backend configuration, reducing the need for wrapper scripts.
Try the Best AI Platform — Free
Assisters brings the best of AI together in one platform. No credit card required to start.