# Engine: Grok Build

xAI's coding agent, **beta**. Harness runs Grok Build as it is; what differs from Claude Code is listed in the
box **What changes with Grok Build** (Settings -> Engine -> Grok Build). See [Engines](engines.md) for what is common to
every engine.

## Sign-in and providers

A key: **OpenRouter**'s, or **xAI API**'s own (models named `xai/<model>`, at its own prices). Put it in
Settings -> Keys, then choose it in Settings -> Providers. Signing in with a SuperGrok or X Premium+
subscription is not supported yet. **Install** in its panel downloads
the version Harness was tested with (about 200 MB, with Node.js on the server for the download only); its data stays
in Harness's own folder.

## Models

`provider/model`: xAI's models of the provider's catalogue are listed (`openrouter/x-ai/grok-4.3` by default), and any
other model of the provider can be picked as a favourite. A model Grok Build does not know is refused before the
message is sent (it would answer with another one). No effort levels.

## What works

Conversation, tools, files and the Changes view, memory, skills, MCP servers, steer, agents, the Sandbox mode of a
topic, sandboxed agents, the small calls.

## How Harness adapts it

- **Memory**: the folder's CLAUDE.md, its imports and the levels above are given as its instructions. Each session has
  its own Grok folder, so two sessions never share instructions.
- **Rules**: Grok Build runs without asking (its flag "always approve"), and its rules are not ones Harness relies on, so rules hold
  **inside the Sandbox only** (see [Engines](engines.md)): there, Harness's sandbox goes around the whole of it.
  Outside it, a session runs with full access and a note says so once per session.
- **MCP servers**: those of Settings -> MCP and Harness's own are given to it at the start of each message. Grok
  Build lets the model find their tools with a search of its own first.
- **Off**: its sub-agents, workflows, memory and picture tools, its self-update, its telemetry. Its own scheduled
  tasks stop with the message: use Harness's scheduled jobs.

## Limits

- **Estimated cost**: Grok Build says the tokens of a turn, not dollars. Harness prices them at the list prices of
  the provider's catalogue; a model without a list price shows no cost, and a budget is then refused.
- Each new session carries about 15,000 tokens of Grok Build's own instructions: a short message costs more than
  with other engines.
- **No thinking shown.** A session goes on only from the folder it was started in.
- Refused with the reason, never run on another engine: plan mode, the Ask me mode and an agent's approvals, Add to
  task, side questions, an agent's own rules. Pictures attached to a message are given as file paths. It cannot ask
  you questions in the middle of a turn.

## From a terminal

```
maxxing engines install grok
maxxing engines provider openrouter OPENROUTER_API_KEY
maxxing engines use grok
maxxing engines model grok openrouter/x-ai/grok-4.3
```
