← Back to Blog

Cursor Error "doesn't serve your region": How to Restore Claude and GPT in 10 Minutes

We analyze why Cursor shows the error "This model provider doesn't serve your region" and how to regain access to Claude and GPT using residential and mobile proxies.

📅November 19, 2026

If you see the message «This model provider doesn't serve your region» when opening a chat in Cursor and the Claude or GPT models have suddenly disappeared from the list — this is not a bug or a temporary glitch. This is a regional block at the model provider level, triggered by the IP address of your connection. We analyze why this happens and show effective ways to restore access to the models without reinstalling Cursor or changing accounts.

What this error actually means

Cursor is a code editor based on VS Code with a built-in AI assistant that connects to models from Anthropic (Claude), OpenAI (GPT), and other providers through their APIs. When you send a request in the chat, Cursor makes a call to the model provider's server, and that server checks the country of origin of the request based on the IP address.

The message «This model provider doesn't serve your region» means that the model server (most often the infrastructure of Anthropic or OpenAI) has identified your IP as belonging to a region where access to the service is restricted or officially unsupported. This is not an error of Cursor itself — the application simply relays the denial received from the model provider.

It is important to understand: the blocking occurs not at the Cursor account level and not at the level of your subscription. It is tied to the network address from which the request is made. This means that changing accounts, reinstalling the application, or clearing the cache will not help — the problem can only be solved by changing the internet exit point, that is, the IP address.

Why Cursor blocks Claude and GPT by region

There are several reasons why model providers restrict access based on geography, and it is important for developers to understand the difference in order to choose the right solution.

Sanction and legal restrictions. Anthropic and OpenAI do not officially provide access to their APIs in a number of countries due to export restrictions and sanction lists. If your actual or IP-determined region is on such a list, the request is automatically blocked, regardless of whether you are using a VPN, corporate network, or home internet.

Blocking of data center IP ranges. Model providers have learned to recognize addresses belonging to cloud and data center providers (AWS, Google Cloud, DigitalOcean, OVH, and similar), and apply stricter filtering to them. If you connect through a VPN or a server whose IP is identified as a "data center," this increases the chance of blocking, even if the region itself is not under sanctions.

Dynamic change of geo-database. IP addresses are periodically reassigned between countries in geolocation databases (MaxMind, IP2Location, and similar). As a result, an address that was identified as a "permitted" region yesterday may end up on the blocked list today — without any action on your part.

Corporate and mobile operators with a shared IP pool. If an internet provider uses NAT with a shared pool of addresses for thousands of users, one "bad" address in that pool can temporarily affect everyone who exits the network through it, including you.

How a proxy solves the regional blocking issue

The essence of the solution is simple: since the blocking is tied to the IP address, it is necessary to change the internet exit point to an address from a region where the model provider operates normally. A proxy server acts as an intermediary node — all Cursor traffic goes first to the proxy, and then to the Anthropic or OpenAI server, and for the model provider, the request appears to come from the country where the proxy is located.

The key point is that the proxy must provide a "clean" IP that is not identified as data center-based. If you simply connect a cheap server proxy, there is a high probability of getting the same block because model providers actively filter such ranges. Therefore, for stable operation with AI models in Cursor, an IP resembling that of a regular home or mobile user is needed.

Here, residential proxies come to the forefront — they use real IP addresses assigned by internet providers to home users. For the protection systems of Anthropic and OpenAI, such an address is indistinguishable from an ordinary person sitting at home with a laptop, so the likelihood of blocking based on the "data center" criterion is minimal.

Which type of proxy to choose for Cursor

Not all proxies are equally suitable for bypassing regional restrictions of AI providers. Below is a comparison of three main types in terms of the task of "restoring Claude and GPT in Cursor."

Proxy Type Risk of IP Blocking Speed When to Use
Data Center Proxies High — often end up on data center range lists High For tasks not related to AI APIs (scraping, testing)
Residential Proxies Low — IP looks like a home user Medium-High Daily work with Cursor, Claude, GPT
Mobile Proxies Minimal — IP from mobile operators Medium, depends on the operator's network If the residential IP of the region is still filtered

For most developers who want to work reliably with Claude and GPT in Cursor, the optimal balance of price, speed, and reliability is achieved with residential proxies targeting a country where API access is officially open — for example, the USA, the UK, or EU countries. It makes sense to keep mobile proxies as a backup option in case a specific residential range gets temporarily blocked.

Step-by-step proxy setup for Cursor

Cursor does not have a separate "proxy" field in the model settings interface, so proxying traffic needs to be configured at the operating system level or through environment variables that the Electron application picks up (and Cursor is built on Electron, just like VS Code).

Step 1. Obtain proxy access data. After subscribing to a proxy provider, you will receive a host, port, username, and password, and you can also choose the desired country for geo-targeting.

