Troubleshooting · Cursor

Cursor: Unable to Reach the Model Provider — Causes and Fixes

Cursor reports it cannot reach the model provider when the request dies before an HTTP response: wrong base URL, network path, or a provider outage. How to tell which one you have.

What you see

We're having trouble connecting to the model provider. This might be temporary - please try again in a moment.

Why it happens

  • The custom base URL is wrong at the transport level — a typo in the host, a scheme mistake, or a URL that resolves nowhere — so no HTTP response ever arrives.
  • The network path is blocked: a proxy, VPN or firewall between Cursor and the endpoint drops the connection.
  • The provider itself is briefly down. In that case nothing on your side changed and the error clears on its own.
  • An override URL was pasted with a trailing path segment the provider does not serve, so the TLS or HTTP layer fails before any API error can be returned.

How to fix it

  • Test the exact base URL outside Cursor with curl. If curl cannot connect either, the problem is the URL or the network, not Cursor.
  • Set the override to the origin only and let the client append /v1 paths itself.
  • If curl works but Cursor does not, check whether Cursor is routed through a proxy or VPN the terminal is not using.
  • If nothing changed on your side and the error is new, wait a few minutes — transient provider incidents produce exactly this message.

Prove the endpoint is reachable

curl https://api.apitoken.sale/v1/models \
  -H "x-api-key: sk-pool-•••" \
  -H "anthropic-version: 2023-06-01"

Related searches

  • cursor unable to reach model provider
  • cursor connection failed anthropic

FAQ

Is "unable to reach model provider" the same as a 401 or 429?+
No. This message means no HTTP response arrived at all. A 401 or 429 means the provider answered and rejected the request — different layer, different fix.
Cursor worked yesterday and fails today with no changes — what now?+
That pattern is a transient outage or a network-path change (VPN, proxy, captive portal). Verify with curl first; do not rewrite a configuration that already worked.
What base URL should the Anthropic override use?+
The origin only — for this gateway, https://api.apitoken.sale. Do not append /v1: clients add API paths themselves, and a doubled path fails.

Skip the broken setup

apiToken.sale serves the standard Anthropic API — same models, same SDKs, one prepaid balance. Point your tool's base URL at it, and the config on this page works as written.