Overview
Use this guide when you want to try NEAR AI Cloud from Cursor’s OpenAI-compatible settings. The intended settings are:
Keep the OpenAI API key toggle enabled while testing NEAR AI Cloud. If you turn it off, Cursor may stop sending requests with your custom key.
Prerequisites
- Cursor installed.
- A NEAR AI Cloud API key from the NEAR AI Cloud Dashboard.
- A text-only prompt you can use to test Chat or Plan mode.
Base URL
Use the gateway base URL:/chat/completions itself, so a base URL ending in /chat/completions can become a doubled path.
Model ID
Use the exact model ID from NEAR AI Cloud:glm-5.2, nearai-glm, or another convenience alias unless that exact ID appears in the NEAR model list or in the specific endpoint you are using.
For the current model list, see Model Discovery and Refresh.
Configure
In Cursor, follow this path:- Open Settings.
- Go to Models.
- Choose Add OpenAI API Key.
- Paste your NEAR AI Cloud API key into Cursor’s OpenAI API key field.
- Keep the OpenAI API key toggle enabled.
- Enable Override OpenAI Base URL.
- Enter
https://cloud-api.near.ai/v1. - Add a custom model with the exact ID
z-ai/glm-5.2. - Select
z-ai/glm-5.2in the Chat or Plan model picker and send a small text-only prompt.
- The custom base URL may affect Cursor-provided models while the override is enabled.
- Only chat/plan-style calls may work through the override.
- Composer, Agent, autocomplete, and inline edit routing is not documented as verified for NEAR AI Cloud.
- If you need Cursor-provided models again, you may need to disable the OpenAI API key toggle or the base URL override, then reselect the Cursor model.
Refresh models
Cursor may not automatically discover every model fromGET /v1/models. When NEAR AI Cloud releases a new model:
-
Check the live model list:
-
Copy the exact
idvalue. - Add or update that model ID in Cursor’s Models settings.
- Re-select the model in the Chat or Plan model picker.
- Restart Cursor if the picker keeps showing an old model list.
Quick test
First verify NEAR AI Cloud directly, before debugging Cursor:Troubleshooting
Related guides
- Model Discovery and Refresh
- OpenAI Compatibility
- Available Models
- Continue
- Cline, Roo Code, and Kilo Code
Sources Checked
Sources checked on 2026-06-23:- Cursor API keys
- LLM Gateway Cursor guide
- Public Cursor forum reports about custom OpenAI base URL and Composer/custom key behavior