HCP Terraform vs Terraform vs OpenTofu

HCP Terraform suits teams that want HashiCorp to host state and runs and accept per-resource fees. OpenTofu suits teams that want an MPL-2.0 engine they run inside their own infrastructure, and Terraform suits teams that already run its BSL 1.1 CLI after reviewing the license.

On this page

Which fits your team: HCP Terraform, Terraform or OpenTofu

Choose HCP Terraform if your team wants a hosted control plane for state, runs, variables and policy, and you accept per-resource fees for that service. Choose OpenTofu if you want an MPL-2.0 engine that runs inside your own cloud accounts, data centers or air-gapped network, where your state and plan files stay under your own controls. Choose Terraform if your team already runs the Terraform CLI under the Business Source License 1.1, which applies from version 1.6.0 onward, and has reviewed those terms with counsel. For production code, the deciding factors are which engine license your legal and security teams will sign off on and which hosting model your platform team can operate.

HCP Terraform and Terraform come from the same vendor line, since HashiCorp built both and IBM completed its acquisition of HashiCorp on February 27, 2025. OpenTofu is the community fork, under Linux Foundation stewardship and accepted to the CNCF Sandbox on April 23, 2025, and it describes itself as a drop-in replacement for Terraform. Engine choice and hosting choice are separate decisions. A team can run OpenTofu in its own cluster, run the Terraform CLI against HCP Terraform, or self-manage Terraform Enterprise, which is a separate product priced by custom quote. Each combination carries different license, data residency and operating obligations, so map them separately before you compare vendors.

Run three checks before you shortlist. First, count managed resources across your state files, because HCP Terraform bills per resource: the HashiCorp pricing page lists Essentials at $0.10, Standard at $0.47 and Premium at $0.99 per resource per month, and the enhanced Free tier includes 500 managed resources at no charge, which is a useful place to test your count. Second, ask counsel to read the Terraform LICENSE against your planned use, especially whether you would offer Terraform to third parties on a paid basis. Third, if you pick OpenTofu, test your providers and modules on it, because the OpenTofu FAQ says compatibility with future Terraform releases is not guaranteed, and enable state encryption with a key provider you control.

Which HCP Terraform, Terraform or OpenTofu scenario applies to your team

This table maps common team situations to the option that fits best, along with the condition that must hold for that fit. Read each row as a check: confirm the stated requirement, such as a data residency rule or a managed resource count, before you rely on it. The main takeaway is that where state and runs must live usually decides the choice before features do.

ScenarioBest fitWhy it holds, and the condition
Team wants managed state and no servers to runHCP Terraform (Essentials, Standard or Premium)Holds if HashiCorp hosting of state and runs fits your data rules. Essentials lists $0.10 per resource per month on the HashiCorp pricing page.
Regulated team that must keep state and runs inside its own networkOpenTofu, self-hostedHolds when a rule bars hosted state. OpenTofu encrypts state and plans at rest with key providers such as AWS KMS or OpenBao.
Team already running Terraform EnterpriseTerraform Enterprise (self-managed)Holds when you want the same self-managed workflow. It runs on Docker, Kubernetes, OpenShift, Nomad or Podman as of version 1.0.0; pricing is custom.
Existing Terraform codebase, team wants an open engineOpenTofuHolds if your providers and modules pass a test run on OpenTofu. OpenTofu is MPL-2.0, but future Terraform compatibility is not guaranteed.
Team keeps Terraform as the engine for internal useTerraform CLI, version 1.6.0 or later, under BSL 1.1Holds for internal use, which the license does not treat as a competitive offering. Third-party paid offerings need legal review.
Small team evaluating the free tierHCP Terraform Free (hosted by HashiCorp)Holds at 500 managed resources or fewer, with unlimited users and SSO. Managed resources are counted from first plan or apply.
Team that needs paid HCP Terraform featuresHCP Terraform Standard or PremiumHolds when you need unlimited module publishing or change requests. Essentials does not include them; Standard and Premium do.

How the choice runs as a decision path

