Skip to content
Guides

Connect CheapLLM to Cursor

Set a custom OpenAI-compatible endpoint in Cursor model settings.

1. Prepare your API key

Create a CheapLLM key. Cursor takes it in the app settings: paste the key value itself, not the text CHEAPLLM_API_KEY. Do not put the key into project files. Note that the CheapLLM site is still a demonstration and the API does not accept requests yet; the configuration below is the target setup.

Key source
CHEAPLLM_API_KEY

2. Set the API address

Open Settings → Models. Under OpenAI API Key enable Use OpenAI API Key and Override OpenAI Base URL, then paste the full base URL including /v1.

Cursor settings
Use OpenAI API Key: enabled
API key: the CHEAPLLM_API_KEY value
Override OpenAI Base URL: enabled
Base URL: https://api.cheapllm.com/v1

3. Add the model

In the model settings add a custom model and enter its exact identifier from the CheapLLM catalog. Availability depends on which models Cursor allows with a custom API.

Model
MODEL_ID

4. Verify the connection

Pick the added model in a Cursor chat and send a short prompt. If no answer arrives, check the URL, the key and whether the model is compatible with the requests Cursor sends.

Test prompt
Answer with one word: ready
All guides