EU4Commands.com

ai Console Command

Documentation and examples for the ai command in Europa Universalis IV.

ai

Debug

Toggles AI control for all nations or a specific country

ParameterDescription
Target Country TagTextrequired

Command builder

Fill in the parameters to build a ready-to-paste ai command. Fields with a dropdown let you pick a valid ID.

Target Country Tag

Overview

Toggles AI control. With no argument it switches the AI on or off for every nation; pass a country tag to hand just that country to (or take it back from) the AI.

Frequently asked questions

How do you use the ai command in EU4?

Open the console with the grave (`) key while in-game, type ai followed by its parameters, then press Enter. The console can't be opened in Ironman games.

What does the ai command do?

Toggles AI control for all nations or a specific country.

What are the parameters for the ai command?

The syntax is ai [target country tag]. It takes one argument: target country tag.

Does the ai command require any DLC?

No. ai is part of the base game and works without any DLC.

Can you use ai in Ironman mode?

No. The console is disabled in Ironman games, so ai can't be entered. Because achievements are only earned in Ironman, console commands like ai can't be used to unlock them.