#### Integrations

# JetBrains

Use the Grok Build agent in IntelliJ IDEA, PyCharm, WebStorm, and other JetBrains IDEs through the [Agent Client Protocol](https://agentclientprotocol.com/) (ACP).

ACP lets you stay in your JetBrains IDE while Grok Build handles agent-driven development. You get access to frontier models from Anthropic, Google, and SpaceXSI.

## Prerequisites

* A paid [Grok Build plan](/build/agents-window/models-and-pricing)
* A JetBrains IDE with the [AI Assistant](https://plugins.jetbrains.com/plugin/22282-ai-assistant) plugin enabled (2025.1+)

## Get started

1. **Open the AI Chat plugin**

   Open the AI Chat panel in your JetBrains IDE. You can find it in the right sidebar or through **View** > **Tool Windows** > **AI Chat**.

2. **Install Grok Build from the ACP registry**

   In the AI Chat panel, open the agent provider list and select **Add Agent from Registry**. Search for **Cursor**, the name the registry lists the agent under, and install it.

3. **Authenticate**

   After installing, select Grok Build as your agent provider.

4. **Start coding**

   Send a prompt in the AI Chat panel. The agent reads your project, edits files, runs terminal commands, and creates code directly in your JetBrains IDE.

## What you get

Over ACP, JetBrains IDEs get many of the agent capabilities available in the Agents Window.

* **Model selection**: Choose from [frontier models](/build/agents-window/models-and-pricing) suited to your task. Different models handle different kinds of work better; switch between them as needed.
* **File editing**: The agent reads and writes files in your project, with changes reflected in your JetBrains editor.
* **Terminal commands**: The agent runs shell commands in the IDE's integrated terminal.

## How it works

The integration uses the [Agent Client Protocol](https://agentclientprotocol.com/), an open standard for connecting AI agents to IDEs. Your JetBrains IDE acts as the ACP client, and the Grok Build agent acts as the server.

When you send a prompt, the AI Chat plugin forwards it to the agent through ACP. The agent processes your request, reads your project files, and streams edits and terminal commands back to the IDE.

## Pricing

ACP usage is billed like any other agent usage on your Grok Build plan. See [pricing](/build/agents-window/models-and-pricing) for details.

## Related

[ACP in the Grok Build TUI](/build/cli/headless-scripting#acp) — Run grok agent stdio as an ACP server for any ACP client

[Models](/build/agents-window/models-and-pricing) — Available models and their capabilities
