Definition
What it is
OpenTofu is an infrastructure-as-code tool that reads HCL configuration, builds a dependency graph and applies changes to cloud and on-prem resources through providers. It is a fork of Terraform 1.5.x, the last release published under the Mozilla Public License 2.0 before HashiCorp moved to the Business Source License 1.1 in August 2023. The fork keeps the language, the provider plugin protocol and the state file format, so a Terraform configuration is, in most cases, a valid OpenTofu configuration.
The distinction that matters is governance and licence, not syntax. Terraform is a product of HashiCorp, now under BUSL 1.1, a source-available licence with restrictions on competing offerings. OpenTofu is a project of the Linux Foundation, under MPL 2.0, an OSI-approved licence that permits modification and redistribution without a competing-use clause.
Why it matters
In August 2023 HashiCorp relicensed its products from MPL 2.0 to BUSL 1.1. The change did not affect existing releases, but every future release of Terraform would carry restrictions on how the software could be offered as a service or embedded in a competing product. For organisations that build platforms on top of Terraform, or that need to redistribute it, the change was a strategic risk that no amount of engineering could mitigate.
OpenTofu answers that risk with three commitments: a permanent MPL 2.0 licence, a vendor-neutral foundation and backward compatibility with the Terraform ecosystem. The project received formal pledges from more than 140 organisations and 600 individuals at launch, with a starting commitment of at least 18 full-time developers for five years (Linux Foundation, 2023).
How it works
The workflow is the same four commands Terraform users already know: tofu init downloads providers and modules, tofu plan computes a diff, tofu apply commits it, tofu destroy tears it down. The binary reads .tf files, builds a DAG and calls provider plugins over gRPC.
Compatibility has three layers. The configuration language is HCL, unchanged. The provider plugin protocol is the same, so any provider binary that works with Terraform also works with OpenTofu. The state file format is compatible, which makes migration a matter of pointing the binary at the existing backend.
The registry is where the projects diverge. Terraform resolves providers from registry.terraform.io; OpenTofu defaults to registry.opentofu.org, which mirrors most of the Terraform registry, including every HashiCorp-maintained provider, but signs its own releases. OpenTofu refuses providers whose signatures do not match its trust roots.
OpenTofu-only features appear from 1.7 onward. Native client-side state encryption, introduced in 1.7, encrypts state and plan files before they reach the backend. Early evaluation of variables and locals, introduced in 1.8, allows dynamic values in module sources, backend configuration and encryption blocks. The .tofu override extension lets a module carry OpenTofu-specific files alongside Terraform-compatible .tf files.
Common failures
The first failure is registry mismatch. A configuration that pins source = "hashicorp/aws" works on both tools because both registries carry the provider, but a configuration that pins a private or third-party provider may exist in only one registry. Migrations need a provider inventory before they need a binary swap.
The second failure is signature trust. OpenTofu verifies provider signatures against its own trust roots. A provider published only to the Terraform registry may download but fail verification, and the error message points to the signature, not to the registry.
The third failure is version drift. Compatibility is versioned: Terraform 0.14 through 1.5 are MPL-licensed and can be forked; Terraform 1.6 and later are BUSL. A team that migrates from Terraform 1.9 to OpenTofu inherits a state file whose feature set may include constructs OpenTofu has not implemented yet.
Origin
On 10 August 2023 HashiCorp announced that all future releases of its products, Terraform included, would move from MPL 2.0 to the Business Source License 1.1 (HashiCorp, 2023). The licence change did not retroactively affect existing releases, but it ended the era in which Terraform could be forked, embedded or offered as a service without restriction.
Within days, a group of companies and individuals announced a fork of the last MPL-licensed release, Terraform 1.5.x, under the name OpenTF. On 20 September 2023 the Linux Foundation announced the formation of the project under a new name, OpenTofu, with backing from Harness, Gruntwork, Spacelift, env0, Scalr, Digger, Terrateam, Massdriver and Terramate, among others (Linux Foundation, 2023).
The name carries the history. "OpenTF" was a literal abbreviation of Open Terraform. The rename to "OpenTofu" kept the initials in the first syllable and moved the project away from a trademark it did not own, while preserving the joke that TF, vocalised, sounds like tofu.
We believe that the essential building blocks of the modern Internet—tools such as Linux, Kubernetes, and Terraform—must be truly open source. That is the only way to ensure that we are building our industry on top of solid and predictable underpinnings.
— Yevgeniy (Jim) Brikman, Co-founder and CEO of Gruntwork, OpenTofu founding team member, 20 September 2023
Evidence
FAQ
- Is OpenTofu a drop-in replacement for Terraform?
For most configurations, yes: same language, same provider protocol, same state format. The exceptions are providers that exist in only one registry, features introduced after Terraform 1.5 that OpenTofu has not implemented, and workflows tied to HCP Terraform's remote execution.
- Can I migrate without rewriting my code?
In most cases you change the binary, not the code. Run
tofu init, review the plan, and confirm that the provider set resolves fromregistry.opentofu.org. A plan against the real backend is the cheapest migration test.- Does OpenTofu support the Terraform Registry?
It can download from it, but the default is
registry.opentofu.org. The OpenTofu registry mirrors most Terraform providers, including all HashiCorp-maintained ones, and signs its own releases.- Who governs OpenTofu?
The Linux Foundation. The project has a technical steering committee and a public RFC process, and it does not depend on a single vendor for funding or direction.
- Is OpenTofu compatible with Terraform 1.6 and later?
Not feature-for-feature. OpenTofu forked from Terraform 1.5.x, the last MPL release, and reimplements later features on its own schedule. Check the changelog for the specific construct you depend on.
Pros and cons
Pros
- Permanent MPL 2.0 licence with no competing-use clause.
- Neutral governance under the Linux Foundation.
- Same language, provider protocol and state format as Terraform.
- Native state encryption since 1.7, a feature Terraform does not have.
- Active community: roughly 1.8 million peak daily registry requests and 22,000 GitHub stars by mid-2024.
Cons
- Feature parity with Terraform is versioned and incomplete at the edges.
- Smaller ecosystem of managed platforms, consultancies and training material.
- Enterprise integrations and remote-run services are less mature than HCP Terraform.
- Migration requires inventory and verification, not just a binary swap.
Key numbers
Timeline
10 August 2023 — HashiCorp relicenses Terraform to BUSL 1.1.
August 2023 — The OpenTF manifesto and fork are announced.
20 September 2023 — The Linux Foundation launches OpenTofu.
January 2024 — OpenTofu 1.6 ships, the first stable release under the new name.
April 2024 — OpenTofu 1.7 introduces native client-side state encryption.
July 2024 — OpenTofu 1.8 introduces early evaluation, provider mocking and
.tofuoverrides.2024–2025 — Registry traffic grows to roughly 1.8 million peak daily requests.
Entities
Projects and organisations in the OpenTofu story
| nombre | tipo | rol | url | estado |
|---|---|---|---|---|
| OpenTofu | proyecto | fork MPL 2.0 de Terraform | https://opentofu.org | activo |
| Terraform | producto | herramienta original de HashiCorp | https://terraform.io | activo |
| HashiCorp | empresa | autor de Terraform, cambió a BUSL 1.1 | https://hashicorp.com | activo |
| Linux Foundation | fundación | gobernanza neutral de OpenTofu | https://linuxfoundation.org | activo |
| Gruntwork | empresa | miembro fundador del proyecto | https://gruntwork.io | activo |
| Spacelift | empresa | miembro fundador, plataforma IaC | https://spacelift.io | activo |
| env0 | empresa | miembro fundador, plataforma IaC | https://env0.com | activo |
| Scalr | empresa | miembro fundador, plataforma IaC | https://scalr.com | activo |
Learning path
Progression from beginner to expert
Prerequisite
infrastructure-as-code, terraform, hcl
This term
You are here: opentofu.
Next
terraform-provider, state-file, gitops, argocd
Connections
- infrastructure-as-code
- terraform
- hcl
- state-file
- terraform-provider
- gitops
- opentofu-registry
Sources
The Linux Foundation (2023). Linux Foundation Launches OpenTofu: A New Open Source Alternative to Terraform. https://www.linuxfoundation.org/press/announcing-opentofu
HashiCorp (2023). HashiCorp adopts Business Source License. https://www.hashicorp.com/en/blog/hashicorp-adopts-business-source-license
OpenTofu (2024). OpenTofu 1.8.0 is out with Early Evaluation, Provider Mocking, and a Coder-Friendly Future. https://opentofu.org/blog/opentofu-1-8-0/
OpenTofu (2024). Documentation. https://opentofu.org/docs/
HashiCorp (2024). Licensing FAQ. https://www.hashicorp.com/en/license-faq
Etymology
Origin: compound
open(adjective): Old English open, accessible, not closedtofu(noun): playful lexicalization of the initials TF (Terraform), adopted after the initial name OpenTF
Semantic network
● broader ● narrower ● related
Used in the garden
- The Longevity Secret: Are You Truly Mastering Your Golden Years' Health? (1×)
- Unlock Eternal Vitality: The Definitive Guide to Senior Health (1×)
Sources
The Linux Foundation (2023). Linux Foundation Launches OpenTofu. https://www.linuxfoundation.org/press/announcing-opentofu
HashiCorp (2023). HashiCorp adopts Business Source License. https://www.hashicorp.com/en/blog/hashicorp-adopts-business-source-license
OpenTofu (2024). OpenTofu 1.8.0 release notes. https://opentofu.org/blog/opentofu-1-8-0/
OpenTofu (2024). Documentation. https://opentofu.org/docs/
HashiCorp (2024). Licensing FAQ. https://www.hashicorp.com/en/license-faq