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/

iac-code demo

Installation

IaC Code requires Python 3.10 or later. It supports macOS, Linux, and Windows.

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.

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

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.

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.11.1.tar.gz (4.8 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.11.1-py3-none-any.whl (5.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iac_code-0.11.1.tar.gz
  • Upload date:
  • Size: 4.8 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.11.1.tar.gz
Algorithm Hash digest
SHA256 6c5958c8df5f09ec70bc2a20b6b25bbbfe4fca3726079d603b3a1f832df011b1
MD5 c0a0d10062b9af3498b600bd744913d9
BLAKE2b-256 f831acc5380cc55242ab46bfc1bb1ccf575a63810e7f665eca369451cf9cf45a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iac_code-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7444f9b41a71088a463e2feae563166f8d7c33d9b76fe40c0c3f124a9512e1f3
MD5 fd190adb2a08e033de690f537eba91c1
BLAKE2b-256 895648f03b7312c108c0b428678cc67527b3d9d74d61a0e443836f228a126cff

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