Repository navigation
Open
Labels
area:non-interactiveNon-interactive mode (-p), CI/CD, ACP protocol, and headless automation
Description
Motivation
OpenCode (opencode.ai) recently shipped opencode web — a command that starts a local HTTP server and serves a browser-based UI for the AI coding agent. This is a killer feature that Copilot CLI currently lacks.
Copilot CLI is terminal-only (TUI), which limits the experience to one dimension.
What opencode web does
$ opencode web
▄
█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀
Web interface: http://127.0.0.1:4096/
Key capabilities:
- Local HTTP server bound to
127.0.0.1with a configurable port (--port) - Full browser UI — chat, file tree, diff viewer, session management
- TUI attach —
opencode attach http://localhost:4096lets you connect a terminal session to the same server, sharing state/sessions - Auth — optional HTTP basic auth via
OPENCODE_SERVER_PASSWORD - mDNS discovery —
--mdnsfor LAN access - CORS support —
--corsfor custom domains
Proposed feature: copilot web
$ copilot web
# Starts a local HTTP server and opens the browser
# equivalent to: copilot --acp + web UI frontend
Benefits over terminal-only
| Feature | Terminal (TUI) | Web interface |
|---|---|---|
| Syntax-highlighted diffs | Basic | Rich, side-by-side |
| File tree navigation | Manual @ mentions |
Clickable tree |
| Multi-session management | /resume |
Session tabs |
| Code review UX | Scroll through text | Inline comments, annotations |
| Mobile/tablet use | Not practical | Fully usable |
| Accessibility | Screen-reader flag | Native browser a11y |
| Sharing | --share-gist |
URL sharing, screenshots |
Implementation notes
- Copilot CLI already has the
--acp(Agent Client Protocol) server mode — the web UI could be a thin client on top of that - Could be implemented as a built-in plugin or separate package
- The
--remoteflag already enables GitHub web control — but that is cloud-dependent; a local web server is simpler, faster, and works offline
References
Reacted by Andreas Højgaard Jørgensen, Tom Tan and Marco Romanutti
Metadata
Metadata
Assignees
Labels
area:non-interactiveNon-interactive mode (-p), CI/CD, ACP protocol, and headless automation
Activity
Yashhh999 commentedon May 13, 2026
copilot web— Feature ProposalRefines github/copilot-cli#3301. Audience: GitHub Copilot CLI maintainers. Drop-in for the issue thread.
Context
OpenCode's
opencode webships a local HTTP server + browser UI for an AI coding agent — same workflow as the TUI but rendered in a browser, with rich diffs, clickable file trees, multi-session tabs, and optional LAN sharing. Copilot CLI is terminal-only today, which caps UX on three axes that matter to users:@-mentions don't compete with a clickable file tree, especially on large reposThe infrastructure to support this already exists inside Copilot CLI; the missing piece is a first-party browser front-end and a
copilot webentrypoint to start it.What exists that we can build on
From the public changelog:
--acpACP server, localhost-bound--remoteweb control/share htmlThe architectural insight:
copilot webis--acp+ an embedded static web client + a tiny WebSocket/SSE bridge. It's a packaging and front-end project, not a new agent runtime.Proposal
Command surface
Mirrors OpenCode's flag shape so users moving between tools have one mental model.
Architecture
Single process, single port. The HTTP layer serves static assets + proxies ACP messages over WebSocket. State, permissions, MCP, LSP, and slash commands route through the existing ACP runtime — no second source of truth.
UX scope (v1)
In:
/sharedeep-links the current sessionOut (v1):
Security defaults
127.0.0.1by default, never0.0.0.0without an explicit flaghttp://127.0.0.1:PORT/#token=...--host 0.0.0.0requires--auth(refuse to start otherwise)--acp(changelog line 309)Phasing
--acpsocket, run out-of-process. Validates the protocol surface.copilot webcommand: bundle the static client, embed the HTTP/WS bridge, ship as part of@github/copilot./share htmlrendering primitives into the live UI.copilot attach: TUI-as-second-client against the same server, sharing session state.--host,--auth, optional mDNS.Open questions for maintainers
--acpconsidered a stable enough surface to layer a first-party UI on, or is it still evolving?copilot webrun? (Bundle size vs. offline-first tradeoff.)--remote: keep both (--remote= cloud-hosted,web= local) or eventually converge?--acpin the interim?Appendix: wrapper fallback (build today, no maintainer cooperation)
If GitHub doesn't prioritize this, the same UX can be assembled today as a third-party package:
copilot --acpas a child processnpx copilot-weborcopilot-webbrew formulaEffort estimate: ~2–3 weeks for a single dev to reach chat + diff parity, given Zed's ACP client as a reference. Risk: ACP surface changes between CLI releases without a SemVer contract — wrapper will need a version compatibility matrix.
This appendix is included so the proposal is concrete: even the worst case (GitHub declines) is buildable.
Verification (if shipped first-party)
copilot webopens browser, can run a full task end-to-end (prompt → tool calls → diff → approve → commit)copilot attachconnects to the same server; messages typed in the TUI appear in the browser and vice versa--host 0.0.0.0without--authexits with a clear error/without one returns 401copilot webworks fully offline (no calls to github.com beyond what the agent itself makes)bcgrillo commentedon Oct 24, 2026
Hi! I’ve been working on something along these lines and just published it: https://github.com/bcgrillo/copilot-web
It’s a small, self-hosted web UI for copilot --acp, pretty much following the wrapper approach discussed above. It already handles sessions, streaming chat, tool calls, slash commands, and permission prompts in the browser. Sessions and history stay with the CLI (no separate database).
Still an early beta! File edit/diff rendering and authentication are on the roadmap, so for now keep it on localhost or behind an authenticated reverse proxy.
Not meant to replace a first-party copilot web, just sharing in case it’s useful to anyone here. Would love to hear what works, what breaks, and what’s missing!