Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Terraform vs OpenTofu: Licences, Compatibility and Choosing

Choose OpenTofu if you want infrastructure as code under an open source licence, governed by the Linux Foundation, that works as a drop-in replacement for Terraform. Choose Terraform if you want the original tool and its commercial ecosystem, and your use fits its Business Source License, which allows internal use but not competing hosted offerings. For most teams the deciding factor is the licence, not the features.

I read Terraform's licence file and introduction, and OpenTofu's home page, FAQ and manifesto. OpenTofu exists because of a licence change, so that's where the comparison starts.

Terraform and OpenTofu side by side

TerraformOpenTofu
LicenceBusiness Source License 1.1 for version 1.6.0 and laterOpen source
Licensor or stewardInternational Business Machines Corporation (IBM)The Linux Foundation
OriginOpen sourced in 2014 under MPL 2.0Fork of the last MPL-licensed Terraform
EcosystemTerraform Registry, HCP Terraform, Terraform EnterpriseOpenTofu Registry: 3,900+ providers, 23,600+ modules
State filesNativeWorks with state up to Terraform 1.5.x
Free option (as of October 2026)Free to use within the licence termsYes, open source

What changed with Terraform's licence

OpenTofu's manifesto explains the background. Terraform was open sourced in 2014 under the Mozilla Public License 2.0, and after about nine years HashiCorp switched it to the Business Source License, which the OpenTofu group says isn't an open source licence. When HashiCorp didn't respond to the group's request to reverse it, they published a fork.

The current licence file in Terraform's repository is worth reading yourself. It names International Business Machines Corporation (IBM) as the licensor and covers Terraform version 1.6.0 or later. The additional use grant allows production use except offering Terraform to third parties on a hosted or embedded basis to compete with IBM's own versions, and it says using the software for internal purposes within an organisation isn't a competitive offering.

What OpenTofu offers

OpenTofu describes itself as a community-driven infrastructure as code tool under the Linux Foundation's stewardship and a drop-in replacement for Terraform that preserves your existing workflows and configurations. Its FAQ says it was created as an initiative of Gruntwork, Spacelift, Harness, Env0, Scalr and others, and that its aim is feature parity with Terraform.

Two compatibility details matter for anyone migrating. OpenTofu's FAQ says it works with existing state files up to those created with Terraform 1.5.x. And while it works with current Terraform providers, it uses a separate registry, searchable at search.opentofu.org, which its home page says holds more than 3,900 providers and 23,600 modules. The latest release is OpenTofu 1.13.0.

Who's affected by the licence

If you use Terraform to manage your own company's infrastructure, the licence file says that internal use isn't a competitive offering, so most companies using it for their own infrastructure fall outside that restriction. The teams that need to read it closely are vendors who host or embed infrastructure as code in a product that overlaps with IBM's paid versions. For them, OpenTofu was created to remove that uncertainty.

How to decide

  1. Do you want an open source licence with neutral governance? OpenTofu is under the Linux Foundation.
  2. Do you build a product or service that hosts or embeds infrastructure as code? Read Terraform's licence with a lawyer, or use OpenTofu.
  3. Are you on Terraform 1.5.x or earlier? OpenTofu says it works with those state files.
  4. Do you rely on HCP Terraform or Terraform Enterprise? Those are part of the Terraform ecosystem.
  5. Using common providers such as AWS or Cloudflare? OpenTofu works with current Terraform providers through its own registry.

For more on running infrastructure well, see my guide to cloud management suites, and this look at in-house vs outsourced development teams.

My advice on Terraform or OpenTofu

If you manage your own infrastructure and depend on HashiCorp's commercial services, staying on Terraform is reasonable, since internal use sits outside the licence's competitive restriction. If open source licensing matters to your company, or you build products in this space, OpenTofu gives you the same workflow under neutral governance. Test a migration on a non-production workspace first, and check your state file version before you switch.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Do you make infrastructure or DevOps tools? Tool makers can ask to be considered for a featured place in comparisons like this one.

Frequently asked questions

Is Terraform still open source?

Terraform's licence file shows the Business Source License 1.1 for version 1.6.0 and later. OpenTofu's manifesto says the Business Source License isn't open source.

Who owns Terraform's licence now?

The licence file in Terraform's repository names International Business Machines Corporation (IBM) as the licensor.

Is OpenTofu a drop-in replacement for Terraform?

OpenTofu describes itself as a drop-in replacement for Terraform that preserves existing workflows and configurations.

Can OpenTofu use my Terraform state file?

OpenTofu's FAQ says it works with existing state files up to those created with Terraform version 1.5.x.

Does OpenTofu use the Terraform Registry?

No. OpenTofu works with current Terraform providers but uses its own registry, searchable at search.opentofu.org.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.