Skip to main content

Get started

Infracost shifts cloud costs left—into your engineering workflow. Get cost estimates for Terraform, CloudFormation, and AWS CDK before deployment, catch FinOps issues aligned with Well-Architected Frameworks, and auto-fix problems with a single merge. Supports AWS, Azure, and Google Cloud.

This space moves fast! If you run into any issues, join our community Slack and we'll help you quickly 😄


1. Use AI Agent Skills

Give your AI coding agent real-time access to cloud pricing and your organization's FinOps policies. Instead of generating infrastructure that needs a separate review cycle, an agent equipped with Infracost skills can scan existing IaC for cost and tagging violations, optimize resources to fit a budget, and generate compliant infrastructure on the first attempt.

Choose your AI agent to see installation instructions:

Ensure you have the Claude Code CLI installed. Then from your terminal, run the following two commands to add the Infracost marketplace and install the plugin:

claude plugin marketplace add infracost/agent-skills
claude plugin install infracost@infracost

Then quit and restart Claude Code for the changes to take effect.

On your next IaC task, the skill will prompt you to install any required dependencies (including the Infracost CLI) and authenticate with your Infracost account if needed. Your API key is configured automatically during that flow.

Once installed, skills are available as /infracost:<skill> slash commands, and are also invoked automatically when you ask relevant questions about your infrastructure.

Once installed, use natural prompts to get cost estimates, fix tagging violations, and generate compliant IaC:

Give me a full cost breakdown of this project and highlight the most expensive resources.
Scan this project and fix all tagging violations.
Create a 3-tier web app on AWS using ECS and Postgres that costs less than $400/month and is compliant with all of my organization's FinOps policies.

See the AI Agent Skills page for the full list of available skills and detailed usage examples.


2. Use an IDE Extension

See inline cloud cost estimates, FinOps policy violations, and tagging issues directly in your editor as you write Terraform or CloudFormation — before anything reaches a pull request.

Choose your editor to see installation instructions:

Requires VS Code v1.75.0 or above.

Open VS Code and go to the Extensions view (Ctrl+Shift+X / Cmd+Shift+X). Search for Infracost, select the extension published by Infracost, and click Install.

Alternatively, use the Quick Open command:

ext install Infracost.infracost

The extension is also listed in the Visual Studio Marketplace.

Once installed, log in to Infracost from the extension sidebar. The language server will start scanning your workspace, and cost estimates will appear as code lenses above each resource block. Click any code lens to see the full cost breakdown, policy violations, and tagging issues for that resource.

Inline code lens cost estimates in VS Code

See the IDE Extensions page for login instructions, editor commands, and more details.


3. Add to your CI/CD

Use our integrations to add Infracost to pull requests, it only takes 15 minutes! This provides your team with a safety net as people can understand cloud costs and FinOps best practices upfront, and discuss them as part of your workflow. See our demo video to learn more.

Infracost pull request comment