anomalyco / anomalyco/opencode

Windows: opencode web/serve listens but does not accept HTTP connections under Bun

Open
#38,220 0 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Jul 22, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description
Description

On native Windows (PowerShell/cmd), opencode web and opencode serve print listening and netstat shows LISTENING, but HTTP clients cannot connect (curl timeout / browser hangs).

Reproduction
  1. Windows 11, install opencode-ai via npm (or run from source with Bun)
  2. Run opencode web --port 4096 --hostname 127.0.0.1
  3. curl http://127.0.0.1:4096/ → connection timeout

Python http.server on the same machine works fine.

Expected

Browser/curl should receive HTTP 200 and load the Web UI.

Actual

Connection times out despite port showing LISTENING.

Environment
  • OS: Windows 11
  • opencode-ai: 1.18.4
  • Bun: 1.3.14 (when running from source)
Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

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.