BASE

OpenTofu

OpenTofu

Developer CLI · Free

An infrastructure-as-code engine: it defines resources declaratively, shows a change plan, and performs reproducible environment management.

Also known as: opentofu/opentofu; opentofu

Resource illustration: OpenTofu

Open resource ↗

What you can use for free

Code and local use under MPL-2.0.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MPL-2.0. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Manage application infrastructure through declarative code
  • Inspect the change plan and align it with the expected infrastructure state

Example workflow

A possible workflow; this is not a report of hands-on testing.

Manage application infrastructure through declarative code.

Before you start

  • Project files or environment.
  • A shell and supported platform.

Steps

  1. Define required resources and the selected provider's configuration.
  2. Inspect the change plan and align it with the expected infrastructure state.
  3. Save the working command or script and the result criteria.

Check your result

  • The command correctly handles paths, Unicode, and invalid inputs.
  • Repeat runs behave predictably; credentials do not appear in the output.

Choosing OpenTofu

Manage application infrastructure through declarative code

Choose this when

  • Manage application infrastructure through declarative code
  • Inspect the change plan and align it with the expected infrastructure state

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MPL-2.0 for the code, with file-level copyleft.
  • The README calls nightly builds experimental and unsuitable for production.

Frequently asked questions

What can you use for free in OpenTofu?

Code and local use under MPL-2.0.

What additional costs might arise with OpenTofu?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for OpenTofu?

MPL-2.0 for the code, with file-level copyleft.

How do you get started with OpenTofu?

Define required resources and the selected provider's configuration. Inspect the change plan and align it with the expected infrastructure state. Save the working command or script and the result criteria.

What does OpenTofu show before infrastructure changes are applied?

The plan step creates an execution plan showing changes that apply will perform. Infrastructure is stored in configuration suitable for versioning and reuse. The resource graph accounts for dependencies and allows independent resources to be created or modified in parallel.

License

MPL-2.0 for the code, with file-level copyleft.

MPL 2.0 — file-level copyleft

You can use the code in a commercial product and combine it with closed-source files. When distributing it, make the source code of MPL-covered files available, including your changes to those files, and retain notices. Independent new files can remain closed-source. Internal use alone does not require publishing the code.

License terms

Technologies and topics

  • OpenTofu
  • CLI
  • Development

Sources

Other resources