How do I use Cursor with a corporate VPN?
Configuring Cursor for VPN use
Most corporate VPNs route traffic through a secure tunnel, which can sometimes block or interfere with Cursor's connections to its servers. To use Cursor with a VPN, ensure that your VPN allows traffic to Cursor's domains, such as api.cursor.sh and other related endpoints. You might need to add these to an allowlist in your VPN or firewall settings.
If your VPN requires a proxy, you can configure Cursor to use it. In Cursor's settings, search for 'proxy' and enter your proxy URL. Alternatively, set the HTTP_PROXY and HTTPS_PROXY environment variables before launching Cursor.
- Allowlist Cursor domains (e.g., api.cursor.sh) in your VPN/firewall.
- Configure proxy settings in Cursor if required by your network.
- Set HTTP_PROXY and HTTPS_PROXY environment variables if needed.
- Contact IT if you encounter persistent connection issues.
Troubleshooting common VPN issues
If Cursor fails to connect, try disabling the VPN temporarily to see if that's the cause. Some VPNs use split tunneling, which can be configured to exclude Cursor traffic. Also, ensure your VPN client is up to date, as outdated clients may have compatibility issues.
For AI features, a stable connection is crucial. If the VPN adds latency, you might experience slower responses. In some cases, using a VPN with a dedicated IP or specific region can help.
Common mistakes
- Assuming Cursor works out-of-the-box with all VPNs; network policies may block it.
- Forgetting to configure proxy settings when required, leading to connection errors.
- Not checking with IT about allowlisting Cursor's domains, causing AI features to fail.