The diagram starts with one question: may your state files and plan or apply runs leave your network? If they may, the next question is whether you want a hosted control plane. If they may not, you need a self-managed control plane. Either way, check whether your organization can accept the Business Source License 1.1 terms that cover Terraform 1.6.0 and later. The Terraform license grant allows internal use, so the license question mainly matters if you would offer Terraform to third parties. Confirm that reading with counsel before you settle on the Terraform CLI path.

Decision path from network boundary to HCP Terraform, Terraform, or OpenTofu.

Where state, runs and encryption keys live in each model

Choose HCP Terraform only if your auditors accept HashiCorp as the host of your state and run data. In HCP Terraform, state lives in HashiCorp's hosted service, and the HCP Terraform state versions API returns a workspace's current state through GET /workspaces/:workspace_id/current-state-version. The response includes a hosted-state-download-url for raw state and, for states written by Terraform 1.3 or later, a hosted-json-state-download-url. Those download URLs are the path reviewers will ask about: who can call the API, how tokens are scoped, and what audit logs you can export. Ask HashiCorp in writing which hosting region applies to your organization, how state is encrypted, and who controls the keys. Also confirm whether runs execute on HashiCorp-managed workers or on HCP Terraform agents you host, because the runner location decides where plan data and provider credentials sit.

Terraform Enterprise moves that control plane into your own infrastructure. As of version 1.0.0, it runs self-managed on Docker, Kubernetes, OpenShift, Nomad or Podman, on AMD or ARM architectures. State, plan logs and run data then sit in storage you provision, so the evidence shifts to your backups, access reviews, node hardening and network controls. Confirm with HashiCorp which storage and encryption options your target version supports, and whether state encryption keys can come from your own KMS or HSM. Choose this model only if your team can operate the cluster it depends on, because patching, capacity and recovery become your responsibility. Pricing for the self-managed edition is custom, so ask for a quote that names each component, the support level and the infrastructure it requires.

Self-run OpenTofu keeps state, plans and keys entirely under your control, which keeps every control point in your hands. OpenTofu encrypts state and plan files at rest for local and remote backends, with key providers PBKDF2, AWS KMS, GCP KMS, OpenBao and Azure Vault, a capability introduced in v1.7. The key provider decides who can decrypt your state: a PBKDF2 passphrase is managed by your team, while a KMS provider ties decryption to your cloud identity and key policies. Test a restore from an encrypted backup before you rely on the setup, because a lost key means lost state. Also confirm which runner location you can evidence, such as a CI runner in your own cloud network or a virtual machine in your data center. Before the audit, agree with your auditors on the backend, key provider and runner location they will accept, and document how each one is rotated.

What each platform does differently on the features that decide the choice

This table compares the license, hosting model, state encryption, policy as code, registry size, latest release, entry tier and Terraform compatibility of the three options. Where a cell says to confirm, check that detail with HashiCorp or the OpenTofu project before you commit. The main takeaway is that OpenTofu has the most documented built-in state encryption, while HCP Terraform bundles hosting, remote state and policy into a vendor service.

FeatureHCP TerraformTerraformOpenTofu
LicenseHosted service under HashiCorp commercial terms; confirm terms with HashiCorpBusiness Source License 1.1 from v1.6.0, converting to MPL 2.0 four years after each versionMozilla Public License 2.0, under Linux Foundation stewardship
Hosting modelVendor-hosted service; Terraform Enterprise is the self-managed editionCLI runs wherever you run it; Terraform Enterprise self-manages on Docker, Kubernetes, OpenShift, Nomad or PodmanCLI runs in your own infrastructure, with the runner or platform you choose
State encryptionRemote state included on all tiers; confirm at-rest encryption and key control with HashiCorpDepends on your chosen backend; confirm encryption and key ownership for your setupBuilt-in at-rest encryption for state and plan files since v1.7, with PBKDF2, AWS KMS, GCP KMS, OpenBao or Azure Vault
Policy as codeSentinel and OPA included on the enhanced Free tierConfirm which HashiCorp policy options work with the open CLIConfirm which policy tooling is supported with OpenTofu before you design controls around it
Registry sizePrivate registry included on all tiers; confirm public registry coverage for your providersConfirm registry coverage for your providers with HashiCorpMore than 3,900 providers and 23,600 modules, searchable at search.opentofu.org
Latest releaseManaged service; confirm which Terraform version each workspace runsv1.16.6, released October 14, 2026, with v1.17.0 in release candidatesv1.13.1, released October 1, 2026
Terraform compatibilityRuns Terraform; confirm with HashiCorp whether it also runs OpenTofuThe original product that OpenTofu forked fromDrop-in replacement aiming for feature parity; future Terraform compatibility is not guaranteed
Entry tierEnhanced Free tier: 500 managed resources, unlimited users, SSO, Sentinel and OPAProduction use allowed for internal purposes; offering Terraform to third parties is restrictedOpen-source CLI; your cost is infrastructure and operating effort

