Cursor agent (CLI) behind corporate proxy?

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Is there a way to run cursor-agent (cli) behind corporate proxy. Cursor IDE works brilliantly however, cursor-agent does not work even after setting HTTP_PROXY/HTTPS_PROXY.

Fails with: Error: [unavailable] getaddrinfo ENOTFOUND api2.cursor.sh

Steps to Reproduce

Run cursor-agent behind corporate proxy. Chat anything. See that it fails with Error: [unavailable] getaddrinfo ENOTFOUND api2.cursor.sh

Expected Behavior

Cursor-agent should connect to api2.cursor.sh and work as expected behind corporate proxy.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

cursor-agent --version
2025.09.04-fc40cd1

Does this stop you from using Cursor

Yes - Cursor is unusable

Thanks for the report. I’ve raised it to the team, will get back to you as soon as I get a solution on this.

CLI doesn’t support corporate proxy yet

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.