# Overview

SonarQube Server offers several instance-level AI features designed to enhance code quality and security.

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

Sonar’s AI CodeFix employs large language models to propose automatic code fixes. Instance administrators have the option to activate this feature and select one of the available LLMs. Once enabled, developers can view AI-generated fix suggestions for compatible languages through the SonarQube Server interface or directly in their IDEs when in connected mode. The goal of AI CodeFix is to simplify issue resolution and enhance code quality by leveraging AI-powered assistance.

See the [Enable AI CodeFix](/sonarqube-server/instance-administration/ai-features/enable-ai-codefix.md) page.

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

{% hint style="warning" %}
Autodetect AI code has been deprecated in SonarQube Server 2026.1 and will be dropped in a subsequent release.
{% endhint %}

SonarQube Server includes a feature that automatically identifies AI-generated code from your DevOps platform. This functionality, active by default, notifies instance administrators about projects with recent AI activity, allowing for the implementation of Sonar’s AI Code Assurance. To enable this, SonarQube Server needs specific permissions to access information on your DevOps platform to compare AI usage statistics.

See the [Autodetect AI code](/sonarqube-server/instance-administration/ai-features/autodetect-ai-code.md) page.

## Permissions for AI autodetection <a href="#permissions-for-ai-autodetect" id="permissions-for-ai-autodetect"></a>

{% hint style="warning" %}
Autodetect AI code has been deprecated in SonarQube Server 2026.1 and will be dropped in a subsequent release.
{% endhint %}

To detect AI-generated code, SonarQube Server needs access to the DevOps AI provider. The AI Code Autodetection feature must be enabled by an instance administrator in SonarQube Server, and the DevOps administrator must grant the necessary permissions on the DevOps platform. This setup allows SonarQube Server to analyze AI-assisted usage and identify potential AI contributions, showing the detection status on project overview pages.

See the [Permissions for AI autodetect](/sonarqube-server/instance-administration/ai-features/permissions-for-ai-autodetect.md) page.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Agent Centric Development Cycle](https://docs.sonarsource.com/agent-centric-development-cycle/) of AI capabilites
* Learn how to[Set your AI standards](/sonarqube-server/quality-standards-administration/ai-code-assurance/overview.md) for AI Code Assurance
* [Fixing issues](/sonarqube-server/user-guide/issues/fixing.md#opening-in-ide) for information about getting AI CodeFix in the IDE


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/instance-administration/ai-features/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
