# How can i use private models in cursor

**URL:** <https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113>\
**Category:** Help\
**Tags:** byok\
**Created:** [May 20, 2026, 9:41am UTC](https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113 "2026-05-20T09:41:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_bo](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tom\_bo](https://forum.cursor.com/u/tom_bo)\
**Post date:** [May 20, 2026, 9:41am UTC](https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113/1 "2026-05-20T09:41:15Z")

</div>

when i use the models provide by my company, i’ve added the model name and changed OpenAi api key and base url. now it can identify my model, but the problem ‘User Api Key Rate limit exceeded’ occurs. I don’t know what to do to solve this problem.

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [May 20, 2026, 6:48pm UTC](https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113/5 "2026-05-20T18:48:31Z")

</div>

This error usually means the API key or provider endpoint is being rate-limited.

Since you’re using a custom/company-provided model, please check that the API key is valid, has available quota/credits, and has enough rate limit for the selected model. If the key is managed by your company, your admin or provider may need to increase the limit or issue a new key.

You can provide a request ID and we can take a closer look.

To disable Privacy Mode:

1. Open Cursor Settings with `Cmd+Shift+J` on macOS or `Ctrl+Shift+J` on Windows/Linux.

2. Go to `General`.

3. Turn `Privacy Mode` off / switch to `Share Data`.

If the toggle is locked, Privacy Mode may be enforced by the team admin.

To get the Request ID:

1. Open the relevant conversation in the Chat sidebar.

2. Click the `...` menu.

3. Select `Copy Request ID`.

---

<div class="post-metadata">

**Author:** ![tom\_bo](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tom\_bo](https://forum.cursor.com/u/tom_bo)\
**Post date:** [May 22, 2026, 3:29am UTC](https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113/6 "2026-05-22T03:29:47Z")

</div>

I use the model settings in claude, it just works. so I think it doesn’t the problem of the models.

this follow string is just the request id you need: 60c0eca6-f65d-4a82-980e-02ceb502af15

---

<div class="post-metadata">

**Author:** ![tom\_bo](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tom\_bo](https://forum.cursor.com/u/tom_bo)\
**Post date:** [June 2, 2026, 7:52am UTC](https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113/8 "2026-06-02T07:52:34Z")

</div>

Do you remember the problem? please reply to me.

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [June 18, 2026, 12:38am UTC](https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113/9 "2026-06-18T00:38:10Z")

</div>

Hi @tom_bo Thanks for your patience and sorry for the wait.

The “User API Key Rate limit exceeded” message is Cursor passing through a rate-limit response (HTTP 429) that your company’s endpoint returned. It is not a limit set by Cursor. Since you use your own key and base URL, we forward whatever the endpoint sends back.

That is also why Claude works but your company model does not: different providers, different limits. Cursor’s Agent sends several requests in a short window, so an endpoint with a low requests-per-minute, tokens-per-minute, or concurrency limit hits 429 quickly even when a single request or another provider works fine.

Suggested next steps:

1. Ask whoever manages your company’s endpoint to check the limits on your key (requests per minute, tokens per minute, concurrency) and confirm quota or credits are available. Raising these usually resolves it.
2. Confirm the endpoint is fully OpenAI chat-completions compatible and the model ID matches exactly.

I could not find logs for the request ID you sent, which usually means Privacy Mode was on. If you turn it off (Settings \> General \> “Share Data”), reproduce the error, and send a fresh request ID, I can look closer.

---

<div class="post-metadata">

**Author:** ![Duff2026](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/duff2026/32/113576_2.png) [@Duff2026](https://forum.cursor.com/u/Duff2026)\
**Post date:** [July 6, 2026, 11:47am UTC](https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113/10 "2026-07-06T11:47:19Z")

</div>

I’ve been having this same issue as reported above.

This is not an endpoint 429. I reproduced it with Ollama, LiteLLM, and Groq. I’ve watched for the connection on my remote ollama server, and it doesn’t happen, even though I can use Curl and other apps without a problem. Logs show ERROR\_API\_KEY\_RATE\_LIMIT from Cursor transport, and I also get ‘Access to private networks is forbidden.’ Please confirm whether BYOK custom base URLs are server-side proxied and whether private/local endpoints are unsupported.

Did the external usage policy change for $20/mo accounts? I’ve seen conflicting info in searches.

Request ID: 7e333985-08e0-4e9a-9d2d-aa8224985e84  
{“error”:“ERROR\_OPENAI”,“details”:{“title”:“Unable to reach the model provider”,“detail”:“We encountered an issue when using your API key: Input token limit exceeded\n\nAPI Error:\n\n`\nInput token limit exceeded\n`”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}  
[invalid\_argument] Error  
RetriableError: [invalid\_argument] Error  
at Tuf (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9056:9690)  
at Rqi (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9056:8425)  
at Vap (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9057:11962)  
at Object.classify (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9057:16467)  
at Duf (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9057:5856)  
at async eWo.runWithSharedTurnRunner (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9057:15819)  
at async EV.resume (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:20449:7463)  
at async Uva.streamFromAgentBackend (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:20477:14168)  
at async Uva.getAgentStreamResponse (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:20477:23591)  
at async UIe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/duffd/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9219:2399)

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [July 6, 2026, 9:17pm UTC](https://forum.cursor.com/t/how-can-i-use-private-models-in-cursor/161113/11 "2026-07-06T21:17:30Z")

</div>

Hi @Duff2026 Thanks for the post! That looks like Cursor is passing thru an error from your provider, which in this case, looks like a token limit exceeded issue. So your prompt is too long and it is getting rejected, and Cursor is relaying that error from your model provider. It doesn’t have to do with your Cursor plan.