What the license terms and paid editions mean for each option

HCP Terraform is a subscription service run by HashiCorp, so the vendor operates the platform and bills for it. The hosted tiers charge per managed resource per month, while Terraform Enterprise, the self-managed edition, and HCP Terraform Europe are quoted individually. A enhanced Free tier lets smaller teams start without a subscription, within a fixed resource limit.

  • Essentials at $0.10 per resource per month: According to the HashiCorp pricing page, this equals $0.00013 per hour. It includes remote state, VCS connections, projects, secure variables, remote runs, a private registry and team management, with test-integrated module publishing limited to 10 modules.
  • Standard at $0.47 and Premium at $0.99 per resource per month: These tiers add unlimited module publishing, module deprecation, team notifications, change requests, no-code provisioning and HCP Waypoint features that Essentials does not include.
  • Terraform Enterprise and HCP Terraform Europe: Both are custom-priced from a quote. Terraform Enterprise runs on Docker, Kubernetes, OpenShift, Nomad or Podman on AMD or ARM, so your team also pays for and operates the underlying infrastructure.
  • Enhanced Free tier with 500 managed resources: HashiCorp moved remaining legacy Free organizations to this tier after the legacy plan ended on March 31, 2026. It includes unlimited users, SSO, Sentinel and OPA policy as code, run tasks, HCP Terraform agents and cost estimation. A managed resource is counted from its first plan or apply, and null resources are excluded.
  • What recurs: Per-resource charges repeat every month and grow with your state, so the bill follows your resource count.

Before you sign, get the quote in writing with the resource count you expect in 12 months, and confirm which features each tier includes beyond the ones listed here.

What drives the running cost of each option

Each option sends the bill to a different place. HCP Terraform charges per managed resource, Terraform Enterprise charges by custom quote and adds a platform your team runs, and self-run engines move the cost onto your staff and infrastructure. An implementation partner adds a one-time project cost on top of any of them.

HCP Terraform per resource billing

HCP Terraform is billed per managed resource per month: $0.10 on Essentials, $0.47 on Standard and $0.99 on Premium, according to HashiCorp's pricing page. HashiCorp counts a resource as one in a state file with mode set to managed, from its first plan or apply, and excludes null resources. Cost rises with every managed resource you add, so count resources in your current state files before you model a tier. Ask which features each tier includes for your workspaces, and confirm that the quote uses the same resource count method.

HashiCorp pricing page

Terraform Enterprise custom contract

Terraform Enterprise is the self-managed edition, and its price comes from a custom quote, so no published list price applies. It runs on Docker, Kubernetes, OpenShift, Nomad or Podman, on AMD or ARM architectures, as of version 1.0.0. Your team carries the container platform, the upgrades and the backups that keep the instance running and recoverable, on top of the contract. Ask the vendor which platform and architecture the quote assumes, and what upgrade support is included.

Terraform Enterprise deployment docs

Self-run engine and upkeep

Running Terraform or OpenTofu yourself carries no engine fee under the stated terms. OpenTofu is licensed under MPL 2.0, and Terraform's Business Source License allows internal production use unless you offer Terraform to third parties in a competing paid product. The bill moves to your team for the state backend, runners, key management and upkeep, paid in staff time and infrastructure. OpenTofu can encrypt state at rest with keys from AWS KMS, GCP KMS or OpenBao, and someone on your team owns those keys. Ask who patches the runners and rotates the keys.

OpenTofu state encryption docs