Step 2. Configure the proxy through environment variables (Windows, macOS, Linux). This is the most reliable method, as Cursor, being an Electron application, reads the system variables HTTPS_PROXY and HTTP_PROXY at startup.


# Windows (PowerShell) — launching Cursor with proxy
$env:HTTPS_PROXY="http://login:pass@proxy_host:proxy_port"
$env:HTTP_PROXY="http://login:pass@proxy_host:proxy_port"
& "C:\Users\User\AppData\Local\Programs\cursor\Cursor.exe"

# macOS / Linux (bash/zsh)
export HTTPS_PROXY="http://login:pass@proxy_host:proxy_port"
export HTTP_PROXY="http://login:pass@proxy_host:proxy_port"
open -a "Cursor"
  

Step 3. Set environment variables permanently. To avoid setting the proxy manually at each launch, add the export lines to your shell profile file (.zshrc, .bashrc on macOS/Linux) or create a system environment variable through "System Properties → Environment Variables" on Windows.

Step 4. Check the proxy operation. Before launching Cursor, ensure that the IP is indeed changing — make a request to an IP checking service via curl with the same proxy parameters:


curl -x http://login:pass@proxy_host:proxy_port https://api.ipify.org
  

If the command returns an IP address from the desired country, rather than your real address — the proxy is set up correctly, and you can launch Cursor with active environment variables.

Step 5. Restart Cursor and check the chat with the model. Open the dialog with Claude or GPT again. If the message «This model provider doesn't serve your region» has disappeared and the model responds — the setup was successful. If the error persists, try changing the proxy's geo-targeting country to another from the list of officially supported regions by the model provider.

Alternative option — system proxy at the OS level. If you do not want to work with environment variables, you can set the proxy globally: on Windows through "Settings → Network & Internet → Proxy," on macOS through "System Preferences → Network → Proxy Server." In this case, Cursor, like all other applications, will use the proxy automatically, without additional commands in the terminal.

Common mistakes during setup

Even with the correct proxy, the error sometimes does not disappear. Let's discuss typical reasons why the solution does not work on the first try.

  • A data center proxy is used instead of a residential one. Model providers filter known ranges of cloud hosting separately from geo-blocking by country, so even a proxy from a "permitted" country may be blocked if it is clearly a data center.
  • Environment variables are set after launching Cursor. Electron applications read system variables at process startup — if you change them while Cursor is already open, the changes will not apply without a complete restart of the application.
  • The proxy does not specify the username and password in the connection string. If the proxy provider requires authentication, and the URL of the environment variable does not include login:pass@, the request will be rejected before it reaches the model server.
  • DNS cache or local VS Code configuration interferes with applying settings. Cursor inherited some settings from VS Code, including the http.proxy field in the settings.json file — if an old or empty proxy is specified there, it may conflict with system variables.
  • A country that also falls under restrictions is selected. Not every country is equally supported by Anthropic and OpenAI — before choosing geo-targeting, check with the proxy provider which locations are available, and test several options.

Quick diagnostic checklist:

  1. Did you check the real IP via curl with the proxy — did the address change?
  2. Is the IP not identified as data center-based (checked through any IP type detection service)?
  3. Are the environment variables set before launching Cursor, not after?
  4. Is there no conflicting http.proxy field in settings.json for Cursor?
  5. Is a country where the API of Anthropic/OpenAI is officially available selected?

Frequently asked questions

Will a regular free VPN help instead of a proxy?
Most often, no — free VPNs use shared server IPs that are widely blacklisted by AI providers precisely because they handle a massive flow of requests from different users simultaneously.

Do I need to change the proxy for each model provider separately (Claude, GPT)?
No, if the proxy is configured at the level of system environment variables or system proxy of the OS — all outgoing traffic from Cursor, including requests to all model providers, will go through the same node.

Will the proxy slow down the model's responses?
A slight delay is possible, as the traffic goes through an additional node, but when using quality residential proxies with good connection speed, the difference is usually barely noticeable for regular chat operations.

What to do if the error appears only occasionally?
This is a sign that your current IP is periodically being redefined by the geo-database as a "forbidden" region. In this case, it is advisable to use a proxy with IP rotation within the desired country to avoid reliance on one specific address.

Conclusion

The message «This model provider doesn't serve your region» in Cursor is the result of the AI model provider checking your IP address, not an error of the editor itself. The most reliable solution is to change the internet exit point to an address from a permitted region by setting up a proxy through environment variables or system network settings. It is important to avoid data center IPs, which model providers filter separately from regular geo-blocking.

If you want to work reliably with Claude and GPT in Cursor without recurring blocks, it makes sense to choose residential proxies targeting a supported country right away — they minimize the risk of falling under the filter of data center ranges. If a residential IP is temporarily blocked, it is advisable to keep mobile proxies on hand as a backup option, as they use mobile operator addresses and rarely end up on AI provider restriction lists.