Grok Build: Not signed in. To authenticate without a browser, run:
Grok Build has no saved login and no XAI_API_KEY, and it's running where it can't open a browser to sign in, such as print mode, SSH sessions or containers. The exact message, why Grok Build prints it, and the fix.
Updated November 23, 2026 · Checked against Grok Build 1.0.x (2026)., reproduced in EnvHaven 1.9.0
The message
Not signed in. To authenticate without a browser, run:
What it means
Grok Build has no saved login and no XAI_API_KEY, and it’s running where it can’t open a browser to sign in, such as print mode, SSH sessions or containers.
Fix
- Run the device-code login the message prints (
grok login --device-code; the docs list device-code sign-in asgrok login --device-auth) and finish signing in on another device. - Or set XAI_API_KEY, which the docs recommend for CI and scripts.
- Or run
grok loginon a machine with a browser.
In an EnvHaven workspace
Yes, until Grok Build is signed in once. Sign in once from the workspace’s Launch menu (Sign in, or Set key for an API key); the sign-in stays on the workspace, across restarts and on every device.
Where this comes from
This message was produced by Grok Build (Grok Build 1.0.x (2026).) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.