Comparison

Terraform vs OpenTofu

OpenTofu is the open fork of Terraform after HashiCorp changed its license in 2023. Syntax and providers are shared, license and governance differ.

AspectTerraformOpenTofu
LicenseBUSL 1.1 since August 2023 (previously MPL-2.0)MPL-2.0
GovernanceHashiCorp (now part of IBM)Linux Foundation, open community
Config languageHCLHCL, compatible with Terraform
ProvidersTerraform RegistryOwn registry, most providers are the same
Unique featuresHCP Terraform, Sentinel, paid HashiCorp featuresState encryption, provider for_each, early variable evaluation
First release20142023 (fork of Terraform 1.5.x)
MigrationBaselineFor versions up to 1.5 it is a binary swap, beyond that check differences
Best forTeams already on HCP Terraform or needing vendor supportNew projects that want a truly open license

Choose Terraform when

  • You already use HCP Terraform and paid support.
  • Your company standardizes on Terraform and BUSL is no problem.
  • You want HashiCorp features first.

Choose OpenTofu when

  • You want a truly open license and neutral governance.
  • You need state encryption out of the box.
  • You sell a product competing with HashiCorp and BUSL blocks you.

Bottom line

For an ordinary user they are nearly identical in practice. New projects with no HashiCorp tie are better started on OpenTofu, and if you already run Terraform there is no urgent migration.

Compared

Logos belong to their owners and are used for identification only. Icons: Simple Icons (CC0), Devicon (MIT).