How it connects to OpenUI
The maintained local harness talks to Grok Build through its official Agent Client Protocol stdio mode, injects the generated OpenUI rules, and maps reasoning, text, tools, and interactions into AG-UI events for AgentInterface. As shipped, it is an unauthenticated single-user harness and needs authentication, sandboxing, and a stricter permission policy before networked deployment.
Integration steps
- 1
Install and sign in to Grok Build
Put the grok CLI on your PATH and run grok login. In non-interactive environments, set XAI_API_KEY instead.
- 2
Start the harness on a workspace
Launch the example with the project directory Grok Build should work in. It runs one grok agent stdio process and opens a separate ACP session for each OpenUI thread, with the OpenUI prompt added as session rules.
- 3
Answer questions and approve plans in the browser
Grok's clarifying questions and plan approvals appear as browser dialogs, and your answers go back over ACP so the same turn can continue.
