We have a custom model hosted on-prem. We expose it via OpenAI compatible API.
But when we use the hostname we get a DNS error and private IPs are forbidden when we try to override base URL in OpenAI configuration.
The model is an agentic model that was slightly fined tuned with private data, and we don’t want to expose it outside.
The issue is that BYOK API keys work through Cursor’s backend. All requests go through our servers for the final prompt construction. This means private IPs and internal hostnames aren’t accessible, because our backend can’t reach your internal network.
Can you send:
The exact DNS error text
The hostname you’re using (is it your company’s internal domain?)
The error message when trying to use a private IP
Your Cursor version (Menu → About Cursor → Copy)
Possible workarounds:
Expose the model via a public endpoint with authentication