Copilot Web — a minimal, self-hosted web interface for the
GitHub Copilot CLI, over ACP.
Copilot Web is a minimal, self-hosted web interface for the
GitHub Copilot CLI. It talks to the
Copilot CLI over ACP (the Agent Client
Protocol behind
copilot --acp),
keeping sessions, context and permissions where they live: in the CLI process.
Not affiliated — this is an unofficial community project. It is not affiliated with, endorsed by, or sponsored by GitHub, Microsoft or OpenAI. “GitHub Copilot” is a trademark of GitHub, Inc.
This is a beta: expect rough edges and breaking changes between releases. Feedback is very welcome — please open an issue with what worked, what didn't, and your platform.
- Session manager — list, create, rename and delete sessions straight from
the CLI (
session/list,/session new|rename|delete). No local database. - Chat window — streaming replies, agent reasoning, tool call chips,
attach files,
/slashcommands, cancel a running turn. - Permissions in the browser — when the CLI asks permission, a card appears in the chat; allow or deny without touching the terminal.
- Ask-me helper (MCP) — the web registers a small MCP tool (
ask_user) with the daemon: when the agent needs a decision mid-turn, a question card appears in the chat and the running turn waits for your answer (5 min timeout). - System notifications (opt-in) — with the tab in the background, finished turns raise a browser notification, an unread counter in the title and a favicon dot.
- Zero materialized data —
copilotACP is the only source of truth. The web keeps a small in-memory cache that is discarded on restart; the CLI history is replayed from ACP (session/load). Nothing is written to disk. - EN/ES interface — English by default with Spanish auto-detected (browser language);
operators can pin it at startup with
--lang es. - Login + bearer auth — password-protected UI with short-lived access tokens and single-use rotating refresh tokens (see Authentication below).
- Node.js >= 20
- A POSIX-ish shell (Linux, macOS, WSL)
copilotCLI installed and authenticated (copilotinPATH,--acpsupported — tested against1.0.80)
No clone needed — run the latest release installer (self-contained: it downloads the release tarball by itself):
curl -fsSL https://github.com/bcgrillo/copilot-web/releases/latest/download/install.sh -o install.sh
sh install.sh
# → http://localhost:3100Or from a checkout:
git clone https://github.com/bcgrillo/copilot-web.git copilot-web
cd copilot-web
sh scripts/install.sh # installs deps, builds and starts
# → http://localhost:3100Either way, install.sh installs dependencies, builds the app and starts the
single launcher, which brings up both the ACP daemon (copilot --acp, port
3222) and the web server (port 3100).
If a daemon from a previous run is still up, the launcher reuses it instead of spawning a second one.
Environment: the daemon is spawned with a minimal, sanitized environment — the
Copilot provider credentials and model come from copilot-web/.env.local
(COPILOT_PROVIDER_* / COPILOT_MODEL). If your shell exports those variables
there is nothing to do; otherwise write them once in .env.local.
The installer symlinks the launcher into ~/.local/bin/copilot-web, so the
commands below work from any directory. Alternatives: npm i -g . installs the
command globally, or run it from a checkout with
node copilot-web/bin/copilot-web.mjs.
| Option | Default | Description |
|---|---|---|
--port <n> |
3100 |
Web server port |
--acp-port <n> |
3222 |
ACP daemon port |
--cwd <dir> |
current dir | Working directory for sessions |
--copilot-args <s> |
(none) | Extra args passed to copilot --acp |
--lang <en|es> |
browser | UI language (defaults to the browser's; persisted choice removed — --lang pins it) |
--model <id> |
auto | Model for copilot --acp (only applies when the launcher spawns a fresh daemon); shown in the status bar |
--build |
off | Run next build before starting |
--no-daemon |
off | Expect a running daemon, do not spawn it |
--no-helper |
off | Do not register the web ask_user MCP helper with the daemon (helper applies to freshly spawned daemons; reuse prints a warning) |
--no-auth |
off | Run this server instance with authentication disabled (default: auth ON) |
--add-user <u> [--password <pw>] |
— | Create a UI user (password prompted if omitted); weak passwords get a warning, not a block |
--set-password <u> [--password <pw>] |
— | Change a user's password (revokes its sessions) |
--del-user <u> |
— | Remove a user (and revoke its sessions) |
--list-users |
— | List usernames (credentials are never shown) |
--revoke <u> / --revoke-all |
— | Revoke one user's / every user's tokens immediately |
--helper-token |
— | Print the MCP helper internal token (for COPILOT_WEB_TOKEN) |
By default no extra flags are passed: copilot --acp asks for permission
over ACP on restricted tools, and the web shows an allow/deny card for each
request. The special value --copilot-args "allow-all" is translated to
--allow-all-tools --allow-all-urls --allow-all-paths (no permission prompts).
Pass your own flags to restrict the agent further.
Authentication is enabled by default; the server refuses to start with
zero configured users (use --no-auth to opt out of auth for a specific
instance, e.g. a throwaway container):
copilot-web --add-user admin --password s3cret # user stored scrypt-hashed
copilot-web # auth on, login screen shown
copilot-web --no-auth # auth off for this instance- The UI shows a login screen; the browser then calls every endpoint with an
Authorization: Bearer <access>header. - Login issues a short-lived access token (15 min) plus a single-use refresh token (90 days, rotated on every refresh; refreshing with an already-used refresh token revokes the rotated chain — detection of reuse).
- Passwords are scrypt-hashed with a per-user salt and an HMAC pepper whose
key (
~/.copilot-web/auth.json,chmod 600) is generated on first use. Deleting that file revokes every login. Tokens survive server restarts. --set-password,--revoke,--revoke-alland--del-userinvalidate tokens immediately.- The MCP
ask_userhelper authenticates itself with a permanent internal token (injected automatically into the helper config by the launcher). - Endpoints exempt from the bearer guard:
/api/login,/api/auth/state,/api/auth/refreshand/api/openapi(the API docs).
The same build can run as one server, a backend-only API, or a frontend-only
UI — pick with APP_MODE:
| Env | Default | Applies to | Description |
|---|---|---|---|
APP_MODE |
all |
server | all = UI + API (self-host monolith) · api = backend container (UI answers 404) · front = pure frontend (/api/* answers 404) |
CORS_ALLOW_ORIGIN |
(none) | server | Cross-origin access to /api/* from a separate front: one exact origin, comma-separated list, or *. Unset = no CORS headers (same-origin only, e.g. behind the proxy) |
NEXT_PUBLIC_API_URL |
(empty) | build time | Absolute backend URL for a separate frontend, e.g. http://localhost:3100 |
The backend documents the whole surface as OpenAPI 3.1: GET /api/openapi
(served by the server itself, works in api mode — any UI or fork can
consume the contract without reading the source).
browser ⇄ Next.js web server (:3100) ⇄ copilot --acp daemon (:3222) ⇄ GitHub Copilot
Deploying under a URL path prefix (e.g. behind a proxy that strips a public
path) instead of / is supported via ASSET_PREFIX +
NEXT_PUBLIC_BASE_PATH — see
docs/base-path-deployment.md. It becomes a
plain --base-path launcher flag in a future release.
One ACP session per web session; switching sessions in the sidebar switches
ACP sessions transparently (agent sessions live in the daemon process and are
replayable with session/load while it is up). The status bar under the
composer shows the session working directory, the git branch (polled, it can
change while you work) and the model when it was pinned via --model.
Everything runs on localhost against your own Copilot subscription. The web does not store, export or phone home with your chats; the only persisted state is what the Copilot CLI itself already manages.
- Message timestamps and agent thoughts come from the live stream only (ACP
session/loaddoes not replay them yet); after a web server restart these details disappear, the transcript itself is fully replayed. - The dashboard is only one session deep in the CLI (
/session rename) and errors from the CLI surface verbatim.
Planned work (official beta = the v0.1.x series):
- Session search — filter sessions by title from the sidebar.
- Queued user messages — keep typing while a turn is running: new messages are queued and interleaved into the ongoing conversation, like the Copilot CLI.
- Shell
allow_alwaysmemory — remember approved shell command prefixes for the session instead of asking again per exact command. - File edit/creation rendering — show file creation and edits like the Copilot CLI does (content previews and unified diffs).
GPL-3.0
