Skip to content

Documentation: how to obtain CURSOR_BACKEND_BASE_URL, CURSOR_CHAT_ENDPOINT, and CURSOR_LOCAL_AGENT_ENDPOINT values #13

@misak113

Description

@misak113

Problem

The project requires three environment secrets for deployment:

  • CURSOR_BACKEND_BASE_URL
  • CURSOR_CHAT_ENDPOINT
  • CURSOR_LOCAL_AGENT_ENDPOINT

However, the correct values are not documented anywhere. The .env.example and README.md contain only placeholders like "private-cursor-backend-origin" and "private-cursor-chat-endpoint". The AGENTS.md explicitly prohibits committing them, and the values have never appeared in the git history.

What we tried

  1. Searched the codebase — no hardcoded values, only env var references.
  2. Inspected @cursor/sdk — found https://api2.cursor.sh as default backend and agent.v1.AgentService proto definitions, but these don't match the chat endpoint.
  3. mitmproxy on macOS — Cursor's chat streaming uses native HTTP/2 connections that bypass HTTPS_PROXY. Only metadata RPCs were captured (GetTeams, AvailableModels, etc.).
  4. Searched Cursor's bundled JS files — the chat endpoint path is constructed dynamically at runtime, not present as a string literal.
  5. Wireshark with SSLKEYLOGFILE — Cursor's native process doesn't respect it, so TLS decryption failed.

Result

Setting CURSOR_BACKEND_BASE_URL=https://api2.cursor.sh and guessing the chat endpoint path results in:

parse binary: illegal tag: field no 0 wire type 0

This confirms the guessed path returns non-protobuf content.

Request

Could you please document how self-hosters can obtain the correct values for these three secrets? Even a pointer in the right direction would be very helpful.

Thank you for this great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions