anomalyco / anomalyco/opencode

Cannot connect to API: The socket connection was closed unexpectedly

Open
#39,557 1 comment 0 reactions 1 assignee View on GitHub

@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
Image
Operating System

Home Assistant

Terminal

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.