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

ThothCTL accelerates the adoption of Internal Developer Platforms by combining security scanning, inventory management, cost analysis, AI-driven code review, and organizational policy enforcement into a single CLI.
pip install --upgrade thothctl
# 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
Multi-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
THOTH_ORG_POLICY env var (HCL + CloudFormation)CycloneDX 1.6 compliant Software Bill of Materials:
thothctl inventory iac --check-versions
Modern 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
| Command | Description |
|---|---|
scan iac |
Multi-tool security scanning with enforcement |
inventory iac |
Infrastructure SBOM with version tracking |
check iac |
Cost analysis, blast radius, drift detection, structure validation |
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 |
mcp |
Model Context Protocol server |
generate |
Generate IaC from rules and components |
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: thothforge.github.io/thothctl
# 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
📖 Full Roadmap
Contributions welcome! See CONTRIBUTING.md for guidelines.