Setup Steps
Open Cursor Settings
Press
Cmd/Ctrl + Shift + J in Cursor, or go to File → Preferences → Cursor Settings.Go to the Models Tab
In the settings panel, click the Models tab on the left. Scroll down to the OpenAI API Key section.
Enter Your API Credentials
- OpenAI API Key: Enter your ElkAPI API key (starts with
sk-) - Override OpenAI Base URL: Enter
https://api.elkapi.com/v1
Notes
- Cursor’s third-party API mode currently only supports the Chat feature. Cursor Tab (inline completions) and Agent mode require an official Cursor subscription.
- Enter the full model name directly, e.g.
claude-opus-4-5-20251101 - For the best stability, set your token’s provider to Official or Enterprise in the ElkAPI console
- If a model appears unavailable, verify that it’s included in your token’s allowed model list