Cursor sdk with http/1.1

Hi,

I am trying setup a cursor sdk agent that runs behind enterprise proxy. I could not find any documentation on how to force the agent to run using http/1.1 like cursor IDE or cursor CLI. Is this supported? If so, how can it be done? If not, when will it be supported?

Thank you :folded_hands:

The SDK doesn’t currently support HTTP/1.1 for agent streaming. Agent runs use a streaming protocol that requires HTTP/2, and unlike the IDE and CLI, the SDK doesn’t yet have an HTTP/1.1 fallback path. This is a known gap that our team is actively working on.

Workarounds in the meantime:

  1. Cursor CLI — The CLI supports HTTP/1.1 via useHttp1ForAgent: true in ~/.cursor/cli-config.json. If your automation can shell out to the CLI, this may unblock you while the SDK catches up.

  2. Cloud Agents REST API — The Cloud Agents API uses standard HTTPS and doesn’t require HTTP/2 bidirectional streaming. If your proxy passes regular HTTPS traffic, this should work.

  3. Proxy HTTP/2 passthrough — If your IT team can allow HTTP/2 for Cursor’s API endpoints specifically, the SDK works as-is.

For reference: Cursor SDK docs

Please support as soon as possible. Thank you.