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
also can confirm that it was working up until yesterday. I have had one such issue a couple days ago which fixed itself after a few attempts. It's completely stopped responding starting yesterday.
it's not just opencode auth login, running just opencode hangs similarly.
Edit:
As I was writing this, it miraculously started working again. It feels like one of the network requests it makes on boot is really slow but there is no feedback/logs. I'll try a local build with more logging if it happens again.
fyi I'm in Australia, wouldn't be surprised if latency was a factor
Now opencode should launch without hanging, BUT if I try to send a message to a model from GitHub Copilot, there will be no response (maybe other openai-compatible API endpoints also have this problem, I did not check)
The fix is to close opencode again, and edit the version of @ai-sdk/openai-compatible in ~/.cache/opencode/package.json to "latest", here is my working package.json at the time of writing:
Activity
rekram1-node commentedon Aug 20, 2025
do you by any chance have a special npm setup? Or by chance are you behind corporate firewall?
rekram1-node commentedon Aug 20, 2025
And this only happens with copilot? If it is only copilot I think it may be related to what I said above^^
thdxr commentedon Aug 20, 2025
can you show us what's in
~/.cache/opencode/package.jsonnabn commentedon Aug 20, 2025
nabn commentedon Aug 20, 2025
@rekram1-node
no i was on my home wifi, no vpn. i am using
miseto manage my tool versions, could that be it?nabn commentedon Aug 20, 2025
also can confirm that it was working up until yesterday. I have had one such issue a couple days ago which fixed itself after a few attempts. It's completely stopped responding starting yesterday.
it's not just
opencode auth login, running justopencodehangs similarly.Edit:
As I was writing this, it miraculously started working again. It feels like one of the network requests it makes on boot is really slow but there is no feedback/logs. I'll try a local build with more logging if it happens again.
fyi I'm in Australia, wouldn't be surprised if latency was a factor
rekram1-node commentedon Aug 20, 2025
another person on opencode discord just reported this @thdxr, they had same empty dep object but no special configs otherwise
nabn commentedon Aug 21, 2025
closing as it's resolved for me.
blurgyy commentedon Aug 26, 2025
One of my machines is consistently facing this issue every time opencode is updated on that machine. I can reliably fix it with the following steps:
bun add --no-cache --force --exact --cwd ~/.cache/opencode [email protected] [email protected] @ai-sdk/openai-compatible@latest@ai-sdk/openai-compatiblein~/.cache/opencode/package.jsonto"latest", here is my working package.json at the time of writing:{ "dependencies": { "@ai-sdk/openai-compatible": "latest", "opencode-anthropic-auth": "0.0.2", "opencode-copilot-auth": "0.0.2" } }Now opencode should stop hanging on launch, and can generate a response.