anomalyco / anomalyco/opencode
Cannot connect to API: The socket connection was closed unexpectedly
Open
@rekram1-node is already working on this.
Since Jul 29, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
After working flawless for a couple of hours it suddenly started showing the error "Cannot connect to API: The socket connection was closed unexpectedly". I'm on Home Assistant running Opencode version 2.3.8. Any help is much appreciated.
Plugins
No response
OpenCode version
2.3.8
Steps to reproduce
Start opencode
Give command
Response is Cannot connect to API....
Screenshot and/or share link
Operating System
Home Assistant
Terminal
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.