You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every few hours, I have to reauth all of my providers. Mid session, the model response will hang. I interrupt, and then all messages after that have an error about the API key being missing, forcing me to close an reauth.
OpenCode version
1.0.37. Has been happening since 1.x upgrade
Steps to reproduce
Unsure of the conditions that cause it. I have tried removing all plugins in case one was causing it, but issue persists.
They return properly with opencode auth list. They were all done with opencode auth login. Edited the OP to mention that even though I'm on Arch, opencode is installed with bun -g, not the AUR package in case that matters. Not sure how to best help debug this, next time it happens I'll pop open the console and try to get a log.
Caught it! Grabbed the log from ~/.local/share/opencode/log. Note that here I was using an opencode-gemini-auth plugin. After the issue occurred, opencode auth list reports 0 credentials.
Activity
github-actions commentedon Nov 7, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 7, 2025
@frap129 are these oauth flows specifically?
frap129 commentedon Nov 7, 2025
No, the three providers I use are Anthropic (OAUTH), Google, and OpenRouter. All get reset at the same time
rekram1-node commentedon Nov 7, 2025
Okay now that's odd I haven't heard of this...
if u run
opencode auth listare they showing up properly?Are they authed using
opencode auth loginor are they api keys you have exported as env vars?frap129 commentedon Nov 7, 2025
They return properly with
opencode auth list. They were all done withopencode auth login. Edited the OP to mention that even though I'm on Arch, opencode is installed withbun -g, not the AUR package in case that matters. Not sure how to best help debug this, next time it happens I'll pop open the console and try to get a log.rekram1-node commentedon Nov 7, 2025
If it happens, you should try to do
opencode run hello --print-logsand dump that output if u canrekram1-node commentedon Nov 7, 2025
and prolly do
opencode auth listagain before u try authing againfrap129 commentedon Nov 7, 2025
Caught it! Grabbed the log from
~/.local/share/opencode/log. Note that here I was using anopencode-gemini-authplugin. After the issue occurred,opencode auth listreports 0 credentials.2025-11-07T021324.log
rekram1-node commentedon Nov 7, 2025
id imagine the plugin is wiping your config then maybe?
frap129 commentedon Nov 7, 2025
Yep, after some testing would appear so. Apologies for the confusion.