Implementation as fixed scope

DeployOpen works on fixed scope, with scope, deliverables and timelines agreed in writing before work starts. That scope is built from the module count, the state migration and the pipeline work, so those are the inputs to check in any quote. This is a one-time project cost on top of whichever option you run, and it does not remove the recurring costs above. DeployOpen does not publish a price list, so a quote follows from the written scope. Ask for the module count assumed, the state backends in scope, and the handover and documentation at the end.

Cost of switching later

Moving between these options later costs time for state, code and pipelines, and that cost grows with the state you hold. HCP Terraform exposes each workspace's current state through its state versions API, which gives you an export path before any move. OpenTofu's migration guide describes backing up state and code, installing OpenTofu, initializing and verifying, then testing with a small change. OpenTofu does not guarantee compatibility with future Terraform releases, so ask for a test plan and rollback path in the quote.

OpenTofu migration overview

What standing up each option asks of your team

HCP Terraform moves platform operations to HashiCorp and leaves configuration with your team. HashiCorp runs the hosted service, so your staff do not install or maintain a control plane. The setup work stays with you: connecting VCS connections to your source control host, creating workspaces for each environment, loading cloud credentials into secure variable storage, setting team access for each group, and deciding which policy checks run before an apply. Policy sets need an owner who writes and reviews them, and the enhanced Free tier already includes Sentinel and OPA policy as code. Confirm with HashiCorp which features your tier includes, since Essentials omits some module publishing and no-code provisioning features that Standard and Premium add.

Terraform Enterprise moves installation, upgrades and backups onto your side of the boundary. It is the self-managed edition, and as of version 1.0.0 it runs on Docker, Kubernetes, OpenShift, Nomad or Podman on AMD or ARM architectures. Your platform team chooses the container platform, provisions nodes and storage, installs the application and then owns every upgrade and every backup of the data it holds. Ask who already runs that container platform, because a team with an existing Kubernetes practice will staff this very differently from one that must build it. The VCS, variable and team setup described above still applies, now inside your network. DeployOpen can plan, install and document this under a written scope, but a named owner in your organization must run upgrades and backups after handover.

Self-run OpenTofu leaves your team owning the state backend, encryption, runners and testing. The software is free under MPL 2.0, but the platform around it is what you build. Four pieces need an owner before the first production apply: the remote state backend, the key provider that encrypts state and plan files (OpenTofu supports PBKDF2, AWS KMS, GCP KMS, OpenBao and Azure Vault, and state encryption arrived in v1.7), the runner design that holds credentials and executes plans, and a test suite. The migration guidance gives a usable sequence: back up state and code, install, initialize and verify, then test with a small change before wider rollout. Confirm with your cloud and security teams who controls the key, because that decision shapes every later audit question. DeployOpen can implement and document these pieces under a written scope.

How the move from Terraform to OpenTofu works in practice

