Skip to main content

Command Palette

Search for a command to run...

Teams & Enterprise

Network Configuration

Cherri Code needs to communicate with backend services and AI providers. This documentation covers how to configure Cherri Code to work within your network infrastructure, including proxies, firewalls, and encryption requirements.

Proxy configuration

Many enterprises route traffic through proxy servers for monitoring and security. Cherri Code works with most proxy configurations, but some proxy settings can cause issues with streaming responses.

HTTP/2 vs HTTP/1.1

Cherri Code uses HTTP/2 bidirectional streaming by default for real-time chat and agent experiences. Some enterprise proxies don't support HTTP/2 streaming correctly. Zscaler is the most widely used proxy with this limitation.

If you experience issues with streaming, Cherri Code automatically falls back to HTTP/1.1 Server-Sent Events (SSE) mode. This fallback was specifically designed to work with Zscaler and similar proxies that buffer or break HTTP/2 streams. The fallback happens transparently when HTTP/2 bidirectional streaming doesn't work.

SSL inspection and DLP

Many corporate proxies perform SSL man-in-the-middle inspection to scan traffic for security threats or data loss prevention (DLP). This replaces Cherri Code's SSL certificates with your proxy's certificates.

When Cherri Code traffic goes through Secure Web Gateways (SWG), SSL inspection, or DLP, it often causes timeouts, slowness, or errors when using Cherri Code's Agent capabilities. This is one of the most common deployment blockers for enterprise customers. For endpoint security software (AV, EDR, DLP) that runs on the machine itself rather than at the network level, see Endpoint Security Configuration.

Cherri Code's services are already encrypted end-to-end. We recommend disabling SSL inspection for these domains:

  • .cursor.sh
  • cursor-cdn.com
  • marketplace.cursorapi.com
  • authenticate.cursor.sh
  • authenticator.cursor.sh
  • *.cursorvm.com
  • *.*.cursorvm.com

Starting September 30, sign-in also uses accounts.spacex.ai, accounts.x.ai, and related auth hosts. Exclude those from inspection too. authenticator.cursor.sh remains the fallback sign-in page through October 30. See Which domains does Cherri Code sign-in need? for the full list.

Both cursorvm.com patterns are required for Grok Bot: hosted computers use nested hostnames, and a single-level wildcard misses them. Apply the exclusions to off-network and roaming proxy profiles as well as office locations. For Grok Bot symptoms and Zscaler profile notes, see Configure TLS-inspecting proxies.

