TerraLens is a fully interactive TUI dashboard for Terraform — browse state, plan, apply, detect drift, estimate costs, scaffold new resources with AI, and fix errors without leaving your CLI.
All the power of the Terraform CLI wrapped in a keyboard-driven terminal interface.
terraform plan output line-by-line into the terminal panel as it runs.terraform apply -auto-approve and automatically reloads the resource tree on success.terraform plan -refresh-only and reports exactly which resources changed.Three AI-powered features built directly into the TUI. No context-switching, no copy-pasting into ChatGPT.
terraform plan or apply fails, TerraLens captures the raw terminal logs automatically. Click Explain Error and an AI explains exactly what broke and shows you the HCL fix in a dedicated markdown panel.Pick whichever method works best for your setup.
# Install globally with pipx (recommended on Arch / modern Linux) pipx install TerraLens # Or with pip in a virtual environment python -m venv .venv source .venv/bin/activate pip install TerraLens # Run from your Terraform project directory cd ~/my-terraform-project terralens
python installer.py once after installing to configure Infracost for cost estimation.
# Linux — download and run curl -L https://github.com/bhuvan-raj/TerraLens/releases/download/v0.2.0/insight-tf-linux -o terralens chmod +x terralens mv terralens ~/my-terraform-project cd ~/my-terraform-project ./terralens # Windows — download from Releases page, then: .\insight-tf-windows.exe
# Clone the repository git clone https://github.com/bhuvan-raj/TerraLens.git cd TerraLens # Create a virtual environment python3 -m venv .venv source .venv/bin/activate # Install dependencies pip install -r requirements.txt # Run the app cd src/insight_tf python cli.py
Pre-built binaries for Linux and Windows. No Python installation required.
TerraLens is designed for keyboard-driven workflows.
| 1 | Switch to Overview tab |
| 2 | Switch to Manage tab |
| r | Reload state from disk |
| q | Quit the application |
| Esc | Close any open modal or wizard |
Every release, documented. Click a version to expand the full notes.