29 November 2026 · 8 min read · Download as PDF

Terraform vs OpenTofu: what changed since the fork, and which to choose

OpenTofu forked from Terraform in 2023 after HashiCorp moved Terraform to the Business Source License. How the two compare in 2026: the license in plain words, compatibility and migration, the features only one of them has, and which to choose.

Prices are as of 29 Nov 2026 and can change, up or down. Check the provider's pricing page before you rely on them.

Cover: Terraform vs OpenTofu: what changed since the fork, and which to choose

Terraform and OpenTofu are two closely related infrastructure-as-code tools, run as separate projects. Until August 2023 there was only Terraform, open source under the Mozilla Public License (MPL 2.0). Then HashiCorp moved Terraform to the Business Source License (BUSL 1.1), and a group of companies and users forked the last open version as OpenTofu, now a Linux Foundation project. Both still read the same HashiCorp Configuration Language (HCL) files and use the same providers. Since the fork, each has added features the other doesn't have. Here is where they stand on 29 Nov 2026, with Terraform at 1.17 and OpenTofu at 1.13.

TL;DR

  • Terraform: made by HashiCorp, now part of IBM. Source-available under BUSL 1.1 since version 1.6. Free to use for your own infrastructure, including in production.
  • OpenTofu: the community fork, under MPL 2.0, run by the Linux Foundation and in the Cloud Native Computing Foundation (CNCF) Sandbox since 23 Apr 2025.
  • Compatibility: the same language and the same provider plugins, served from separate registries. The official migration from Terraform is a backup, tofu init, and a plan that should show "No changes" or the same plan Terraform would show.
  • Features: OpenTofu leads in the language and the command line (state encryption, for_each on providers, -exclude). Terraform leads in workflow features: Stacks in HashiCorp Cloud Platform (HCP) Terraform, plus Actions, terraform query and Terraform Policy.
  • Exams: HashiCorp's Terraform exams start with Terraform Associate (004). There is no OpenTofu certification, and what you learn for Terraform carries over to OpenTofu.

How the fork happened

Terraform and OpenTofu: how the fork happened. A timeline from left to right. Up to Terraform 1.5.x: open source under MPL 2.0. 10 August 2023: HashiCorp license change, BUSL 1.1 from Terraform 1.6. 20 September 2023: the Linux Foundation announces OpenTofu, under MPL 2.0. 10 January 2024: OpenTofu 1.6.0, the first stable release. 27 February 2025: IBM completes its purchase of HashiCorp. 23 April 2025: OpenTofu joins the CNCF Sandbox. Today, 29 November 2026: Terraform 1.17 and OpenTofu 1.13. Below the timeline, what the two still share: the HCL language, the same providers from separate registries, and state that migrates both ways, with care. Terraform and HashiCorp events are in purple, OpenTofu events in yellow.
  • 10 Aug 2023. HashiCorp announced it was moving its products from MPL 2.0 to the Business Source License v1.1 for future releases. Its APIs, software development kits (SDKs) and "almost all other libraries" stayed MPL 2.0. In Terraform, the new license covers version 1.6.0 and later. The last MPL release line is 1.5.x; 1.5.7 came out on 7 Sep 2023.
  • The manifesto. A group published the OpenTF manifesto, asking HashiCorp to return to an open-source license, with a deadline of 25 Aug. Its goal: "ensure Terraform remains truly open source—always." With no change by the deadline, the signatories forked.
  • 20 Sep 2023. The Linux Foundation announced OpenTofu, "previously named OpenTF", as "an open and community-driven response" to the license change. OpenTofu kept MPL 2.0.
  • 10 Jan 2024. OpenTofu 1.6.0, the first stable release, came out.
  • 27 Feb 2025. IBM completed its purchase of HashiCorp, at a $6.4 billion enterprise value. It had announced the deal on 24 Apr 2024.
  • 23 Apr 2025. OpenTofu joined the Cloud Native Computing Foundation (CNCF) at Sandbox level. It is still a Sandbox project.

