---
title: "Estimate Terraform and OpenTofu cost deltas before infrastructure changes merge with Infracost"
description: "Show projected cloud cost increases or savings from Terraform and OpenTofu plans before a PR merges."
verification: "listed"
source: "https://github.com/infracost/infracost"
author: "Infracost"
publisher_type: "organization"
category:
  - "CI/CD Integrations"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "infracost/infracost"
  github_stars: 12267
---

# Estimate Terraform and OpenTofu cost deltas before infrastructure changes merge with Infracost

Show projected cloud cost increases or savings from Terraform and OpenTofu plans before a PR merges.

## Prerequisites

Infracost CLI, Terraform or OpenTofu plan output

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install the Infracost CLI from the official docs, then authenticate or configure pricing inputs before running cost breakdown or diff commands against Terraform or OpenTofu plans.
```

## Documentation

- https://www.infracost.io/docs/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/estimate-terraform-and-opentofu-cost-deltas-before-infrastructure-changes-merge-with-infracost/)
