AI-Powered Infrastructure Lifecycle CLI for DevSecOps, Platform Engineering, and IaC governance.

ThothCTL accelerates the adoption of Internal Developer Platforms by combining natural-language IaC generation, security scanning, inventory management, cost analysis, AI-driven code review, and organizational policy enforcement into a single CLI.
pip install --upgrade thothctl
# Generate governed IaC from natural language (dry-run by default)
thothctl generate iac -i "VPC with 3 private subnets, NAT gateway, and flow logs"
# Scan for security issues
thothctl scan iac -t checkov -t trivy -t opa
# Create infrastructure inventory (SBOM)
thothctl inventory iac --check-versions
# Launch web dashboard
thothctl dashboard launch
# AI-powered security review
thothctl ai-review analyze -d ./terraform -p ollama
Generate governed Infrastructure as Code from natural language. Organizational conventions (.thothcf.toml, steering docs, existing patterns) are injected into the AI context, and output is validated by Checkov + OPA with self-correction:
# Single stack (dry-run shows code without writing)
thothctl generate iac -i "S3 bucket with versioning and encryption"
# Multi-stack composition, written to disk
thothctl generate iac -i "EKS cluster with VPC, RDS PostgreSQL, and S3 for artifacts" \
--composition full --apply
# Tool-augmented generation with Kiro CLI (reads docs, validates, self-corrects)
thothctl generate iac -i "RDS Aurora cluster with read replicas and failover" -p kiro
--mode blueprint for IDP/Backstage templates, --mode project for ready-to-deploy outputsingle, full (multi-stack), or incremental (add to existing project).thothcf.toml rules and OPA policies evaluated inside the loopterragrunt plan validation with self-correction (--plan-validation)terraform, terraform-terragrunt, terragrunt, cloudformation, cdkv2Multi-tool scanning with unified HTML reports and enforcement:
# All scanners with hard enforcement (fails pipeline on violations)
thothctl scan iac -t checkov -t trivy -t kics -t opa -t terraform-compliance --enforcement hard
# Publish findings to a vulnerability management platform
thothctl scan iac -t checkov -t trivy --publish-to defectdojo
THOTH_ORG_POLICY env var (HCL + CloudFormation)CycloneDX 1.6 compliant Software Bill of Materials:
thothctl inventory iac --check-versions
# Publish the SBOM to a supply-chain platform
thothctl inventory iac --check-versions --publish-sbom dependency-track
Orchestrated SDLC pipeline plus custom YAML DAG workflows:
# Built-in 7-phase pipeline (Plan β Develop β Build β Test β Secure β Deploy β Monitor)
thothctl workflow devsecops --phase all --enforcement hard
# Composite phase, only changed directories
thothctl workflow devsecops --phase pre-deploy --changed-only
# Custom composable pipeline (declarative YAML DAG)
thothctl workflow run --file .thothcf_workflow.yaml
all and pre-deploy shortcutsdepends_on, topological ordering, variable interpolation (,, ,), and per-stage failure handling (block/warn/skip)soft (warn) or hard (block on violations)--changed-only scoping and dry-run plan visualizationModern FastAPI-based dashboard with dark mode:
thothctl dashboard launch
Multi-agent system for automated code review and PR decisions:
thothctl ai-review analyze -d ./terraform -p ollama
thothctl ai-review decide -d ./terraform --pr-number 42 --dry-run
thothctl check iac -type cost-analysis --recursive
thothctl check iac -type blast-radius --recursive
thothctl check iac -type drift --recursive
thothctl project convert --make-template --template-project-type terraform
thothctl init project -p my-infra --project-type terraform
Model Context Protocol (v2.0+) server exposing ThothCTL as tools for AI assistants:
thothctl mcp
generate iac, scan iac, inventory iac, and workflow commands| Command | Description |
|---|---|
generate iac |
Generate governed IaC from natural language intent |
generate stacks |
Generate infrastructure stacks from configuration |
scan iac |
Multi-tool security scanning with enforcement and platform publishing |
inventory iac |
Infrastructure SBOM with version tracking and SBOM publishing |
check iac |
Cost analysis, blast radius, drift detection, structure validation |
workflow devsecops |
Orchestrated 7-phase DevSecOps SDLC pipeline |
workflow run |
Execute a custom YAML DAG workflow |
ai-review |
AI-powered security analysis and PR decisions |
dashboard launch |
Web dashboard for all reports |
document iac |
Auto-generate documentation |
project convert |
Template β project conversion |
init project |
Scaffold new IaC projects |
space |
Manage spaces (activate, update, configure conventions) |
quickstart |
Guided onboarding for new projects |
mcp |
Model Context Protocol server (v2.0+) |
pip install --upgrade thothctl
| Requirements: Python 3.10+ | Linux, macOS, or Windows (WSL) |
Optional system packages:
# Linux/Debian
sudo apt install graphviz libgraph-easy-perl -y
# macOS
brew install graphviz graph-easy
A ready-to-use Dev Container is available with all tools pre-configured:
# Open in VS Code β "Reopen in Container"
# Or use the devcontainer CLI:
devcontainer up --workspace-folder .
π Full docs: thothctl.readthedocs.io
# GitHub Actions
- name: Security scan
run: thothctl scan iac -t checkov -t trivy -t opa --enforcement hard --post-to-pr
- name: Inventory check
run: thothctl inventory iac --check-versions --report-type json
Shipped:
In progress / planned:
π The active planning document is the 2026 Roadmap (thothctl_roadmap_2026.md in the ThothForge root). The FdI roadmap is preserved for historical context only.
Contributions welcome! See CONTRIBUTING.md for guidelines.