Some things have changed for Terraform under IBM. The Terraform license now names IBM as the licensor; the terms are otherwise the same BUSL 1.1. Cloud Development Kit (CDK) for Terraform (CDKTF) was archived on 10 Dec 2025. The legacy HCP Terraform Free plan ended on 31 Mar 2026; the Free tier that replaced it includes 500 managed resources.

What the license means in plain words

This is a plain-words summary, not legal advice. Read the license itself, or ask a lawyer, if your business depends on it.

Terraform's license lets you use it in production, as long as your use doesn't include "offering the Licensed Work to third parties on a hosted or embedded basis in order to compete with IBM Corp.'s paid version(s)". It also says: "Hosting or using the Licensed Work(s) for internal purposes within an organization is not considered a competitive offering."

  • Not affected: learners, individuals, and companies using Terraform to manage their own infrastructure, in production too, including internal platforms. Free products are also outside the limit: the license says "Products that are not provided on a paid basis are not competitive."
  • Affected: a vendor selling a hosted or embedded product, or paid support, that "significantly overlaps" with HashiCorp's paid versions, HCP Terraform and Terraform Enterprise. A paid Terraform automation service is the typical case.
  • Products that came first: "If Your Product is not a competitive offering when You first make it generally available, it will not become a competitive offering later due to IBM Corp. releasing a new version".
  • Not limited at all: Terraform 1.5.x and earlier, which stay MPL 2.0, and HashiCorp's providers and SDKs.
  • A time limit: each Terraform release switches to MPL 2.0 four years after it is published. By that rule, Terraform 1.6.0 becomes MPL 2.0 on 4 Oct 2027.
  • OpenTofu: MPL 2.0, so none of these limits apply.

Compatibility and migration

  • Same language. Both read HCL .tf files. Since 1.8.0, OpenTofu also reads .tofu files, which override a .tf file of the same name. Module authors use them to support both tools from one module. OpenTofu 1.12 added a language block that keeps OpenTofu's version constraints apart from other tools' constraints.
  • Same providers, separate registries. OpenTofu has no providers of its own. In its words, it "works with the current Terraform providers, but it uses a separate registry." A short address like hashicorp/aws resolves to registry.terraform.io in Terraform and to registry.opentofu.org in OpenTofu. On 29 Nov 2026 both listed hashicorp/aws 6.74.0 as the newest version.
  • State. OpenTofu's FAQ still says it works with state files "up to those created with Terraform versions 1.5.x". That line dates from the fork. The current migration guide gives no version limit. It tells you to run a plan and check it.

The official migration guide, which OpenTofu calls "safe and reversible", has these steps:

  1. Back up your state files and your code.
  2. Install OpenTofu.
  3. Run tofu init. It downloads your providers from the OpenTofu registry.
  4. Run tofu plan. You should see "No changes", or the same plan you would see with Terraform.
  5. Run tofu apply, so OpenTofu updates the state file format if it needs to.
  6. Make a small test change and apply it.

To go back, restore your backups and run terraform init and terraform plan. If your configurations share data through the terraform_remote_state data source, read OpenTofu's separate guide for migrating several configurations first.

Features only in one or the other

The version in brackets is the first release with the feature, from that release's changelog.

Only in OpenTofu

  • State and plan encryption (1.7.0): client-side encryption of state and plan files, locally and in a backend, with keys from a passphrase or a key service such as AWS Key Management Service (KMS) or GCP KMS. Terraform relies on the backend's storage encryption.
  • for_each on provider blocks (1.9.0): for example, one aliased AWS provider per region.
  • -exclude (1.9.0): the opposite of -target; it plans everything except the objects you name.
  • Modules from OCI registries (1.10.0), with the oci: source address. Terraform 1.12 added an Oracle Cloud (OCI) Object Storage backend, which is a different thing.
  • The enabled meta-argument (1.11.0): a simpler way than count to create zero or one instance of a resource.
  • Experimental in 1.13: Symbol Libraries (reusable functions and types) and built-in linting.