The move runs in a fixed order: confirm what wrote the state, back it up, install and verify OpenTofu, then prove the change on a small test before cutover. The sequence produces a tested, restorable path back to current state and a clean plan in OpenTofu. Nothing is cut over until each check has a recorded result.

  1. Confirm the Terraform version behind each state

    Before anything else, the team records which Terraform version last wrote each state, because that determines which hosted download formats and state details apply. For HCP Terraform, check the state version metadata for each workspace. Also list every provider and module the configuration pins, and mark those whose behavior the team must verify after the switch. Output: a written inventory with one row per workspace, state version, provider and module, reviewed before any other step starts.

  2. Back up state and code first

    Export a copy of every state you will touch and store it outside the platform, together with a commit of the configuration at the revision running in production. For HCP Terraform, call GET /workspaces/:workspace_id/current-state-version for each workspace. Use the hosted-json-state-download-url for states created by Terraform 1.3 or later, and the hosted-state-download-url for raw state. Store each file with its checksum. Output: a restorable set you have opened once and confirmed parses as valid JSON, with the matching code commit recorded. The OpenTofu migration overview follows the same backup-first order.

  3. Install and pin OpenTofu

    Install the OpenTofu release the team has chosen on a jump host or CI runner that does not hold production credentials. The OpenTofu GitHub releases page lists v1.13.1, released October 1, 2026, at the time this page was researched, so confirm which release is newest before you pin. Pin the same version in every pipeline and record the Terraform version it replaces. Output: tofu version reports the pinned release on every runner, and that output is saved with the change record.

  4. Initialize and validate the configuration

    Run tofu init against a copy of the working directory, using the same backend settings and provider versions as production. Then run tofu validate and a full plan against a copy of the state so nothing in production is written. Read the plan for every provider and module on your inventory list. Expect no creates, updates or destroys that you cannot explain. Output: a plan with no unexplained changes, saved with the init log and the dependency lock file.

  5. Decide on state encryption before the first write

    OpenTofu can encrypt state and plan files at rest for local and remote backends, with key providers including PBKDF2, AWS KMS, GCP KMS, OpenBao and Azure Vault, a feature introduced in v1.7. Choose the key provider your key management policy already covers, and confirm that your backend works with it before the first write. If state stays in HCP Terraform, confirm how encryption applies to that backend, since HashiCorp hosts it. Keep the unencrypted backup in restricted storage until the encrypted copy is verified.

  6. Test a small change in a nonproduction workspace

    HCP Terraform runs Terraform, so confirm how OpenTofu will execute runs before this test. Then apply one low-risk change, such as a description or tag update on a resource that carries no traffic, in a workspace that mirrors production but holds no live data. Run a plan again immediately after the apply. Confirm the state is written, the backup restores cleanly into a scratch workspace, and the second plan reports no changes. Output: a change record with the applied diff, the clean follow-up plan and the restore result.

  7. Cut over and keep a rollback path

    Switch production pipelines and operators to OpenTofu only after the test change, the plan review and the restore check have all passed. Keep the Terraform backups and the previous Terraform version available for the rollback period the team agrees in advance. Track any feature or provider behavior that differs, because OpenTofu aims for feature parity with Terraform but does not guarantee compatibility with future Terraform releases. Output: a first production plan with no unexpected changes, a signed cutover record and a dated list of Terraform behaviors you still depend on.

What buyers ask before they choose and hire help

How is HCP Terraform priced and how do I count managed resources?

HCP Terraform is priced per managed resource per month, so the bill follows the number of resources in state. The HashiCorp pricing page lists Essentials at $0.10 per resource per month ($0.00013 per hour), Standard at $0.47 and Premium at $0.99. Terraform Enterprise, the self-managed edition, and HCP Terraform Europe use custom pricing. HashiCorp counts a managed resource as one in a state file with mode set to managed, counted from its first plan or apply, and excludes null resources. To estimate, count managed resources across every workspace, multiply by the tier rate, and then check which features each tier includes. Essentials limits test-integrated module publishing to 10 modules, while Standard and Premium add unlimited module publishing and change requests. Ask for the quote to show the tier, the resource count and whether any included allowance applies.

Does the Business Source License stop my team from using Terraform in production?

No, for internal use. The Business Source License 1.1 that covers Terraform 1.6.0 and later allows production use, and the license states that hosting or using Terraform for internal purposes within an organization is not a competitive offering. The restriction targets offering Terraform to third parties on a hosted, embedded or paid basis, including paid support arrangements, where the offering significantly overlaps with IBM's paid versions. Teams that only run Terraform for their own infrastructure fall outside that restriction. Teams that sell a hosted service or embed Terraform in a product sold to others should have counsel test their offering against the definition. The license also sets a change date four years after each version is published, when that version converts to MPL 2.0. Have counsel confirm the reading for your offering before you commit.

What sets how long a Terraform to OpenTofu migration takes?

The length is set by how much state, code and pipeline work sits behind the switch. Installing the binary takes little of that time. The main drivers are the size of your state and the number of state files, the module count and how many modules are shared across workspaces, and how deeply your CI and CD pipelines depend on Terraform-specific commands, runner images and approval steps. OpenTofu's migration overview describes four steps: back up state and code, install OpenTofu, initialize and verify, then test with a small change. Each step grows with the drivers above. Provider version changes and remote backend changes add work when they coincide with the switch. No duration applies to every environment, so the estimate should come from your own inventory of these items.

