> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/instance-administration/ai-features/overview.md).

# Overview

A quick summary of SonarQube Server’s AI features that can be managed by an instance administrator. This page is for SonarQube Server 2026.5.

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" %}
**Deprecated:** Autodetect AI Code is still available in SonarQube Server 2026.1 LTA and will be removed in a future release. See the [deprecation policy](/sonarqube-server/server-update-and-maintenance/maintenance/deprecations/deprecation-policy.md) for more information. Manual labeling of projects containing AI code remains available — see [Label projects with AI code](/sonarqube-server/quality-standards-administration/ai-code-assurance/overview.md#label-projects-with-ai-code).
{% 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" %}
**Deprecated:** Autodetect AI Code is still available in SonarQube Server 2026.1 LTA and will be removed in a future release. See the [deprecation policy](/sonarqube-server/server-update-and-maintenance/maintenance/deprecations/deprecation-policy.md) for more information. Manual labeling of projects containing AI code remains available — see [Label projects with AI code](/sonarqube-server/quality-standards-administration/ai-code-assurance/overview.md#label-projects-with-ai-code).
{% 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 the project's **Summary** page.

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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
