Grok Build¶
Run Grok Build locally in T3 Code through the bundled Cursor SDK.
Prerequisites and sign-in¶
- Node.js 22.13+ on the environment's machine.
- A paid Grok Build plan via browser sign-in or
CURSOR_API_KEY. - Open Settings → Providers → Grok Build and choose Sign in (works on remote environments and configured mobile instances too).
Each Grok Build instance keeps its own login separate from the desktop app and CLI. A configured CURSOR_API_KEY overrides browser sign-in. Change account or Sign out stops running threads for that instance while keeping history (to revoke a key early, delete it in your account dashboard).
Upgrading¶
Existing Cursor SDK threads, provider settings, and sign-in carry over. If you configure T3 Code with provider IDs, Grok Build still uses cursor. The SDK still uses CURSOR_API_KEY and the CLI still accepts agent commands.
Threads from the retired Grok Build ACP integration remain readable in T3 Code. To continue work, choose Grok Build or another provider. T3 Code can carry conversation context forward, while the new provider starts its own session. Set up Grok Build sign-in if you previously used the Grok CLI or XAI_API_KEY with the ACP integration.
Capabilities and limits¶
- Supports streaming text, reasoning, tool activity, plans, image attachments, mid-turn text steering (steers with attachments or mode changes restart the run), and Edit from here / checkpoint rewind (rewinding to the first message starts a fresh session).
- Subagents:
tasksubagents appear as read-only child threads; message the parent thread to interact. - Forking: Uses a portable handoff into a fresh Grok Build session.
- Cloud agents: Not yet supported—runs operate locally in your T3 Code workspace.
- Permissions: Full access disables the SDK's sandbox; restricted modes enable it. On Windows, the Cursor SDK has no filesystem sandbox, so Auto and Supervised run without filesystem isolation when the SDK's Auto-review is enabled, while Auto-accept edits cannot start on Windows.
MCP servers and plugins¶
The SDK loads MCP servers and plugins from ~/.cursor/mcp.json, ~/.cursor/plugins, and (in Full access only) the project's .cursor/mcp.json.
Grok Build sign-in in T3 Code does not need a CLI. Only an OAuth MCP server needs one extra step: install the Cursor Agent CLI, add the server to an mcp.json above, then log in from the project root before starting a session. <server> is the server's name in mcp.json:
The Grok CLI also installs a command named agent, which has no mcp login. If both are installed, run which -a agent and call the Cursor Agent CLI by its full path (the installer puts it in ~/.local/bin), for example ~/.local/bin/agent mcp login <server>.
After adding or changing skills, plugins, or MCP logins, run Restart agent session from the command palette.
Markdown source: View on AtomGit·Content from the open-source project t3/t3code