Infracost Pricing, Free Tier and Alternatives for Terraform Cost Estimates
What you get for free, what the paid plans add, what the CLI sends to Infracost's pricing API, and the other ways to put a cost estimate on an infrastructure pull request.
Published November 30, 2026 · HostingX Solutions LLC
Short answer
Is Infracost free? The CLI is open source under Apache 2.0, and the CI/CD plan is free for up to 1,000 runs a month, with pull request cost estimates on GitHub, GitLab and Azure DevOps. Setup gets you a free API key.
Paid plans: Cloud is $1,000 a month with 10 admin seats, adding FinOps policies, guardrails, dashboards and audit trails. Enterprise is priced through sales and adds SSO and SAML group mappings, SLAs and custom policies.
Data: Infracost parses your code locally and says no cloud credentials or secrets are sent to its Cloud Pricing API. It does send the resource data needed to look up prices, plus a count of resource types.
Alternatives: HCP Terraform has cost estimation built in for AWS, Azure and Google Cloud, usable in Sentinel policies. OpenInfraQuote is a free, fully local CLI, currently AWS-only. Spacelift runs Infracost for you and feeds its results to plan policies.
Pre-deployment estimates complement runtime cost tools; they don't replace them. Pair them with allocation for what's already running.
What Does Infracost Do?
Infracost describes itself as “cloud cost intelligence for engineers, AI coding agents, and CI/CD.” It reads infrastructure as code, works out which billable resources a change creates or modifies, and looks up their prices, so the cost of a change shows up before it's deployed. It supports Terraform, Terragrunt, CloudFormation and AWS CDK, on AWS, Azure and Google Cloud.
In CI, Infracost says “every PR gets an automatic comment showing the cost diff, FinOps policy violations, and tagging issues” introduced by the change, with guides for GitHub Actions, GitLab CI and Azure DevOps. Locally, the current CLI is a few commands:
brew install infracost
# Walks you through getting a free API key and configures your IDE,
# AI agent skills and CI/CD
infracost setup
# From the project root: cost breakdown, FinOps policy violations
# and tagging issues
infracost scanUsage-based resources, such as AWS Lambda invocations or S3 storage, can't be priced from code alone. Infracost estimates them from usage profiles you provide, so a Lambda function's estimate is only as good as the invocation count you give it.
Infracost Pricing and Plans
These are the plans on Infracost's pricing page on November 30, 2026. The page also lists a Starter plan at $250 a month for 10,000 runs, marked for deprecation on November 30, 2026, so we leave it out:
| Plan | Price | Limits | What it includes |
|---|---|---|---|
| CI/CD | Free | 1,000 runs a month | Cost estimates for Terraform, CloudFormation and CDK; GitHub, GitLab and Azure DevOps integrations; community support on Slack |
| Cloud | $1,000 a month | 10 admin seats; developer seats for an additional fee | Everything in CI/CD plus FinOps policies, custom price books, cost guardrails, Issue Explorer, autofix workflows, visibility dashboards, team management and audit trails |
| Enterprise | Contact sales | Custom | Everything in Cloud plus GitHub and GitLab Enterprise support, SKU-level price overrides, cross-business-unit reporting, custom policies, SSO and SAML group mappings, SLAs and onboarding |
The free plan's limit is in runs, not users, so the question is how many pull requests and pipeline runs touch infrastructure code each month. A team with a busy monorepo can pass 1,000 runs quickly; a team whose Terraform changes weekly won't come close. The jump to the paid tier is mainly about governance: policies that block or flag changes, dashboards across repositories, and audit trails for FinOps practitioners.
What Data Leaves Your Machine?
This is usually the first question from security reviewers. Infracost's docs say the CLI “parses the project locally to determine resource types and quantities,” and that “no cloud credentials or secrets are sent to the Cloud Pricing API.” Its FAQ adds that the CLI sends the data needed for price lookups, plus “the count of Terraform resource types” to help prioritize new resource support. If you use Infracost Cloud, cost estimates and policy issues are saved to its dashboard.
Infracost also states that it doesn't change your IaC state or cloud resources. If your policy forbids sending any infrastructure metadata to a third party, look at a fully local tool such as OpenInfraQuote instead.
Infracost Alternatives
| Tool | Reads | Clouds | How it runs | Price |
|---|---|---|---|---|
| Infracost | Terraform, Terragrunt, CloudFormation, AWS CDK | AWS, Azure, Google Cloud | CLI (Apache 2.0) plus hosted pricing API; free API key | Free CI/CD plan; paid Cloud and Enterprise |
| HCP Terraform cost estimation | Terraform runs in HCP Terraform | AWS, Azure, Google Cloud | Built into HCP Terraform; off by default | Part of HCP Terraform |
| OpenInfraQuote | Terraform plan and state JSON | AWS only today; Google Cloud and Azure planned | Local CLI (MPL-2.0) plus a downloaded price sheet; no API key | Free |
| Spacelift with Infracost | Stacks run in Spacelift | As Infracost | Spacelift runs Infracost with your API key | Spacelift plan plus Infracost |
HCP Terraform cost estimation
If your runs already go through HCP Terraform, its built-in cost estimation is the shortest path. It “provides cost estimates for many resources found in your Terraform configuration,” showing hourly and monthly costs and the monthly change, for resources from AWS, Google Cloud and Azure. It's disabled by default: an organization admin turns it on under Settings → Cost Estimation with “Enable cost estimation for all workspaces.”
Sentinel policies can read the estimates through the tfrun import, so you can fail a run whose monthly increase is over a threshold. Two caveats from HashiCorp's docs: cost data in policies is available only in policy checks under the legacy policy execution mode, supporting Sentinel up to 0.40.x, and some resources have no cost information or usage-based pricing that can't be predicted.
OpenInfraQuote
OpenInfraQuote, from Terrateam, is an open-source CLI under the MPL-2.0 license that estimates costs from Terraform plan and state files. It works in two steps: oiq match pairs your plan or state JSON with a pricing sheet, and oiq price produces the estimate, optionally for one region. It runs locally with no backend, API keys or external services; the only network access is downloading the pricing sheet, which is refreshed daily. The trade-off is coverage: it supports AWS only for now, with Google Cloud and Azure planned. It reads a JSON plan, which you produce with standard Terraform commands:
terraform plan -out=tfplan
terraform show -json tfplan > tfplan.json
# then: oiq match (with the pricing sheet), followed by oiq priceSpacelift with Infracost
Spacelift doesn't replace Infracost; it runs it for you. Add the infracost label to a stack and set an INFRACOST_API_KEY environment variable, and Spacelift runs the breakdown during planning and applying, “automatically posts the usage summary to your pull requests,” and shows per-resource costs in its resources view. The useful part is policy: Spacelift passes the full Infracost breakdown as JSON into plan policies, so you can deny or warn on changes above a monthly cost threshold.
Runtime cost tools are a different job
Kubecost, OpenCost and cloud billing tools measure what's already running; Infracost and its alternatives estimate what a change will cost before it ships. Most teams need both: estimates catch expensive changes in review, and allocation catches drift, idle capacity and usage that code can't predict. For the runtime side, see Kubecost alternatives and pricing; for all three categories compared, see Infracost vs Kubecost vs Cloudability.
How to Choose
You want cost comments on pull requests and run fewer than 1,000 times a month: Infracost's free CI/CD plan.
Your Terraform runs in HCP Terraform and you write Sentinel policies: turn on HCP Terraform cost estimation first, and check that its policy mode fits your setup.
Nothing may leave your network, and you're on AWS: OpenInfraQuote.
You run stacks in Spacelift: use its Infracost integration so cost data reaches your plan policies.
FinOps needs guardrails, tagging policy and dashboards across many repositories: compare Infracost Cloud with building those policies yourself in your CI or TACOS platform.
Estimates work best alongside tagging and allocation rules; see our Terraform FinOps cost optimization guide and cost allocation, showback and chargeback.
Frequently Asked Questions
Is Infracost free?
Yes, for most small teams. The CLI is open source under Apache 2.0, and the CI/CD plan is free for up to 1,000 runs a month, including pull request cost estimates on GitHub, GitLab and Azure DevOps. The Cloud plan, at $1,000 a month, and Enterprise add policies, dashboards and enterprise features.
Does Infracost need an API key?
The setup command walks you through getting a free API key, which the CLI uses to look up prices. Spacelift's integration also requires one, set as INFRACOST_API_KEY.
Does Infracost send my Terraform code or secrets?
Infracost says the CLI parses your project locally and that no cloud credentials or secrets are sent to its Cloud Pricing API. It sends the data needed to look up prices and a count of resource types. With Infracost Cloud, estimates and policy issues are stored in its dashboard.
Does Infracost support OpenTofu?
Infracost's repository lists Terraform, Terragrunt, CloudFormation and AWS CDK, and doesn't mention OpenTofu. Test it on your own configuration before relying on it.
What is the best free alternative to Infracost?
For AWS, OpenInfraQuote: open source, fully local and free. If you already use HCP Terraform, its built-in cost estimation covers AWS, Azure and Google Cloud without another tool.
Adding cost checks to infrastructure reviews?
We help US businesses put cost estimates and FinOps guardrails into Terraform pull requests, with tagging and allocation rules that hold up after deployment. The first 30-minute consultation is free.
Sources
Related Articles
Infracost vs Kubecost vs Cloudability
Pre-deployment, Kubernetes and multi-cloud cost tools compared.
Kubecost Alternatives and Pricing
OpenCost, native EKS, GKE and AKS allocation, and SaaS tools.
Terraform FinOps Cost Optimization
Tagging, policies and cost controls in Terraform.
Cloud Migration Cost Estimation
Estimating costs before a move, not just a change.
See also: FinOps services · Terraform infrastructure as code guide · Best cloud cost management tools
Services
Subscribe to our newsletter
Get monthly email updates about improvements.
© 2026 HostingX Solutions LLC. All Rights Reserved.
LLC No. 0008072296 | Est. 2026 | New Mexico, USA
Terms of Service
Privacy Policy
Acceptable Use Policy