IDE / Code Editor
Connect Cursor IDE
Connect SacredAI Heretic to Cursor through the OpenAI-compatible API.
Verified on Cursor v3.11+ (Settings → Models → OpenAI API Key).
Step by step
Create an API key in SacredGPTSacredGPT → API Keys
In SacredGPT open API Keys, enable 2FA, and create a live key. You will reuse it across agents.

Open Models in CursorCursor Settings > Models
Cursor Settings → Models (or Cmd+/Ctrl+, and search OpenAI). Enable Override OpenAI Base URL.
Set Base URL and key
Base URL: https://sacredgpt.pro/v1. Paste sg_live_… into OpenAI API Key.
Cursor IDEBase URL: https://sacredgpt.pro/v1 API Key: sg_live_...Add models
Add Model with exact IDs: sacredai-heretic.
Cursor IDEsacredai-heretic
Ready-made settings
Replace sg_live_… with your key. For free SacredAI, use the sacredgpt-auto model.
{
"openai.apiBase": "https://sacredgpt.pro/v1",
"openai.apiKey": "sg_live_9a8b7c6d5e4f3a2b1c0d",
"cursor.modelNames": [
"sacredai-heretic"
]
}If it doesn't work
401 Unauthorized Error in Cursor logs
Verify that 2FA is enabled in your SacredGPT account. Live API key issuance requires active 2FA.
SSL Certificate Validation failure
Install your organisation's trusted root certificate in the system trust store. Do not disable TLS verification for the whole process.
No API key yet?
The API is included in your chat plan. SacredAI and 10 Heretic requests are free.
