Codebase index not using proxy server even though network diagnostics pass, using remote ssh to linux from linux.
Index log says:
025-09-14 18:23:34.453 [error] Error Checking Connection: [unavailable] getaddrinfo EAI_AGAIN repo42.cursor.sh
2025-09-14 18:23:34.454 [info] Creating Indexing Repo client: https://repo42.cursor.sh
2025-09-14 18:23:34.454 [info] Creating repo client with backend url: https://repo42.cursor.sh
2025-09-14 18:24:38.453 [warning] Retrying handshake with timeout 128000. Error: [unavailable] getaddrinfo EAI_AGAIN repo42.cursor.sh
2025-09-14 18:24:38.454 [error] Handshake failed:
2025-09-14 18:24:38.454 [error] Error: timeout in handshake with retry
etc..
So itâs trying to lookup dns and failing which means itâs not respecting the proxy.
I also tried to manually set http proxy in the config but itâs not affecting anything.
Is there a config option iâm missing? maybe i can tunnel the index back through my own machine instead of forcing the development machine to get to the internet? â update i did tcpdump on the remote machine and it doesnât send anything at all or even try yet network diags pass
Steps to Reproduce
use ssh to linux which has a proxy server set in https_proxy env. Network diagnostics work 100% but iâm not sure if they are testing the remote machine or mine.
Everything else works but the indexing
Operating System
Linux
Current Cursor Version (Menu â About Cursor â Copy)
anyone know of a way to set the cursor-server on the remote ssh host to use a proxy? the remote host iâm using the âremote sshâ extension to ssh to has no internet access other than through a proxy, and it seems like the indexing service needs internet access on that server itself and not my client, and since the model canât see any of the code index itâs really hurting the output
these are available to all users and it works for all the terminals, etc.. needs sudo -i (which the ai agent doesnât realize if it wants to install a package with apt for example)
The cursor-server iâd expect to see the env variables as they show up properly declared when i log in as the user that the remote ssh is using.
It did download and install the cursor-server no problem but iâm not sure if my client uploads that or it âwgetsâ it from the internet somehow on install?
Any updates on this? seems like itâd be a really simple fix to check the proxy variable env on the remote server or at least have an option in cursor config to put the proxy for the indexing?
Hi @f00z, could you confirm which settings.json you set the remote.SSH.httpsProxy in? This will need to be on the local machine, not on the remote machine.
Could you also set the remote.SSH.httpProxy setting?
After setting it, could you run the âKill Remote Server and Reload Windowâ command?
Hi @f00z , can you try disabling HTTP/2 support in your settings and see if that makes any difference? The networking library we use might have some issues with HTTP/2 proxy support.
OK iâll try it, but the network diagnostics pass. If i change it on my client does that change it on the âcursor serverâ on the remote server, i.e. the nodejs process you guys install on the remote host iâm sshing to in order to work on the code? It seems like that server is what is not working, everything from my client side works fine.
OK you are right switching it to http/1.1 made it use the proxy variables (either on the remote server or the ones i set in the json settings file iâm not sure because they are the same). So this fixed it but now itâs using 1.1 instead of 2. I suppose this is OK, but the http/2 wasnât even attempting to use the proxy it just ignored the variables entirely.
Iâm using it with 1.1 now, hopefully it doesnât slow things down considerably (although the new 1.7 that somehow got pushed to me seems a lot slower in general than the 1.6 so itâll be hard to tell)