Skip to main content

iac-code

AI-powered Infrastructure as Code assistant for cloud infrastructure through natural language interaction. Currently supports Alibaba Cloud ROS and Terraform workflows.

Test PyPI Package Python

Language: English | 中文 | Español | Français | Deutsch | 日本語 | Português

Documentation: https://aliyun.github.io/iac-code/

Download IaC Code Desktop
macOS Apple Silicon · Windows x64 · Linux AppImage · Linux deb · All release files

Desktop App

No Python, pip, or terminal setup required — download the native app and start building cloud infrastructure right away. Get the package for your platform from the latest GitHub Release:

  • macOS Apple Silicon: .dmg
  • Windows x64: setup .exe
  • Linux x64: .AppImage or .deb

The Desktop app runs the same IaC Code engine and uses the same providers, cloud credentials, settings, projects, and sessions as the CLI and Web app. On first launch, select the project directory you want IaC Code to work in. Windows also checks for Git Bash and guides you through installation if it is missing.

IaC Code Desktop app

macOS, Windows, and AppImage builds can check for and apply cryptographically signed updates in the app. The deb package is updated by installing a newer package. Stable macOS packages are signed with Apple Developer ID and notarized by Apple; stable Windows packages carry an Authenticode publisher signature. Always download from the official release page and verify the accompanying SHA256SUMS. See the Desktop App guide for installation and troubleshooting details.

Installation

The CLI and Web app below run on Python 3.10 or later, on macOS, Linux, and Windows. If you only use the Desktop app, you can skip this section.

Windows note: On Windows, Git for Windows must be installed to provide the bash shell used by the tool execution environment. If Git Bash is installed but not on PATH, set the IAC_CODE_GIT_BASH_PATH environment variable. If it is not installed yet, run iac-code install-git-bash to install Git for Windows automatically (downloaded via the npmmirror mirror).

pip install iac-code

Usage

On first use, configure the LLM provider and IaC cloud service by entering /auth in interactive mode.

Interactive Mode

Run directly to enter the interactive REPL:

iac-code

iac-code demo

Non-Interactive Mode

Pass a one-shot prompt via --prompt:

iac-code --prompt "Create a VPC and two ECS instances"

Reading from stdin is also supported:

echo "Create an OSS Bucket" | iac-code --prompt -

Web App

Prefer a graphical interface? Launch the local web app, which runs the same engine as the CLI and shares the same sessions. The web app needs the http extra, so install it first:

pip install 'iac-code[http]'
iac-code web

By default it opens http://127.0.0.1:8766 in your browser (loopback only). See the Web App guide for details.

IaC Code Web app

Contributing

Install uv, then:

make install   # install dependencies and pre-commit hooks
make dev       # run in debug mode
make test      # run tests
make lint      # run linters
make format    # format code

See the Contributing Guide for details.

Contact Us

DingTalk Discord
DingTalk Discord

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iac_code-0.13.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iac_code-0.13.0-py3-none-any.whl (5.3 MB view details)

Uploaded Python 3

File details

Details for the file iac_code-0.13.0.tar.gz.

File metadata

  • Download URL: iac_code-0.13.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for iac_code-0.13.0.tar.gz
Algorithm Hash digest
SHA256 2d2df2663c65721c2392483dc1f1e531d62eb64fb8d08d51dbfb344c1eff6ab0
MD5 582640950491b2439ad24cc2a030146b
BLAKE2b-256 1d620ffceff2eb36a6652a7151633c8278db86d8011286c9ae293b74e4f5e5c3

See more details on using hashes here.

File details

Details for the file iac_code-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: iac_code-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for iac_code-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd707c4d96be295650a67c0e55a72dfc64b41a0226a8b68df6b01954c15b394c
MD5 03acb3bb575f0bf8ada3560bbb971874
BLAKE2b-256 9cca5bf5abb605c60493ddf0dee668e7540bd6f2d4e3b53c0f701f0fa9189581

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page