Sonarqube AI Codefix Limit on Self-hosted LLM

  • version: Enterprise Edition v2025.3.1 (109879)

  • how is SonarQube deployed: Docker

  • what are you trying to achieve: SQ AI Codefix usage

  • what have you tried so far to achieve this: I enabled AI Codefix using our own self hosted LLM Console but I am getting an error message “Your organization has reached the monthly usage limit for AI CodeFix.“

    Based on the documentation there should be no limits on AI Codefix for self hosted LLMS. AI CodeFix | Sonar Documentation Not really sure on what I am doing wrong here, am I missing something?

Hello,

Thanks for getting in touch.

A couple of questions and suggestions:

  1. Were you setting up AI CodeFix for the first time, or did you encounter this warning after some period of use?
  2. Please note that v2025.3.1 of SonarQube is no longer supported. We recommend upgrading to v2025.5. However, as far as I know, there haven’t been any recent changes related to limits in the upgrade.

Let me know a bit more about your setup, and we’ll be glad to help you further.

This is the first time we are trying the AI Codefix feature, we want to test it on some projects, but we are encountering this limitation error. We also plan to upgrade to v2025.5 by EOM.

1 Like

Thanks. I’ve flagged this for the team. Something doesn’t sound right.

Thanks! Tried again after increasing the limit of the ai model, still getting the same error.

Hello @llyderino ,

We are looking into the issue. Would it be possible for you to copy a few details from the Network tab about the failed request and paste them here to help us replicate the problem.

* Request URL
* Status Code
* Payload
* Response

Are you able to provide any details about your self-hosted configuration?

Thank you for raising this issue. We hope to resolve it soon.

Edit: @llyderino - Are you able to clarify whether your self-hosted LLM has it’s own rate limiting (and whether or not the limit has been reached)?

Hello @harry.anderson , got it working now. Looks like the issues was on our self-hosted LLM. It hit its limits hence the “Your organization has reached the monthly usage limit for AI CodeFix.“ error. Thanks for checking!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.