Connect Cursor IDE to Gab AI's OpenAI-compatible API and use any of our models for chat, composer, agent mode, and inline edits.
Prerequisites
A Gab AI Plus subscription
An API key (generate one at gab.ai/ai/settings or via POST /v1/api-keys)
Configuration
Follow these steps to connect Cursor to the Gab AI API:
Selecting a Model
After verification, you can use any text-capable model from your Gab AI account. Set the model name to the model's slug (e.g. arya, gpt-5-5, claude-sonnet-4-5, claude-opus-4-8, gemini-3-5-flash). Slugs are lowercase and hyphenated — names like "Claude Opus 4.8" or "claude opus" will not match.
List All Models
You can retrieve the full list of available models by calling GET /v1/models.
What Works in Cursor
Chat (Cmd+L / Ctrl+L) — Full streaming support
Composer / Agent mode — Full support including tool/function calling
Inline edits (Cmd+K / Ctrl+K) — Supported
Limitations
Tab Completion
Tab Completion uses Cursor's built-in models and cannot be routed through a custom API.
Cursor sends your API key through their server for final prompt assembly — your key is not stored but is transmitted per-request.
Tab Completion
Open Cursor Settings > Models — Open Cursor Settings > Models
Enter your Gab AI API key in the OpenAI API Key field — Enter your Gab AI API key in the OpenAI API Key field
Toggle ON "Override OpenAI Base URL" — Toggle ON "Override OpenAI Base URL"
Set the base URL to: https://gab.ai/v1 — Set the base URL to: https://gab.ai/v1
Click Verify to confirm the connection — Click Verify to confirm the connection
List All Models
You can retrieve the full list of available models by calling GET /v1/models.