Cloud cost intelligence for engineers, AI coding agents, and CI/CD.
Infracost shows cloud cost estimates and FinOps best practices for Terraform, Terragrunt, CloudFormation, and AWS CDK β before changes are deployed. See costs in your terminal, your editor, your AI coding agent, or right in pull requests.
Infracost meets engineers wherever they work with infrastructure code β the terminal, their editor, their AI coding agent, and their CI pipeline. Every entry point talks to the same engine, the same pricing data, and the same FinOps policies, so a check you set up once shows up everywhere.
1. Install the CLI
macOS (Homebrew):
brew install infracostLinux:
curl -fsSL https://raw.githubusercontent.com/infracost/cli/master/scripts/install.sh | shWindows (Chocolatey):
choco install infracostOr download the latest release directly from GitHub Releases.
2. Run setup
infracost setupThe interactive setup walks you through authenticating, connecting your editor, configuring AI agent skills, and wiring up CI/CD. It's the fastest way to get every part of the Infracost toolkit working for your team.
Pick the entry points your team needs:
infracost/cli is the core of everything. Point it at a Terraform, Terragrunt, CloudFormation, or AWS CDK project to get a full cost breakdown and FinOps recommendations. The interactive setup wires up your editor, AI agent, and CI in one go.
Follow the quick start to install and authenticate, then:
infracost scanFor a deeper dive into a specific scan β full resource-level breakdowns, cost drivers, and policy details β use the infracost inspect commands.
infracost/agent-skills plugs Infracost into Claude Code, Cursor, and other AI coding agents so they reason about cloud costs and your FinOps policies as they generate infrastructure code. Three skills ship today:
iac-generationβ keeps generated IaC compliant with your tagging, region, and budget policiesscanβ analyzes an existing project for cost and policy violationsprice-lookupβ answers "how much is anm7i.xlargeinus-east-1?" with no existing code needed
See cost lenses, inline hints, hover breakdowns, and FinOps diagnostics as you edit .tf, .hcl, CloudFormation, and AWS CDK files.
| Editor | Repo |
|---|---|
| VS Code, Cursor, Windsurf | infracost/vscode-infracost |
| JetBrains (IntelliJ, GoLand, PyCharm, WebStorm, Riderβ¦) | infracost/jetbrains-infracost |
| Neovim | infracost/infracost.nvim |
| Zed | infracost/zed-infracost |
All of them are powered by the Infracost Language Server β a standard LSP server, so any editor that speaks LSP can integrate with Infracost.
Post cost diffs and policy checks directly on pull requests as part of your existing workflow, use the CI/CD integrations to set this up.
Infracost Cloud is the SaaS dashboard that ties everything together. Team leads, managers, and FinOps practitioners can define tagging policies and guardrails once, and have them enforced consistently across the CLI, the editor extensions, the agent skills, and CI β plus get visibility into how spending is shifting across every project and PR.
Infracost supports over 1,100 resources across AWS, Azure, and Google Cloud, and can estimate usage-based resources such as S3 and Lambda.
This repository is the front door to the Infracost project and the best place to follow it β star and watch to stay in the loop on releases across the whole ecosystem.
As part of the Infracost 2.0 release, the codebase has been refactored into the focused repositories linked above; some pieces may consolidate back here over time. Issues and discussions for the project as a whole still live here unless a repo-specific tracker is a better fit.
Join our community Slack channel to learn more about cost estimation, Infracost, and to connect with other users and contributors.
If you run into any issues or have feedback, please open a thread in GitHub Discussions.
Thanks to everyone who has contributed β bug reports, code, feedback, and ideas all welcome.