Description
When OpenAI API auth comes only from provider config (provider.openai.options.apiKey) or OPENAI_API_KEY, without running opencode auth login openai, the OpenAI provider has a configured key but the plugin auth loader does not install the WebSocket fetch used by OpenAI Responses/WebSocket requests. Model calls that require the WebSocket path can fail or miss that transport unless stored auth exists.
Plugins
OpenAI
OpenCode version
dev
Steps to reproduce
- Configure OpenAI via config with
provider.openai.options.apiKey, or set OPENAI_API_KEY.
- Ensure no stored OpenAI auth exists, for example do not run
opencode auth login openai.
- Enable the OpenAI WebSocket path and call an OpenAI model.
- Observe that the WebSocket fetch is not installed unless stored auth exists.
Expected behavior
Configured OpenAI API keys should install the WebSocket fetch the same way stored API auth does.
Actual behavior
The WebSocket fetch is only installed when stored OpenAI auth exists.
Screenshot and/or share link
N/A
Operating System
macOS
Terminal
N/A
Description
When OpenAI API auth comes only from provider config (
provider.openai.options.apiKey) orOPENAI_API_KEY, without runningopencode auth login openai, the OpenAI provider has a configured key but the plugin auth loader does not install the WebSocket fetch used by OpenAI Responses/WebSocket requests. Model calls that require the WebSocket path can fail or miss that transport unless stored auth exists.Plugins
OpenAI
OpenCode version
dev
Steps to reproduce
provider.openai.options.apiKey, or setOPENAI_API_KEY.opencode auth login openai.Expected behavior
Configured OpenAI API keys should install the WebSocket fetch the same way stored API auth does.
Actual behavior
The WebSocket fetch is only installed when stored OpenAI auth exists.
Screenshot and/or share link
N/A
Operating System
macOS
Terminal
N/A