Setup guide - Documented by Continue
Use OpenAI in Continue
Continue has a top-level openai provider configured in config.yaml with a model id and API key from the OpenAI console.
Last verified 3 steps2 official sources
Steps
- Step 1.
Get an API key from the OpenAI Console (https://platform.openai.com/account/api-keys).
- Step 2.
Add a model block to your Continue YAML config using provider: openai.
YAMLname: My Config version: 0.0.1 schema: v1 models: - name: <MODEL_NAME> provider: openai model: <MODEL_ID> apiKey: <YOUR_OPENAI_API_KEY> - Step 3.
Continue uses OpenAI's /responses endpoint by default for o-series and gpt-5 models. If you hit "organization must be verified" errors, force /chat/completions with useResponsesApi: false.
YAMLname: My Config version: 0.0.1 schema: v1 models: - name: gpt-5 provider: openai model: gpt-5 useResponsesApi: false
Caveats
- Continue's page uses a <MODEL_ID> placeholder; the ids shown are from OpenAI's model catalog and are substituted into Continue's documented config.
- Continue's docs state the Responses API default for o-series and gpt-5 models; behaviour for GPT-6 ids is not stated.
- The JSON config format is marked deprecated; use YAML.
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 Continue?
Continue has a top-level openai provider configured in config.yaml with a model id and API key from the OpenAI console.
Which OpenAI model ids work in Continue?
The official docs read for this guide list gpt-6.1-sol, gpt-6-astra and gpt-6-luna.
Is this an official OpenAI and Continue setup?
Continue documents this setup in its own docs. It was last checked against 2 official pages on November 8, 2026.
Sources
Last verified against 2 official pages.
- docs.continue.devhttps://docs.continue.dev/customize/model-providers/top-level/openai
- developers.openai.comhttps://developers.openai.com/api/docs/models
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.