# Azure OpenAI "on premise"

**URL:** <https://forum.cursor.com/t/azure-openai-on-premise/39902>\
**Category:** Help\
**Created:** [January 8, 2025, 8:09am UTC](https://forum.cursor.com/t/azure-openai-on-premise/39902 "2025-01-08T08:09:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrsimpson](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mrsimpson/32/18709_2.png) [@mrsimpson](https://forum.cursor.com/u/mrsimpson)\
**Post date:** [January 8, 2025, 8:09am UTC](https://forum.cursor.com/t/azure-openai-on-premise/39902/1 "2025-01-08T08:09:07Z")

</div>

Hi there 👋 (first post, so I think it’s polite to say “hi”),

I’d like to use Cursor with our corporate Azure OpenAI provider.  
After reading the [docs](https://docs.cursor.com/advanced/api-keys), I thought it should be possible to connect it easily, so I created an API key from our corporate azure portal, entered the baseUrl, deployment and api-key, but it wasn’t accepted (`invalid credentials`)

 ![Bildschirmfoto 2025-01-08 um 09.04.18](https://us1.discourse-cdn.com/cursor1/original/3X/2/2/2211f662bfd12e4d2f2ab9fbdd21b4db236c1c0c.png)

I guess that this feature is not intended to be used for Azure OpenAI except the azure-public-cloud hosted versions, is that right?  
I think that I’d need to configure `?api-version={api-version}` at least.

It would be super helpful if at least somebody could point me to logs where I can see which request is performed for “validating the connection”.

Thanks!

Oliver

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [January 10, 2025, 1:17pm UTC](https://forum.cursor.com/t/azure-openai-on-premise/39902/2 "2025-01-10T13:17:45Z")

</div>

Hey, just to confirm - in this setup, are the LLMs running on machines local to you, or still running on the cloud?

Cursor should be happy with any publicly accessible LLM provider. But there are some more complex Azure setups where Cursor may not be working as intended.

---

<div class="post-metadata">

**Author:** ![mrsimpson](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mrsimpson/32/18709_2.png) [@mrsimpson](https://forum.cursor.com/u/mrsimpson)\
**Post date:** [January 10, 2025, 3:48pm UTC](https://forum.cursor.com/t/azure-openai-on-premise/39902/3 "2025-01-10T15:48:10Z")

</div>

The model is hosted in a corporate azure account.  
I can connect to it from localhost via vpn and API key from localhost. However, I need to specify an `api-version` parameter on the test API (see [the docs](https://learn.microsoft.com/de-de/azure/ai-services/openai/reference) ).

I cannot configure this in Cursor and it seems there is no other app which alles to determine the versions as consumer.

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [January 12, 2025, 10:59am UTC](https://forum.cursor.com/t/azure-openai-on-premise/39902/4 "2025-01-12T10:59:49Z")

</div>

Unfortunately, the model has to be publicly accessible, as there is no way to configure our servers to tunnel through your VPN to access your Azure instance.

The LLM request is done via Cursor’s servers, not your own machine, so even though it is accessible to your machine, Cursor is unfortunately unable to use it!

---

<div class="post-metadata">

**Author:** ![gabrii](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gabrii/32/79648_2.png) [@gabrii](https://forum.cursor.com/u/gabrii)\
**Post date:** [September 14, 2025, 3:52pm UTC](https://forum.cursor.com/t/azure-openai-on-premise/39902/5 "2025-09-14T15:52:31Z")

</div>

Hi @mrsimpson , I’ve created this service which you might be able to use as a bastion in your vpc/vpn. I know it’s been a while, but in case it helps you or anyone else: [GitHub - gabrii/Cursor-Azure-GPT-5: A service that allows Cursor to use Azure GPT-5 deployments.](https://github.com/gabrii/Cursor-Azure-GPT-5)