How do I get a reliable time estimate for a fixed-scope migration?

Start with an inventory, then ask for a written scope that the timeline is built on. A fixed-scope engagement sets deliverables, timelines and boundaries in writing before work starts, so the estimate is only as firm as the inventory behind it. Give the provider counts for state files, workspaces, modules, pipelines, environments and any evidence your compliance team needs. The scope should list what is included, such as state migration, module changes, pipeline rewrites, a small-change test, and handover documentation. Ask how unknowns are handled, including modules that fail on a newer provider version and what triggers a change order. Confirm whether the quote includes a test environment and a rollback plan. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so request that document and check each assumption in it against your inventory.

What does a Terraform to OpenTofu project need from our own staff?

It needs people who own the decisions and people who can act on the state and pipelines. At minimum, you need an executive owner who approves the scope, an infrastructure engineer who knows your backends and cloud accounts, and someone who maintains CI runners and secrets. Your staff must confirm which modules and providers are in use, review plans during cutover and approve state changes. Security and compliance staff should review state encryption settings and access to state. OpenTofu encrypts state and plan files at rest for local and remote backends, with key providers including AWS KMS, GCP KMS, OpenBao and Azure Vault, a feature introduced in v1.7. Your team must decide who holds the keys. These reviews are needed whether a partner or your team does the work. After handover, someone must own upgrades and version pinning, so name that role in the written scope.

Can our team run OpenTofu ourselves without a vendor?

Yes, if your team has the skills for the parts it will own. OpenTofu is licensed under the Mozilla Public License 2.0, runs as a CLI on your own runners, and its website describes it as a drop-in replacement for Terraform that preserves existing workflows and configurations. The project is under Linux Foundation stewardship and was accepted to the CNCF Sandbox on April 23, 2025. The ongoing work is operational: choosing a remote backend, setting state encryption, running CI with plan review, managing providers and modules, pinning versions and reading release notes. OpenTofu v1.13.1 was released on October 1, 2026, so pin the version your pipelines use and test each upgrade in a staging environment. Bring in a partner when migration or hardening exceeds your team's capacity or time.

Will OpenTofu stay compatible with future Terraform releases?

Compatibility is not guaranteed. The OpenTofu FAQ states an aim to keep feature parity with Terraform while the community decides which features OpenTofu adopts. The two tools already diverge in places: OpenTofu added early evaluation of variables and locals in v1.8, and provider for_each and the -exclude flag in v1.9. Terraform v1.16.6 was released on October 14, 2026, with v1.17.0 in release candidates, and OpenTofu v1.13.1 followed on October 1, 2026. The practical risk depends on the features you use. Track release notes for both tools, test each upgrade in a staging workspace, and confirm with the vendor before you depend on a feature that exists in only one of them.

How DeployOpen helps choose and implement without picking a side

DeployOpen is not an official partner or reseller of HashiCorp, IBM or the OpenTofu project, so the choice starts from your state storage, hosting limits and licensing position. We plan, implement and document the option you choose inside your own cloud accounts, data centers or air-gapped networks. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope states which of HCP Terraform, Terraform or OpenTofu is in play and why.
  • Scope lists the state backend, state encryption keys and the provider and module sources your code depends on.
  • Scope covers the license review, hosting model, runner layout and sign-off owners on your side.

How we build

  • For OpenTofu, we configure state and plan encryption for local and remote backends, with the key provider you approve.
  • For self-managed Terraform Enterprise, we check the runtime against Docker, Kubernetes, OpenShift, Nomad or Podman in your environment.
  • Each option is built and tested with a small change before any production workspace moves.

How we hand over

  • Handover includes a runbook covering state backup, upgrades, provider pinning and who can approve applies.
  • Moving from Terraform to OpenTofu follows backup, install, init and verify, then a small test change.
  • Documents record which OpenTofu features you rely on, since future Terraform compatibility is not guaranteed.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • A retainer can be scoped to upgrades of Terraform, OpenTofu and providers in your own workspaces.
  • Security testing of your IaC pipeline and runners can be scoped separately, as a fixed-scope engagement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.