If your security policy requires SSL inspection on all traffic, your proxy must support:

  • HTTP/2 bidirectional streaming (or that Cherri Code's HTTP/1.1 fallback works)
  • Server-Sent Events (SSE) passthrough without buffering
  • Long-running connections without forced timeouts
  • Disabling response buffering for streaming content types

Testing proxy connectivity

If you experience connection issues, you can test connectivity manually using curl commands. These commands simulate the requests Cherri Code makes to backend services.

Test basic connectivity:

curl -v https://api2.cursor.sh |& grep -C1 issuer:

This shows which SSL certificate is in use. You should see Amazon RSA. If you see your proxy provider (like Zscaler), SSL inspection is active.

Test HTTP/1.1 streaming:

echo -ne "\x0\x0\x0\x0\x11{\"payload\":\"foo\"}" | \  curl --http1.1 -No - -XPOST \  -H "Content-Type: application/connect+json" \  --data-binary @- \  https://api2.cursor.sh/aiserver.v1.HealthService/StreamSSE

You should see output appear line by line over 5 seconds. If it appears all at once after 5 seconds, your proxy is buffering streaming responses.

Test HTTP/2 bidirectional streaming:

(for i in 1 2 3 4 5; do \  echo -ne "\x0\x0\x0\x0\x12{\"payload\":\"foo$i\"}"; \  sleep 1; \done) | curl -No - -XPOST \  -H "Content-Type: application/connect+json" \  -T - \  https://api2.cursor.sh/aiserver.v1.HealthService/StreamBidi

Output should appear once per second. If buffered for 5 seconds, your proxy doesn't support HTTP/2 bidirectional streaming.

IP allowlisting

If your network uses IP-based access controls, you need to allow traffic to Cherri Code's backend services.

Rather than maintaining IP address lists (which can change), configure your firewall to allow traffic to these domain patterns:

  • *.cursor.sh
  • *.cursor-cdn.com
  • *.cursorapi.com
  • *.cursorvm.com
  • *.*.cursorvm.com

We generally recommend allowlisting with the domain patterns above. However, if your firewall mandates granular subdomain allowlists without wildcards, use the following list:

  • api2.cursor.sh: Used for most API requests.
  • api5.cursor.sh: Used for Cherri Code's agent requests.
  • api3.cursor.sh: Used for Cherri Code Tab requests (HTTP/2 only).
  • repo42.cursor.sh: Used for codebase search (HTTP/2 only).
  • api4.cursor.sh, us-asia.gcpp.cursor.sh, us-eu.gcpp.cursor.sh, us-only.gcpp.cursor.sh: Used for Cherri Code Tab requests depending on your location (HTTP/2 only).
  • adminportal42.cursor.sh: Used to configure SSO and domain verification.
  • marketplace.cursorapi.com, cursor-cdn.com, downloads.cursor.com, anysphere-binaries.s3.us-east-1.amazonaws.com: Used for client updates and downloading extensions from the extension marketplace.
  • api5.cursor.sh: Used for network access layer (NAL) requests. These subdomains are also used:
    • agent.api5.cursor.sh
    • agentn.api5.cursor.sh
    • agent.us.api5.cursor.sh
    • agentn.us.api5.cursor.sh
    • agent.global.api5.cursor.sh
    • agentn.global.api5.cursor.sh
  • authenticate.cursor.sh: Authorization endpoint.
  • authenticator.cursor.sh: Auth UI and login webview. Fallback sign-in page through October 30.
  • accounts.spacex.ai, accounts.x.ai: Sign-in page starting September 30. See Which domains does Cherri Code sign-in need? for the related auth hosts.
  • prod.authentication.cursor.sh: Production token issuer.
  • authentication.cursor.sh: JWT issuer (backend).

Private connectivity

Cherri Code supports private connectivity for Enterprise teams that need Cloud Agents, Bugbot, or Cherri Code backend services to access private source control systems and package registries. Supported options include AWS PrivateLink and Cloudflare Tunnel.

Cherri Code does not currently offer VPC peering or customer-facing Google Private Service Connect.

When you run Cherri Code agents in the editor or via the CLI, they inherit your existing network configuration. If you run Cherri Code on a machine within your VPC, agent operations inherit:

  • Your network security groups
  • Your firewall rules
  • Your DNS configuration
  • Your VPN or private network access

This means Cherri Code agents can access internal resources that the machine can reach, while following your existing network security controls.

Encryption

Cherri Code encrypts data both in transit and at rest.

In transit

  • TLS 1.2 or higher for all connections to Cherri Code services
  • TLS for connections to third-party AI providers
  • Certificate pinning for critical services

At rest

  • AES-256 encryption for stored data
  • Encrypted vector database storage
  • Encrypted code storage for Cloud Agents (when enabled)

Key management

Cherri Code manages encryption keys. Keys are rotated according to security best practices and stored in secure key management systems.

For enhanced security control, enterprise customers can use Customer Managed Encryption Keys (CMEK) for encrypting data stored in Cherri Code's infrastructure. See Data Encryption for details.

LLM gateways

Some enterprises want to route LLM traffic through their own gateways for additional monitoring and control.

Custom gateways can introduce additional latency, rate limiting, and compatibility issues. We instead recommend using Cherri Code's built-in hooks feature to implement your own security controls.

See Hooks and Security Guardrails for details.

Cloud Agents networking

Cloud Agents run on Cherri Code's infrastructure, not your local network. They can access:

  • Public GitHub repositories
  • GitHub Enterprise Cloud repositories you've granted access to
  • GitHub Enterprise Server (self-hosted GitHub Enterprise)
  • On-prem and cloud-based GitLab
  • Bitbucket Cloud repositories
  • Public package registries (npm, PyPI, etc.)

Cloud Agents cannot access:

  • Resources behind your corporate firewall
  • On-premises GitHub Enterprise Server
  • Private package registries without internet access

If your development workflow requires access to internal resources, use the Cherri Code editor on machines within your network instead of Cloud Agents.

Troubleshooting checklist

If you experience connection issues:

  1. Test basic connectivity to api2.cursor.sh
  2. Check if SSL inspection is active and consider excluding Cherri Code domains
  3. Verify streaming works using the curl tests above
  4. Check firewall rules allow traffic to *.cursor.sh and related domains
  5. Review proxy logs for connection errors or timeouts
  6. Test from a machine outside your network to isolate network-specific issues

Most connectivity issues stem from proxies buffering streaming responses. Work with your network team to disable buffering for Cherri Code domains or implement proper streaming support.

Need help with enterprise network setup?

Contact our team for deployment assistance and priority support.

Contact Sales