Skip to content

Web UI requires internet — binary proxies all assets to CDN instead of serving locally #17406

@BYK

Description

@BYK

Description

The compiled OpenCode binary proxies all web UI asset requests to app.opencode.ai. Running opencode serve in an environment without internet access (air-gapped, corporate proxy, airplane) results in a blank page because the HTML, JS, CSS, and fonts cannot be fetched from the CDN.

The web UI assets are known at build time and can be embedded directly into the binary using Bun's compile-time asset embedding ({ type: "file" } imports). This would allow the server to serve them locally with a CDN fallback only for optional fonts.

Steps to reproduce

  1. Build and run opencode serve on a machine without internet access
  2. Open the web UI in a browser
  3. Observe blank page — all asset requests fail because they proxy to app.opencode.ai

OpenCode version

1.2.26

OS

macOS, Linux, Windows

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions