Setup guide - Documented by Cursor
Use OpenAI in Cursor
Cursor offers OpenAI's GPT-5.6 family (Sol, Terra, Luna) as built-in third-party models on Premium and above, billed at API list price, and also lets you bring your own OpenAI API key under Cursor Settings > Models.
Last verified 2 steps3 official sources
Steps
- Step 1.
Built-in models: open the model selector in the chat or agent panel and choose an OpenAI model (or press Cmd/Ctrl + / to cycle). Third-party models require Premium and above, Teams, Enterprise, or the legacy Pro, Pro+ and Ultra plans.
- Step 2.
Bring your own key: open Cursor Settings > Models, find OpenAI, paste your API key into the text field and click Save. The provider's models then appear in the model picker.
Caveats
- Cursor's BYOK page says the OpenAI key covers "Standard, non-reasoning chat models" and that custom API keys only work with chat models; Tab completion keeps using Cursor's built-in models.
- Free and Plus plans include only Cursor's first-party models, and Plus does not include your own API keys; third-party models are paid from prepaid credit at API list price.
- On Teams and Enterprise, eligible third-party requests made with your own key carry the Cursor Token Rate of $0.25 per million tokens; models whose cache-read price is strictly below $0.10 per million tokens across every pricing tier are exempt. Cursor's Zero Data Retention policy does not apply to BYOK requests.
- Cursor's docs list models by display name (no API ids); the OpenAI models with pages in Cursor's models reference are GPT-5.6 Sol, GPT-5.6 Terra and GPT-5.6 Luna.
- GPT-5.5 appears in Cursor Router's routing pool.
More setup guides
Same tool, other providers
Related reading
- Droid vs Codex (2026): Factory vs OpenAI for Terminal Coding AgentsFactory Droid vs OpenAI Codex compared on models, pricing, headless CI, multi-agent work, extensibility and openness, with a clear recommendation for each kind of developer.
- The One Number That Predicts What AI Can Do NextOpenAI's chief scientist Jakub Pachocki says perplexity, how well a model predicts the next token, tracks every big jump in AI, and wants every lab to publish it.
- Codex CLI 0.171: codex exec --remote, Workspace On by DefaultCodex CLI 0.171.0 adds codex exec --remote to run headless sessions on an existing app server, turns on the TUI workspace by default and picks GPT-6.2 Sol.
- GPT-6.2 Astra and Sol: Pricing, Benchmarks and What to SwitchGPT-6.2 Astra costs $8/$40 per MTok (20% under GPT-6 Astra), Sol stays $2/$10. Vendor-reported benchmarks, cache rates, Codex setup and who should switch.
- Codex CLI 0.169: codex exec Trust, Side Chats and Model ProvidersCodex CLI 0.169.0 keeps project config and MCP servers off in untrusted directories under codex exec, adds --trust, side-chat tabs and a model provider picker.
- Codex Training Setting Re-Enabled? Two Switches to CheckDevelopers report Codex model training turning itself back on. What OpenAI documents, the second "Include environments" switch most people miss, and a five-minute check.
FAQ
How do I use OpenAI in Cursor?
Cursor offers OpenAI's GPT-5.6 family (Sol, Terra, Luna) as built-in third-party models on Premium and above, billed at API list price, and also lets you bring your own OpenAI API key under Cursor Settings > Models.
Which OpenAI model ids work in Cursor?
The official docs read for this guide list GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna and GPT-5.5.
Is this an official OpenAI and Cursor setup?
Cursor documents this setup in its own docs. It was last checked against 3 official pages on November 8, 2026.
Sources
Last verified against 3 official pages.
Newsletter
New models, set up the day they ship
One email per week. New model releases, the coding tools that support them and how to wire them up.