GitHub Integration

Connect your GitHub repositories to manage Terraform with AI assistance

Connect your GitHub repositories to bring your existing infrastructure into Infra.new. Once connected, we'll automatically index your repository to provide:

  • Automated infrastructure analysis and cost estimation
  • AI-powered suggestions for improvements
  • Seamless export of changes back to your repository

Setup Instructions

Getting Started

Simply click the GitHub icon in the chat input and log in. If you can't find your repository in the dropdown list after logging in, click

Connect new repository
to grant access to additional repos.

What You Get

Once connected, the GitHub integration automatically provides:

Repository Access

Read your infrastructure code and export changes

Pull Requests

Seamless creation and management of pull requests

Working with GitHub

Repository Indexing

When you connect a repository, we immediately begin indexing its contents. This typically takes a few moments depending on the repository size. Once complete, you can start interacting with your infrastructure code.

Making Changes

You can ask for infrastructure changes through natural language. When you're ready to apply these changes back to your repository:

  1. Click the
    Export to GitHub
    button
  2. Review the changes in the generated pull request
  3. Merge the PR to apply the changes to your main branch

Best Practice: One Chat Per Change

For the best experience, create a new chat for each distinct change, similar to how you would use branches in Git. This keeps changes isolated and makes it easier to manage and review modifications.

Branch Management

Each chat is automatically assigned a unique branch. When you export changes multiple times from the same chat, the changes will be added to the same branch and pull request, allowing you to iterate on your infrastructure changes.