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:
- Claude Code
- GitHub Copilot
- OpenAI Codex
- Cursor
- Gemini CLI
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.
Copilot CLI
Run the following two commands to add the Infracost marketplace and install the plugin:
copilot plugin marketplace add infracost/agent-skills
copilot plugin install infracost@infracost
VS Code
- Open the Command Palette (
⌘⇧Pon macOS,Ctrl+Shift+Pon Windows/Linux). - Run Chat: Install Plugin From Source.
- Enter
https://github.com/infracost/agent-skillsas the repo. - Quit and re-open VS 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.
Type the following in a Codex prompt:
$skill-installer infracost/agent-skills
Codex expects a single skill by default. Because infracost/agent-skills defines multiple skills, Codex may respond saying this isn't a single skill. If that happens, tell it to install all the skills in the repo and it will resolve the rest automatically.
- Open Cursor Settings → Rules.
- In the Rules section, click +New button.
- Select Add from GitHub/GitLab.
- Enter
https://github.com/infracost/agent-skills.gitas the repository URL.
Installation instructions coming soon.
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:
- VS Code
- Cursor
- Windsurf
- JetBrains
- Antigravity
- VSCodium
- Eclipse Theia
- Neovim
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.
Open the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X), search for Infracost, and click Install.
Open the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X), search for Infracost, and click Install.
The Infracost plugin for JetBrains is available for IntelliJ IDEA, GoLand, WebStorm, PyCharm, PhpStorm, Rider, and any other IDE on the IntelliJ platform.
- Open your JetBrains IDE and go to Settings / Preferences > Plugins.
- Select the Marketplace tab and search for Infracost.
- Click Install and restart the IDE when prompted.
Note: If your IDE cannot reach the internet, download the plugin
.zipfrom the JetBrains Plugin Marketplace and install it via Settings / Preferences > Plugins > ⚙️ > Install Plugin from Disk…
Open the Extensions panel, search for Infracost, and click Install.
Open the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X), search for Infracost, and click Install. VSCodium uses the Open VSX Registry, where the Infracost extension is published.
Open the Extensions view via View > Extensions, search for Infracost, and click Install. Theia sources extensions from the Open VSX Registry.
Note: The available extension API version varies by Theia release. The Open VSX Registry surfaces the most compatible version automatically. If you need to install manually, use Extensions: Install from VSIX… in the command palette.
Add the Infracost plugin to your Neovim config by following the instructions from the GitHub repository.
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.
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.
