Metadata-Version: 2.1
Name: iac-code
Version: 0.1.0
Summary: Your AI-powered Infrastructure as Code assistant
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: agent-client-protocol (>=0.9.0)
Requires-Dist: alibabacloud-credentials (>=0.3.0)
Requires-Dist: alibabacloud-ros20190910 (>=3.0.0)
Requires-Dist: anthropic (>=0.40)
Requires-Dist: httpx (>=0.27.0)
Requires-Dist: jsonschema (>=4.20)
Requires-Dist: loguru (>=0.7.0)
Requires-Dist: openai (>=1.50)
Requires-Dist: opentelemetry-distro (>=0.48b0)
Requires-Dist: opentelemetry-exporter-otlp (>=1.27.0)
Requires-Dist: pydantic (>=2.0)
Requires-Dist: pyperclip (>=1.8.0)
Requires-Dist: pyyaml (>=6.0)
Requires-Dist: rich (>=13.0)
Requires-Dist: tiktoken (>=0.7.0)
Requires-Dist: typer (>=0.9.0)
Provides-Extra: http
Requires-Dist: starlette (>=0.39.0) ; extra == 'http'
Requires-Dist: uvicorn[standard] (>=0.30.0) ; extra == 'http'

# iac-code

**Language**: English | [中文](readme/README.zh.md) | [Español](readme/README.es.md) | [Français](readme/README.fr.md) | [Deutsch](readme/README.de.md) | [日本語](readme/README.ja.md) | [Português](readme/README.pt.md)

AI-powered Infrastructure as Code (IaC) assistant that generates and manages Alibaba Cloud resource orchestration templates (ROS / Terraform) through natural language interaction.

## Installation

```bash
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:

```bash
iac-code
```

### Non-Interactive Mode

Pass a one-shot prompt via `--prompt`:

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

Reading from stdin is also supported:

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