# Overview

SonarQube Server provides a series of tools to help you manage and use AI-generated code in your projects. Existing capabilities include:

* AI-generated fix suggestions,
* Quality gates and unique project badge support to AI Code Assurance,
* as well as unique project overview and portfolio labels to identify projects containing AI-generated code.

## AI-generated fix suggestions <a href="#ai-generated-fix-suggestions" id="ai-generated-fix-suggestions"></a>

When an Instance Admin enables AI CodeFix for your project, you can get an AI-generated fix suggestion for eligible issues. The suggestions are generated using OpenAI’s GPT-4o or your own Azure OpenAI LLM.

To enable the feature, see [#enabling-ai-generated-fix-suggestions](https://docs.sonarsource.com/sonarqube-server/2025.2/ai-fix-suggestions#enabling-ai-generated-fix-suggestions "mention") in the administration section.

To learn how to use this feature, see [#getting-ai-generated-fix-suggestions](https://docs.sonarsource.com/sonarqube-server/2025.2/user-guide/issues/fixing#getting-ai-generated-fix-suggestions "mention") on the *Fixing issues* page.

AI-generated fix suggestions are available for a select set of rules in Java, JavaScript, TypeScript, Python, HTML, CSS, C#, and C++. To learn more about which rules are eligible for AI CodeFix, please see the list of [#ai-codefix-rules](https://docs.sonarsource.com/sonarqube-server/2025.2/user-guide/rules/rules-for-ai-codefix#ai-codefix-rules "mention").

## Autodetect AI-generated code <a href="#autodetect-ai-code" id="autodetect-ai-code"></a>

Knowing if your project contains AI-generated code helps raise awareness of code ownership and code security. To help build this awareness, SonarQube Server can autodetect AI-generated code in projects on GitHub using GitHub Copilot. For the full details, see [autodetect-ai-code](https://docs.sonarsource.com/sonarqube-server/2025.2/ai-capabilities/autodetect-ai-code "mention").

If turned on, the feature alerts Instance Admins when project contributors recently used GitHub Copilot so that such projects can be protected with [ai-standards](https://docs.sonarsource.com/sonarqube-server/2025.2/ai-capabilities/ai-standards "mention").

## AI Code Assurance <a href="#ai-code-assurance" id="ai-code-assurance"></a>

AI Code Assurance features help you make sure that the AI-generated code in your project is clean. A new recommended quality gate, *Sonar way for AI Code*, is available to use on projects. In addition, it’s possible to qualify any quality gate for [ai-standards](https://docs.sonarsource.com/sonarqube-server/2025.2/ai-capabilities/ai-standards "mention") and start using it on your projects to ensure security and code quality while boosting team productivity with AI tools.

To learn more about protecting AI-generated code in your project, see the [#label-projects-with-ai-code](https://docs.sonarsource.com/sonarqube-server/2025.2/ai-standards#label-projects-with-ai-code "mention") article on the *Standards for AI-generated code* page.

### Ratings for AI Code Assurance projects in portfolios <a href="#ai-code-assurance-in-portfolios" id="ai-code-assurance-in-portfolios"></a>

*Portfolios are available starting in* [*Enterprise edition*](https://www.sonarsource.com/plans-and-pricing/enterprise/)*.*

It’s possible to view ratings for projects with AI Code Assurance in your portfolios. There, you will see a breakdown of projects, applications, and nested portfolios that include the standards you’ve set for AI-generated code. See the [#portfolio-breakdown](https://docs.sonarsource.com/sonarqube-server/2025.2/user-guide/viewing-reports/portfolios#portfolio-breakdown "mention") article for more information.
