anomalyco / anomalyco/opencode
Windows: opencode web/serve listens but does not accept HTTP connections under Bun
Open
@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
- Windows 11, install
opencode-aivia npm (or run from source with Bun) - Run
opencode web --port 4096 --hostname 127.0.0.1 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
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.