Infracost surfaces cloud cost estimates and FinOps guidance for Terraform, Terragrunt, CloudFormation, and AWS CDK before changes deploy. It reaches engineers via terminal, IDE, CI, and AI coding agents.
Overview
Infracost is cloud cost intelligence aimed at engineers, AI coding agents, and CI/CD pipelines. It estimates what infrastructure changes will cost and applies FinOps practices while you still work in infrastructure code, rather than after resources are live.
The toolkit centers on a CLI that scans Terraform, Terragrunt, CloudFormation, or AWS CDK projects and returns breakdowns plus recommendations. The same pricing engine and policies feed IDE extensions with inline cost hints, agent skills for Claude Code and Cursor, and integrations that post cost diffs on pull requests.
Agent skills cover generating compliant IaC, scanning projects for cost and policy issues, and ad hoc price lookups without existing code. IDE support uses a language server so editors that speak LSP can show lenses, hovers, and diagnostics on related file types.
Infracost Cloud is a hosted dashboard where teams define tagging policies and guardrails once and enforce them across CLI, editors, skills, and CI, with visibility into spending shifts per project and pull request. Cost coverage spans AWS, Azure, and Google Cloud across a large catalog of resource types, including usage-based services such as S3 and Lambda.
Key features
- CLI cost breakdown for major IaC formats
- FinOps policy checks shared across entry points
- IDE inline cost hints via language server
- Pull request cost diffs in CI/CD
- AI agent skills for scan and price lookup
- Multi-cloud resource pricing coverage
- Interactive setup for auth and integrations
- Hosted dashboard for team governance
Use cases
- Estimating monthly cost before merging IaC
- Enforcing tagging and budget policies in CI
- Teaching agents about cloud spend while coding
- Comparing cost impact of pull request changes
- FinOps visibility for platform and finance teams