# Use Claude Code in JetBrains IDEs

> Install the Claude Code [Beta] plugin from the JetBrains Marketplace, run claude in the IDE terminal, and connect external sessions with /ide.

- Canonical: https://guides-ai.com/guides/claude-code-jetbrains/
- Plate 01.07 · Topic: Install & set up (https://guides-ai.com/topics/setup/)
- Published: 21 Oct 2026 · 3 min read
- Source site: guides-ai — https://guides-ai.com/

Claude Code runs inside JetBrains IDEs through a dedicated plugin that wraps the `claude` CLI in
the IDE's integrated terminal. The plugin doesn't bundle its own CLI copy, so install both. It
supports IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm, GoLand, and most other
JetBrains IDEs.

## 1. Install the Claude Code CLI

Install the CLI first — the plugin shows a "Cannot launch Claude Code" notice when `claude`
isn't on your PATH. See [macOS and Linux](/guides/install-claude-code-macos-linux/) or
[Windows](/guides/install-claude-code-windows/).

## 2. Install the JetBrains plugin

Open **Settings → Plugins**, search the Marketplace for
[Claude Code [Beta]](https://plugins.jetbrains.com/plugin/27310-claude-code-beta-), install it,
and restart the IDE.

## 3. Run claude in the integrated terminal

```bash
claude
```

What it does: run from the IDE's built-in terminal, every feature turns on automatically —
`Cmd+Esc` / `Ctrl+Esc` quick launch, changes in the IDE diff viewer, your selection shared as
context, and `Cmd+Option+K` / `Alt+Ctrl+K` to insert a `@src/auth.ts#L1-99` reference.

## 4. Connect an external terminal with /ide

```text
/ide
```

What it does: links a `claude` session running outside the IDE to your open JetBrains window,
confirming with a line like `Connected to IntelliJ IDEA.`. If the IDE has no plugin yet, `/ide`
installs it and asks you to restart.

## 5. Show diffs in the IDE

```text
/config
```

What it does: set **Diff tool** to `auto` to open changes in the IDE diff viewer, or `terminal`
to keep them inline. The entry appears only while connected. Claude also reads the IDE's
inspection diagnostics through a built-in `ide` [MCP](/glossary/#mcp) server.

## If it fails

- **"Cannot launch Claude Code" or "command not found":** `claude` isn't on the IDE's PATH. Run
  `claude --version` in a terminal, then set the full path under **Settings → Tools → Claude
  Code [Beta] → Claude command**.
- **`/ide` says "No available IDEs detected":** the plugin is disabled or the IDE needs a full
  restart, and `claude` must be launched from the project root. On WSL2 it's usually NAT or
  firewall blocking — see [Claude Code on WSL](/guides/claude-code-wsl-windows/).
- **Edits touch IDE config files:** in `acceptEdits` mode Claude can modify auto-run IDE files,
  so prefer Manual mode and tighten [permissions](/guides/claude-code-permissions/).

This plugin is the JetBrains sibling of the
[VS Code extension](/guides/claude-code-vscode-extension/) and shares the same `~/.claude` setup.

Source: [Claude Code in JetBrains IDEs](https://code.claude.com/docs/en/jetbrains).
