Skip to main content

terragenai

A generative AI CLI tool that builds terraform configurations using a Terraform Enterprise or Cloud organization's private registry modules.

Common Flags

terragenai --help
terragenai --version
terragenai --configure
terragenai --sync

--configure saves settings to your OS-specific user config directory. It prompts for Terraform-related settings (TF_ORG, TF_REGISTRY_DOMAIN, TF_API_TOKEN, GIT_CLONE_TOKEN).

--sync fetches all modules from your Terraform Cloud/Enterprise private registry, clones each repo, parses Terraform variables, and builds a local module catalog used for AI-powered code generation. Run this before starting a chat session, and re-run it whenever your registry modules change.

Overrides:

  • TERRAGENAI_HOME to place both files in a single custom directory.
  • TERRAGENAI_CONFIG_FILE to set an exact config file path.
  • TERRAGENAI_HISTORY_FILE to set an exact history file path.

Usage

% pip install terragenai
% terragenai --sync
Fetching Terraform modules for org: my-org
Found 12 module(s)
Processing my-org/vpc/aws
  Indexed v1.0.0
  Indexed v1.1.0
Processing my-org/ec2-module/aws
  Indexed v2.0.0
...

Done. 12 repo(s) indexed.
Catalog written to ~/.terragenai/catalog/modules.json

% terragenai
TerragenAI Chat started. Type 'exit' to quit.

You: create 2 ec2 instances in us-west-2
Thinking...

Assistant: 

  module "ec2" {
    source         = "app.terraform.io/my-org/ec2-module/aws"
    ami            = "ami-0123456789abcdef0" 
    instance_type  = "t3.micro"
    key_name       = "my-ssh-key"
    region         = "us-west-2"
    instance_count = 2
  }

You: exit
% 

Metadata

Release files for terragenai 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terragenai 0.0.12
File Size Uploaded Provenance Actions
terragenai-0.0.12.tar.gz 23.6 kB With provenance Details for terragenai-0.0.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for terragenai 0.0.12
File Interpreter ABI Platform Actions
terragenai-0.0.12-py3-none-any.whl Python 3 none any Details for terragenai-0.0.12-py3-none-any.whl

Total release size: 37.5 kB

Release files / terragenai-0.0.12.tar.gz

Download URL terragenai-0.0.12.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0aee543d109c01e6efe8dc2c298cc343f0127540b55d57a1a77e8c5003fdb466
BLAKE2b-256 checksum
How to use checksums
9acb0302dfea7f57c42b4ab8e389aad682fe64c61b3354630f56a80da179af48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.

Transparency log

Release files / terragenai-0.0.12-py3-none-any.whl

Download URL terragenai-0.0.12-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a9089664c1a259a7b147d450d9e951f12bc7bd278dc85db89e3370e348faf89
BLAKE2b-256 checksum
How to use checksums
a6d964360f0216de9741d24143aacd2e84560e3a58558f51224bf528671d3339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.

Transparency log

Security for terragenai 0.0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for terragenai-0.0.12.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page