Disable AI Assistant
You can restrict the use of AI Assistant if you do not want to share source code with third parties.
Disable AI Assistant for the current project
You can disable AI Assistant for the project that is currently open in your IntelliJ IDEA.
Click AI Assistant in the bottom-right corner.
Select the Disable for This Project option.
Note that AI Assistant icons in the toolbars and AI actions in the context menu will still be visible, but not available.
Restrict usage of AI Assistant for a project
Create an empty file named
.noai
in the root directory of the project.
When this file is present, all AI Assistant features are fully disabled for the project. Even if this project is opened in another IDE, the AI Assistant features will not be available.
Note that this file affects only the JetBrains AI Assistant plugin and does not affect any third-party AI integration plugins for JetBrains IDEs or other tools that may send code to external LLMs (Large Language Model).
Permanently disable AI Assistant
To disable AI Assistant on the IDE level, you can disable the AI Assistant plugin.
Click AI Assistant in the bottom-right corner.
Click More and select the Disable Permanently via Plugin option.
On the plugin's description pane that opens, click Disable and restart IntelliJ IDEA.