Skip to main content

Cursor Setup

Connect Cursor to GonkaGate through Cursor’s OpenAI settings.

Connect Cursor to GonkaGate by enabling Cursor’s OpenAI key path, overriding the base URL, and adding one live model ID. Then run one short chat request before you trust a longer coding session.

Set the model settings in Cursor

Open Settings -> Cursor Settings -> Models, then configure:

  • In API Keys, enable the OpenAI API Key toggle, then paste gp-your-api-key
  • Override OpenAI Base URL: enabled
  • Base URL: https://api.gonkagate.com/v1
  • Add or search model: add an exact GonkaGate model ID from GET /v1/models, for example qwen/qwen3-235b-a22b-instruct-2507-fp8

After you add the model, make sure it is enabled in Cursor’s models list before you try to use it in chat.

Before you start

  • Cursor is already installed.
  • You already have a GonkaGate API key in gp-... format.
  • You need the narrow Cursor setup path, not a broader SDK, migration, or raw API walkthrough.
  • You will choose a current live model ID from GonkaGate instead of assuming OpenAI default model names.

Verify the connection in Cursor

Open the Cursor chat panel, select the model you added, and send this prompt:

Reply with exactly: Cursor connected to GonkaGate

That confirms the API key, base URL override, and model selection before a longer coding session.

Cursor-specific rules

  • Keep /v1 in the base URL. Cursor can save the setting even when the endpoint is wrong.
  • The OpenAI API Key switch must stay enabled. A filled input field alone is not enough.
  • Add the exact live GonkaGate model ID manually if it does not appear automatically in the search box.
  • Enabling a model in the settings list matters as much as adding it. A saved model that stays disabled will not be available in chat.
  • One short chat prompt after setup is a safer canary than trusting the settings screen alone.

Common first failures

If you seeWhat it usually meansWhat to do
Requests fail immediately or verification does not workThe base URL is wrong or the API key is not the GonkaGate key you intended to useRecheck https://api.gonkagate.com/v1, then confirm the API key
The key looks saved but Cursor still behaves as if no provider is configuredThe OpenAI API Key toggle is off in API KeysTurn the toggle on, not just the input field
The model does not appear in chatThe model ID is wrong, not enabled, or the picker is staleVerify the model ID in GET /v1/models, add it again if needed, ensure it is enabled, then restart Cursor if necessary
401 invalid_api_keyThe key is missing, invalid, or pasted into the wrong provider fieldRecheck the key and Authentication and API Keys
404 model_not_foundThe model ID is stale or invalidSwitch to an exact current model ID from GET /v1/models
429 insufficient_quotaThe prepaid USD balance is too low for this requestCheck Pricing before retrying
429 rate_limit_exceededThe request was throttledRetry with bounded backoff and use Rate Limit Handling for the full policy

See also

Was this page helpful?