Skip to content

Send Only Cursor Through a Proxy, Not the Whole System

Use Cursor's own setting, check it with Run Diagnostics, and leave the rest of the system alone.

What stays inside Cursor

Cursor is built on VS Code, and http.proxy is a VS Code setting, so it is stored in Cursor's own settings file. It does not change the operating system's proxy. Your browser, your package manager and every other program keep using your normal connection.

Cursor's own documentation does not describe http.proxy, and the VS Code page calls it a legacy setting. So treat the setup as working only after the check below shows it does.

Set it up in 5 steps

  1. Step 1

    Buy a static ISP IP with the HTTP protocol and open My assets. Copy host, port, username and password.

  2. Step 2

    In Cursor open the command palette (Ctrl+Shift+P, or Cmd+Shift+P on macOS) and run Preferences: Open User Settings (JSON).

  3. Step 3

    Add the two lines from the example below. If the password has special characters, percent-encode them (@ becomes %40, : becomes %3A).

  4. Step 4

    Quit Cursor completely and open it again. If chat or the agent hangs, open Cursor Settings > Network and set HTTP Compatibility Mode to HTTP/1.1, then restart.

  5. Step 5

    Open Cursor Settings > Network and click Run Diagnostics.

    Expected result The checks complete without proxy errors.

Cursor user settings (JSON)

{
  "http.proxy": "http://LOGIN:PASSWORD@HOST:2222",
  "http.proxySupport": "override"
}

Example only. Replace LOGIN, PASSWORD and HOST with the values from My assets.

Prove that only Cursor uses it

Run the curl check below. It shows the IP of the proxy, which proves the address and login work. Then open https://ipinfo.io/json in your normal browser: it should still show your own connection, because the browser is not using the proxy.

Run Diagnostics inside Cursor tells you whether Cursor can reach its servers with the new setting.

Check the proxy itself

curl -x http://LOGIN:PASSWORD@HOST:2222 https://ipinfo.io/json

Example only. It should print the proxy's IP details.

If your IP is SOCKS5, or you do not want the password in the file

The VS Code page says SOCKS5 proxy authentication is not implemented yet, so a SOCKS5 address with a login does not work as http.proxy. You can run a local forwarder on your own computer: it logs in to the proxy, and Cursor only sees http://127.0.0.1:8080 with no login.

This also keeps the password out of settings.json. The price is one more program that must be running while you use Cursor.

Forwarder and the matching Cursor setting

gost -L http://127.0.0.1:8080 -F socks5://LOGIN:PASSWORD@HOST:3333

# settings.json then holds:
# "http.proxy": "http://127.0.0.1:8080"

Example only. Keep the forwarder on 127.0.0.1 and replace HOST, LOGIN and PASSWORD.

Cursor user settings with the forwarder

{
  "http.proxy": "http://127.0.0.1:8080",
  "http.proxySupport": "override"
}

Example only. No login in the file, because the forwarder holds it.

Direct address or local forwarder

Direct address or local forwarder
ItemDirect address in http.proxyLocal forwarder
Where the login isIn settings.jsonIn the forwarder's command or config
SOCKS5 IPDoes not work, no SOCKS5 login in VS CodeWorks, the forwarder speaks SOCKS5 to the proxy
Extra program to keep runningNoneOne small process

From the VS Code network page and the gost documentation, read 13 November 2026.

What a proxy does not change

Cursor's regions page says some model providers have location-based restrictions, those models do not appear in Cursor, and calls may fail even with your own key if the provider blocks your region. A proxy changes the address Cursor connects from; it does not change what the providers offer. Use an IP in the country where you really are.

If Cursor ignores the proxy or hangs

Chat or the agent hangs

Check Cursor uses HTTP/2 for streaming and some proxies block it.

Fix Set HTTP Compatibility Mode to HTTP/1.1 in Cursor Settings > Network and restart Cursor.

407 Proxy Authentication Required

Check The username or password is wrong or has special characters.

Fix Copy them again from My assets and percent-encode @ and : in the address.

Run Diagnostics still reports errors

Check Did you quit Cursor completely after saving the setting? Does the curl check work?

Fix Restart Cursor fully and run the check again.

Stop when If curl also fails, the problem is the IP or lease. Send the order number to Support.

FAQ

Does the proxy in Cursor affect my other apps?

No. The setting is stored in Cursor's own settings, so other programs keep their normal connection.

Where do I put the proxy in Cursor?

In user settings (JSON), as http.proxy. Open it from the command palette with Preferences: Open User Settings (JSON).

Can I use SOCKS5 with Cursor?

Not directly: the VS Code page says SOCKS5 proxy authentication is not implemented. Use an HTTP address or a local forwarder.

What if the Cursor chat hangs behind the proxy?

Set HTTP Compatibility Mode to HTTP/1.1 in Cursor Settings > Network and restart.

Which Proxy302 IP fits Cursor?

A static ISP IP with the HTTP protocol, in the country where you really are. It stays the same during the lease.

Reference links

5
  1. VS Code documentation: network connections

    Official documentation · Confirmed on:

    Read on 13 November 2026: authenticated proxies are supported (Basic, Digest, NTLM, Negotiate); SOCKS5 proxy authentication is not implemented yet; the http.proxy setting is legacy and only respected in two cases that the page does not name.

  2. Cursor documentation: common issues

    Official documentation · Confirmed on:

    Read on 13 November 2026: Cursor Settings > Network > Run Diagnostics; HTTP/2 is used for streaming and some corporate proxies block it, so set HTTP Compatibility Mode to HTTP/1.1 and restart Cursor.

  3. Cursor documentation: regions

    Official documentation · Confirmed on:

    Read on 13 November 2026: some model providers have location-based restrictions, those models do not appear in Cursor, and calls may fail even with your own key if the provider blocks your region.

  4. gost documentation (go-gost/docs)

    Official documentation · Confirmed on:

    Read on 13 November 2026: -L sets the local listener, -F the next hop; credentials go in the URL as user:pass@.

  5. Proxy302 product facts and price list

    Product observation · Confirmed on:

    Product facts file of the site, checked 10 November 2026: HTTP port 2222 and SOCKS5 port 3333; each static IP is issued with one protocol; a per-IP lease also connects over the other protocol on that protocol's port; prices and lease terms.

Ready to try it?

Create an account, top up once, then pick rotating residential, static ISP or datacenter IPs and have one running in your browser within minutes.