Description
I get an unauthorized request from the OpenAI service. The API returns a 401 after authentication is returned successful. I have the Plus subscription and not the API directly.
ERROR 2026-03-23T21:26:12 +552ms service=llm providerID=openai modelID=gpt-5.4-mini sessionID=ses_2e37698adffeX1NcMtkizyg75P small=false agent=build mode=primary error={"error":{"name":"AI_APICallError","url":"https://api.openai.com/v1/responses","requestBodyValues":{"model":"gpt-5.4-mini","input":[{"role":"user","content": ERROR 2026-03-23T21:26:12 +1ms service=session.processor error=Unauthorized stack="AI_APICallError: Unauthorized\n at <anonymous> (/$bunfs/root/src/cli/cmd/tui/worker.js:98891:30)\n at processTicksAndRejections (native:7:39)" process "responseBody":"{\"detail\":\"Unauthorized\"}","isRetryable":false}} stream error
Plugins
GSD (https://github.com/gsd-build/get-shit-done)
OpenCode version
1.3.0
Steps to reproduce
- opencode auth logout
- opencode auth login
2.1 Select OpenAI (tried both browser and headless ways)
- Returns successful
- Still fails
Screenshot and/or share link
Operating System
macOS
Terminal
Ghostty, tried iTerm as well with same behavior.
Description
I get an unauthorized request from the OpenAI service. The API returns a 401 after authentication is returned successful. I have the Plus subscription and not the API directly.
ERROR 2026-03-23T21:26:12 +552ms service=llm providerID=openai modelID=gpt-5.4-mini sessionID=ses_2e37698adffeX1NcMtkizyg75P small=false agent=build mode=primary error={"error":{"name":"AI_APICallError","url":"https://api.openai.com/v1/responses","requestBodyValues":{"model":"gpt-5.4-mini","input":[{"role":"user","content": ERROR 2026-03-23T21:26:12 +1ms service=session.processor error=Unauthorized stack="AI_APICallError: Unauthorized\n at <anonymous> (/$bunfs/root/src/cli/cmd/tui/worker.js:98891:30)\n at processTicksAndRejections (native:7:39)" process "responseBody":"{\"detail\":\"Unauthorized\"}","isRetryable":false}} stream errorPlugins
GSD (https://github.com/gsd-build/get-shit-done)
OpenCode version
1.3.0
Steps to reproduce
2.1 Select OpenAI (tried both browser and headless ways)
Screenshot and/or share link
Operating System
macOS
Terminal
Ghostty, tried iTerm as well with same behavior.