Question
We're trying to integrate OpenCode's web UI into our remote development platform so engineers can use it directly from the browser. Looking for advice on if the approach is sound / what problems it has.
For the remote dev env, we're using coder https://coder.com/. There's an opencode plugin for it but it's TUI first. I really want it to be a web UI first feature for developers.
What I'm doing:
- Each developer gets a Kubernetes-based workspace with opencode web --port 4096 --hostname 0.0.0.0 running as a background process on startup
- OpenCode is installed via curl -fsSL https://opencode.ai/install | bash during workspace provisioning
Config is written to ~/.config/opencode/opencode.json
- A reverse proxy (TLS termination + auth) routes browser traffic to the OpenCode server inside the workspace via subdomain-based routing
- Users click a button in their workspace dashboard to open the web UI in a new tab
- Provider: amazon-bedrock via iam
- Version: v1.1.53
What works:
- Web UI loads, health checks pass, fully functional
- TUI in a terminal on the same remote machine is fast and responsive
What's not great:
- Web UI feels significantly slower than the TUI. Same machine, same model -- TUI streams tokens immediately from what I can tell, web UI takes a while before showing anything.
- Prompts occasionally fail to send, timing out
- Browser Network tab shows the delay is "waiting for server response" on POST /session/:id/message
Questions:
Questions
- Anything we should be doing differently in how we install/configure/run opencode web for this kind of setup?
- Is running opencode web behind a reverse proxy a supported setup, or is it mainly designed for local use?
- Could the reverse proxy (ALB + service mesh) be buffering the SSE stream and causing the perceived slowness?
- Any recommended way to debug the performance gap between TUI and web UI?
Happy to share more details. Thanks!
Question
We're trying to integrate OpenCode's web UI into our remote development platform so engineers can use it directly from the browser. Looking for advice on if the approach is sound / what problems it has.
For the remote dev env, we're using coder https://coder.com/. There's an opencode plugin for it but it's TUI first. I really want it to be a web UI first feature for developers.
What I'm doing:
Config is written to ~/.config/opencode/opencode.json
What works:
What's not great:
Questions:
Questions
Happy to share more details. Thanks!