Real-time agent updates
SSE delivers thinking chunks, message streams, tool calls, and hook events as they happen. Reconnect with exponential backoff if the tab sleeps.
Run grok --web and drive Grok Build from a local chat UI — no TUI, no npm install, no build step.
How it works
A thin Node bridge spawns grok agent stdio and translates browser HTTP + Server-Sent Events into the Agent Client Protocol — the JSON-RPC surface Zed, Claude Code, and Codex already speak.
# Data flow browser ──POST /prompt──▶ server.mjs ──stdin──▶ grok agent stdio browser ◀──SSE /stream── server.mjs ◀──stdout── grok agent stdio
Features
Streaming responses, tool cards, permissions, and project management — in one local web UI built for long sessions.
SSE delivers thinking chunks, message streams, tool calls, and hook events as they happen. Reconnect with exponential backoff if the tab sleeps.
Terminal output with ANSI colors, diffs, todos, browser actions, scheduler routines, and nested subagent disclosures — each with a purpose-built renderer.
Sessions grouped by workspace. Switch projects from the topbar, resume recent sessions, or start fresh — each browser tab keeps its own isolated session.
Attach text files as fenced code blocks, use browser speech input, slash-command autocomplete, model picker, and headless one-shot modes for check and best-of-N runs.
Manual or auto-approve tool permissions. Settings panel respawns the agent with new launch flags — effort, sandbox, model, allow/deny rules, and more.
Quick start
Install the grok CLI (Node 24+), then run grok login so the agent can reach your account.
From any workspace directory, run grok --web. The bridge picks a free port and opens your browser.
Prefer the source tree? Clone grok-build-web and start node server.mjs yourself.
# Authenticate (once) $ grok login # From your project — recommended $ grok --web # Alternative: clone and run manually $ git clone https://github.com/AppleLamps/grok-build-web.git $ cd grok-build-web $ node server.mjs
Compatibility
| Browsers | Chrome, Firefox, Safari, Edge (current releases) |
|---|---|
| OS | Windows, macOS, Linux |
| Runtime | Node.js 24+ (native WebSocket / modern stdlib) |
| CLI | grok installed and authenticated |
| Protocol | Agent Client Protocol (ACP) over grok agent stdio |
| Editors | Zed and other ACP-compatible clients use the same agent surface |
Clone grok-build-web, run grok --web, and open the README for configuration details.