All resources
Comparison

Terraform vs OpenTofu

Terraform vs OpenTofu: license, governance, CLI compatibility, state, and when to migrate — a clear side-by-side comparison.

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
Hands-on courses on Terraform & OpenTofu