Infracost is a cloud cost estimation tool for Infrastructure as Code. It parses Terraform, CloudFormation, and CDK plan output and generates a cost breakdown showing monthly spend delta before any change is applied. Cost estimates appear as PR comments in GitHub, GitLab, or Bitbucket.
The Infracost MCP server and CLI expose a live pricing API covering 10M+ cloud prices to AI coding agents (Claude Code, GitHub Copilot, Cursor). When an agent uses this pricing context, it can select appropriately sized resources on the first attempt rather than generating plans that fail cost review.
Self-hosted CLI is open-source (Apache 2.0). Cloud tier adds team features, policy enforcement, and the agent pricing API. Enterprise adds SSO and custom policies.