Setup guide - Documented by Goose
Use OpenAI in Goose
Goose has a built-in OpenAI provider configured with OPENAI_API_KEY via goose configure (CLI) or Settings > Models in goose Desktop, plus a ChatGPT Subscription sign-in option.
Last verified 4 steps2 official sources
Steps
- Step 1.
CLI: run goose configure, select Configure Providers, choose OpenAI, enter your API key when prompted, then choose a model.
Terminalgoose configure - Step 2.
Desktop: open the sidebar, click Settings, open the Models tab, click Configure providers, click OpenAI, add your API key and click Submit. Or on first launch choose Quick Setup with API Key, or ChatGPT Subscription to sign in with ChatGPT Plus/Pro.
- Step 3.
Optional OpenAI provider variables: OPENAI_HOST (defaults to api.openai.com), OPENAI_BASE_PATH (defaults to v1/chat/completions), OPENAI_ORGANIZATION, OPENAI_PROJECT, OPENAI_CUSTOM_HEADERS, OPENAI_STORE (whether to persist the generated Responses API response for later retrieval; defaults to false).
- Step 4.
goose configure does not support custom model names; to use a model not in the provider's list, use goose Desktop (Use custom model) or set GOOSE_MODEL in config.yaml.
Caveats
- Goose's provider table describes OpenAI as providing gpt-4o, o1 and others; the GPT-6 ids come from OpenAI's model catalog.
- o1-mini and o1-preview are not supported because goose uses tool calling.
- Provider API keys placed in config.yaml are ignored.
- Goose docs now live at goose-docs.ai (block.github.io/goose redirects there).
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 Goose?
Goose has a built-in OpenAI provider configured with OPENAI_API_KEY via goose configure (CLI) or Settings > Models in goose Desktop, plus a ChatGPT Subscription sign-in option.
Which OpenAI model ids work in Goose?
The official docs read for this guide list gpt-6.1-sol, gpt-6-astra and gpt-6-luna. Requests go to api.openai.com.
Is this an official OpenAI and Goose setup?
Goose 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.
- goose-docs.aihttps://goose-docs.ai/docs/getting-started/providers/
- 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.