All resources
Comparison

Terraform vs OpenTofu

How the OpenTofu fork differs from Terraform on licensing, features, and drop-in compatibility — and which to choose in 2025.

In short — OpenTofu is a community fork of Terraform created after HashiCorp moved Terraform to the BUSL license. For everyday HCL it is a drop-in replacement; the differences are about governance, licensing, and a few diverging features.
TerraformOpenTofu
LicenseBUSL 1.1 (source-available)MPL 2.0 (true open source)
GovernanceHashiCorp (IBM)Linux Foundation, community-led
LanguageHCLHCL — compatible with Terraform
CLIterraformtofu — same subcommands
State formatCompatibleCompatible; can read Terraform state
Unique featuresStacks, HCP integrationState encryption, early variable eval, provider-for-each
Registryregistry.terraform.ioOwn registry; pulls the same providers

Which should you use?

Pick OpenTofu when you want a permissive OSS license and community governance — migration is usually changing the binary and provider source addresses. Stay on Terraform if you depend on HCP Terraform, Stacks, or an enterprise support contract.

Go deeper
Full, hands-on DevSecOps courses
Browse courses