Only in Terraform

  • Stacks: generally available since 25 Sep 2025, in HCP Terraform only, for new HCP Terraform plans. The terraform stacks command came in 1.13.0.
  • Actions (1.14.0): provider-defined operations outside create, read, update and delete, such as invoking a Lambda function or invalidating a CloudFront cache.
  • terraform query and list resources (1.14.0): find existing infrastructure and generate import configuration for it.
  • Terraform Policy (generally available in 1.17.0): policy checks with -policies on plan, apply and query.
  • HCP Terraform and Terraform Enterprise: HashiCorp's paid products for runs, a private registry and policy. HCP Terraform is a hosted service. OpenTofu has no first-party service of its own; teams use third-party automation services.

In both, at different times

  • Variables and locals in module sources: OpenTofu 1.8.0, "with limitations", which also allows them in backend configuration. Terraform 1.15.0 for module source and version, and 1.17.0 for provider requirements.
  • Ephemeral resources and values: Terraform 1.10.0; write-only attributes in Terraform 1.11.0. OpenTofu added all three in 1.11.0.
  • Simple Storage Service (S3) state locking without DynamoDB: OpenTofu 1.10.0; Terraform 1.10 as an experiment, generally available in 1.11.0.
  • Deprecated variables and outputs: OpenTofu 1.10.0, Terraform 1.15.0.
  • The convert function: Terraform 1.15.0, OpenTofu 1.13.0.

Each side has picked up ideas the other had first, so the everyday core of HCL is still shared.

Current versions

  • Terraform 1.17.2, released 11 Nov 2026. Terraform 1.17.0 came out on 21 Oct 2026.
  • OpenTofu 1.13.10, released 23 Nov 2026. OpenTofu 1.13.0 came out on 30 Sep 2026, and the 1.13 series is supported until August 2027. The 1.12 series still gets fixes.

Terraform shipped three minor versions in 2026 (1.15, 1.16 and 1.17) and OpenTofu two (1.12 and 1.13), after 1.11 in December 2025. The numbers no longer line up. Terraform 1.13 and OpenTofu 1.13 are not the same thing.

Which should you choose?

  • Choose Terraform if you use HCP Terraform or Terraform Enterprise, want Stacks, Actions or Terraform Policy, or are studying for the Terraform Associate exam. It also has far more learning material: on 29 Nov 2026, Stack Overflow had 20,187 questions tagged terraform and 31 tagged opentofu.
  • Choose OpenTofu if you want an open-source license under a foundation, need state encryption in the tool itself, or want its language features, such as provider for_each or -exclude. It also suits vendors whose paid product would overlap with HashiCorp's paid versions.

For most people learning infrastructure as code, the choice matters less than it looks. The language, the providers and the workflow (init, plan, apply) are the same. Learn one and most of what you know carries over to the other.

For the exams

  • HashiCorp Terraform Associate (004) tests Terraform 1.12. It is one hour, multiple choice, proctored online, and costs $70.50 plus local taxes. Its objectives don't mention OpenTofu, and one objective covers HCP Terraform.
  • HashiCorp also has two higher Terraform exams: Infrastructure Engineer Professional, which tests Terraform 1.15, and Authoring & Operations Advanced, a lab-based exam that tests Terraform 1.6.
  • There is no OpenTofu certification. Because the core language is shared, Terraform Associate skills carry over to OpenTofu.
  • The Kubernetes exams (CKA, CKAD and KCNA, the Kubernetes and Cloud Native Associate) don't test Terraform or OpenTofu.

Common questions

Is Terraform still free to use?

For using it to manage your own infrastructure, yes, including in production. The license limits paid products that compete with HashiCorp's paid versions of Terraform.

Can OpenTofu use Terraform providers and modules?

Yes. OpenTofu runs the same provider plugins, served from its own registry. Most modules work in both; module authors can add .tofu files where OpenTofu needs something different.

Can I switch back from OpenTofu to Terraform?

The migration guide is written to be reversible: keep your backups, and to go back, restore them and run terraform init and terraform plan. Once you use features only one tool has, such as OpenTofu's state encryption or Terraform's Stacks, switching takes more work.

Keep going

Gazeek has a free Terraform and Packer video course. It teaches the HCL, providers and workflow that Terraform and OpenTofu share.

More from the blog