Overview
IaC Code provides four modes: the interactive REPL mode, the non-interactive Headless mode, he Web mode and the Desktop mode. The four runtime modes use the same agent engine, model configuration, Alibaba Cloud identity, projects, and session data. This overview is the entry point to the IaC Code installation and usage documentation and helps you choose the next topic based on your scenario.
Choose a run mode
The following table compares the three IaC Code run modes.
Run mode | Scenarios | Long-running | Primary interface |
REPL | Plan, deploy, query, and change cloud resources over multiple turns in a terminal | Yes | Terminal conversations, slash commands, and permission confirmations |
Headless | Shell, CI/CD, scheduled tasks, or a single backend invocation | No | Standard input, standard output, and exit codes |
Web | Graphical cloud resource management, multiple sessions, and Pipeline | Yes | Browser workbench, tool cards, and approval interface |
Desktop | Local cloud resource management without configuring a Python environment | Yes | Native app, projects, and session workbench |
Use the following guidance to choose a run mode:
REPL — You work in a terminal and need multiple turns to handle the same cloud resource task.
Headless — A program submits a task once and parses the result.
Web — You want to configure the model and the Alibaba Cloud identity in a browser, manage multiple sessions, and view Pipeline.
Desktop — If you want to install the app and use the native graphical interface directly, without separately configuring a Python environment.
Get started
To use REPL、Headless or Web mode, read Install and configure IaC Code to complete the shared environment and authentication configuration.
Choose one of the following documents based on your scenario:
To embed IaC Code in another system, continue with Integrate IaC Code.
FAQ
Do the four run modes require separate configuration?
No. By default, the four IaC Code run modes read the same IaC Code configuration directory. The model and Alibaba Cloud identity that you save in REPL or Web can be reused by the other run modes, and you can continue a session across different interactive interfaces.
Are the different runtime modes different versions?
No. REPL, Headless, and Web are different run modes of the same IaC Code package. Web requires the http optional dependency and A2A Server requires the a2a optional dependency, but the core agent capabilities remain the same.
References
The following topics and resources provide more information about IaC Code.