Latest Release: v0.1.10
The AI agent can be installed locally or on an HPC. If you are new to the MDO Agent Deck, we recommend starting with the local installation.
Installation (local computers)
The local installation works for Linux, Windows, and MacOS, and it is the easiest way to run the agents with small cases. If you plan to run larger cases, e.g., wing aero-structural optimization, you need to install the agents on an HPC.
Step 1. Install an LLM client
First, install a command-line interface (CLI) for an LLM client. The MDO Agent Deck supports multiple LLM clients, but for this setup, you only need to install ONE CLI client.
NOTE: You must sign up for an account for the selected CLI client and log in using your subscription. Do NOT use API keys. If you already have a paid subscription for one of the following LLM providers, install its corresponding CLI client. Otherwise, choose a client that offers a free but limited usage quota (we recommend Antigravity CLI). If the quota for one free-tier client runs out, you may need to switch to another free-tier CLI client.
Please follow the official installation instructions for your selected client. The installation steps may differ by operating system and may require additional dependencies such as Node.js.
- Codex CLI: OpenAI Codex CLI installation guide; limited free quota
- Claude Code CLI: Anthropic Claude Code installation guide; paid plan only
- Antigravity CLI: Google Antigravity CLI installation guide; limited free quota
- Gemini CLI: Google Gemini CLI installation guide; limited free quota; to be replaced by Antigravity
- Cursor CLI: Cursor CLI installation guide; limited free quota
After the installation is finished, verify that your CLI is available in the terminal:
- Codex CLI:
codex -V - Claude Code CLI:
claude -V - Antigravity CLI:
agy --version - Gemini CLI:
gemini -v - Cursor CLI:
agent -v
You should see the version of your LLM client in the terminal.
Step 2. Install VS Code
Download VS Code from here and install it.
Optional: For VS Code on Windows, you can configure your terminal to use a desired bash interface by opening the Command Palette from the top panel, searching for “Terminal: Select Default Profile”, and then selecting CMD, PowerShell, or bash.
Step 3. Install Docker Desktop
Download and install the Docker Desktop app for MacOS, Windows, or Linux.
After the Docker Desktop is installed, open it and keep it open.
Then, open a terminal and run the following command to download the pre-compiled MDO Agent Deck image:
docker pull dafoam/agent:latest
If a newer version of the agent image is available, simply run the command above again to download the latest image.
Step 4. Download the working directory
Download mdo_agent_work repo from here.
Unzip it and you will see a folder called mdo_agent_work-docker. Rename it to mdo_agent_work. This will be the main working directory for your agents.
IMPORTANT: Do not manually create a folder and use it as the LLM’s working directory. You must use mdo_agent_work. This is because mdo_agent_work/results contains pre-defined LLM configuration files (hidden by default). You do not need to modify these configuration files.
The local installation is finished!
Installation (HPC)
This section is for running large-scale cases on an HPC. If you are using the local installation and running the agents on your local computer, you do not need to follow these steps.
Step 1. Install VS Code and Remote SSH
Download VS Code from here and install it.
Optional: Some newer versions of VS Code may experience issues when connecting to HPC systems. If you run into this issue, try an older version of VS Code: 1.100.3.
Open VS Code. From the left panel, click Extensions (see Fig. 1 below), then search for Remote SSH by Microsoft and click Install.
After installing Remote SSH, set up the SSH connection:
-
Click the
Open a Remote Windowbutton in the lower-left corner of VS Code (see Fig. 1 below). -
In the pop-up window on the top, select
Connect to Host, then choose+ Add New SSH Host. -
In the pop-up window, enter your SSH command, for example:
ssh my_user_name@nova.its.iastate.edu. -
When prompted, select the SSH configuration file to update (choose
~/.ssh/configor similar). -
Once the SSH configuration is complete, click
Connect to Hostagain and select your newly added host (e.g.,nova.its.iastate.edu). You will be prompted to enter your password and, if applicable, a verification code to log in to the HPC. -
If the terminal is not visible after opening the folder, click
Toggle Panelin the top-right corner of VS Code (see Fig. 1 below).
DO NOT close VS Code or the open terminal on the HPC. We will use them to install other packages in the following steps.
Step 2. Install a LLM client on the HPC
Using the terminal in VS Code via Remote SSH, we need to install an LLM client’s command line interface (CLI) on the HPC. Please follow the same instrucitons from Installation (local computers) -> Step 1. Install an LLM client, shown above.
Step 3. Install the agents and DAFoam on the HPC
Using the terminal in VS Code via Remote SSH, we need to compile the DAFoam package from scratch. Follow the instructions from here. In this example, we assume DAFoam is installed in /home/your_user_name/dafoam.
After DAFoam is compiled, load its environment, e.g., . /home/your_user_name/dafoam/loadDAFoam.sh, and then run the following command to install the MDO Agent Deck:
pip install mdo_agent_deck
The mdo_agent_deck package is hosted on PyPI.
Step 4. Create the working directory
Using the terminal in VS Code via Remote SSH, we will need to first download mdo_agent_work repo from here. Note: this link is DIFFERENT from the one from local installation above.
Unzip it and you will see a folder called mdo_agent_work-hpc. Rename it to mdo_agent_work. This will be the main working directory for your agents. You can put mdo_agent_work any where on the HPC, e.g., /home/your_user_name/mdo_agent_work.
IMPORTANT: Do not manually create a folder and use it as the LLM’s working directory. You must use mdo_agent_work. This is because mdo_agent_work/results contains pre-defined LLM configuration files (hidden by default). You do not need to modify these configuration files.
The agents are ready to use on the HPC.
Test the agent
The following steps work for both local and HPC installations.
First, open VS Code. For HPC installation, you need to use Remote SSH to connect to the HPC. You do not need to do this for local installation.
Then, in VS Code, click the “Explorer” icon in the left sidebar (see Fig. below). From there, select “Open Folder” and open the mdo_agent_work folder as your working directory.
Next, click the “Toggle Panel” button in the top-right corner to open a terminal (see Fig. 1 below).
In the terminal, navigate to the mdo_agent_work/results folder. If you use HPC or Native mode, you MUST load the DAFoam environment. You do not need to do this for Docker mode.
IMPORTANT: Open the mdo_agent_work folder in Explorer, then use the terminal to navigate to mdo_agent_work/results before starting the LLM CLI. This is intentional and helps avoid conflicts with VS Code LLM extensions. You must start the LLM in the mdo_agent_work/results folder. The name of the results folder can be arbitrary. If you need to run multiple cases, you can make copies of the results folder inside mdo_agent_work, e.g., mdo_agent_work/results1 and mdo_agent_work/results2.
Then, launch your LLM client in full-permission mode to avoid interruptions. Choose ONLY ONE of the following, depending on which LLM client you are using.
Claude Code: claude --dangerously-skip-permissions
Codex: codex --yolo
Gemini: gemini --yolo
Antigravity: agy --dangerously-skip-permissions
Cursor: agent --yolo
You need to sign up for an account and log in to the LLM CLI. DO NOT use API keys; use subscription login instead.
If this is the first time you add a new MCP server, your client may show a “New MCP server found” prompt. Choose “Use this MCP server”.
Some LLM clients may also warn you about the skipped-permissions setup. You can allow it if needed. If you prefer, you can omit the --dangerously-skip-permissions or --yolo arguments.
Then, run /mcp and verify if the mdo_agent_deck is connected. If yes, you can start asking questions.
You can ask something like:
“Generate a CFD mesh for the NACA0012 airfoil with 20K cells with yPlus 5.”
The agent will parse your prompt into solver input arguments and run predefined commands to generate the mesh, then return clickable paths to the mesh figures along with a summary of the mesh. You can hold the Command key (MacOS) or Control key (Windows and Linux) and click these paths to view the figures directly in VS Code (see Fig. 1 below).
The agent will also return a clickable link for a Trame server to view the mesh interactively. You can open this server from your default browser by clicking the link.
For the best visual experience, we recommend using the “Light Modern” color theme in VS Code. To change the theme, open the Command Palette in VS Code, search for “Preferences: Color Theme”, and select “Light Modern”.

Fig. 1. An example of the VS Code interface on local computers