This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Managing AI features

Enable or disable AI-generated fix suggestions on your SonarQube Server 10.8 instance.

For AI agents: You're in the SonarQube Server 10.8 documentation. For a list of all 10.8 pages, see the SonarQube Server 10.8 page index. For the whole site, see the page index or the full text. For another version, replace 10.8 in the URL with that version. The latest version has no version number in its URL.

Enabling AI-generated fix suggestions

AI CodeFix is available in SonarQube Server, Enterprise and Data Center editions and uses OpenAI’s GPT-5.1 (recommended) or GPT-4o to suggest fixes for your issues. As an instance administrator, you can enable or disable AI-generated fix suggestions on your projects.

To enable AI-CodeFix, go to Administration > Configuration > General Settings > AI CodeFix > Enable AI-generated fix suggestions and select Enable AI CodeFix. Once AI CodeFix is enabled, select either All projects or choose projects individually from the list to activate the feature.

Note that if you choose Enable AI CodeFix on selected projects only, new projects will not be automatically enabled.

You’ll need a connection to the internet to access SonarQube Server’s AI CodeFix service.

The service is provided via api.sonarqube.io and has these static IP addresses:

  • 99.83.135.55 (CIDR: 99.83.135.55/32)

  • 15.197.164.24 (CIDR: 15.197.164.24/32)

Once enabled, developers can get AI-generated fix suggestions from the Issues page in their projects. See Fixing issues for more details.

Disabling AI CodeFix

To disable AI CodeFix completely in SonarQube Server and hide the feature from all users, including Instance Admins, set sonar.ai.codefix.hidden=true in your sonar.properties file.

AI Code Assurance

Sonar recognizes that AI-generated code should be monitored with additional quality standards and offers administrators a series of tools described on the AI standards page.

Last updated

Was this helpful?