# Sonarqube AI Codefix Limit on Self-hosted LLM

**URL:** <https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754>\
**Category:** SonarQube Server / Community Build\
**Tags:** ai-codefix\
**Created:** [October 2, 2025, 10:34am UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754 "2025-10-02T10:34:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![llyderino](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/llyderino/32/70161_2.png) [@llyderino](https://community.sonarsource.com/u/llyderino)\
**Post date:** [October 2, 2025, 10:34am UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754/1 "2025-10-02T10:34:34Z")

</div>

- 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.“

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [October 2, 2025, 11:42am UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754/2 "2025-10-02T11:42:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![llyderino](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/llyderino/32/70161_2.png) [@llyderino](https://community.sonarsource.com/u/llyderino)\
**Post date:** [October 2, 2025, 3:56pm UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754/4 "2025-10-02T15:56:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [October 2, 2025, 4:59pm UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754/5 "2025-10-02T16:59:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![llyderino](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/llyderino/32/70161_2.png) [@llyderino](https://community.sonarsource.com/u/llyderino)\
**Post date:** [October 3, 2025, 10:23am UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754/6 "2025-10-03T10:23:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![harry.anderson](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/harry.anderson/32/70449_2.png) [@harry.anderson](https://community.sonarsource.com/u/harry.anderson)\
**Post date:** [October 6, 2025, 9:19am UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754/7 "2025-10-06T09:19:39Z")

</div>

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)?**

---

<div class="post-metadata">

**Author:** ![llyderino](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/llyderino/32/70161_2.png) [@llyderino](https://community.sonarsource.com/u/llyderino)\
**Post date:** [October 7, 2025, 7:36am UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754/8 "2025-10-07T07:36:43Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [October 16, 2025, 4:41pm UTC](https://community.sonarsource.com/t/sonarqube-ai-codefix-limit-on-self-hosted-llm/149754/13 "2025-10-16T16:41:14Z")

</div>

Closed on October 16, 2025, 4:41pm UTC

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