§01.07

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.

by published 21 Oct 2026 checked against docs 21 Oct 2026 3 min in Install & set up Markdown

On this page6 sections
  1. 1. Install the Claude Code CLI
  2. 2. Install the JetBrains plugin
  3. 3. Run claude in the integrated terminal
  4. 4. Connect an external terminal with /ide
  5. 5. Show diffs in the IDE
  6. If it fails

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 or Windows.

2. Install the JetBrains plugin

Open Settings → Plugins, search the Marketplace for Claude Code [Beta], install it, and restart the IDE.

3. Run claude in the integrated terminal

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

/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

/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 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.
  • Edits touch IDE config files: in acceptEdits mode Claude can modify auto-run IDE files, so prefer Manual mode and tighten permissions.

This plugin is the JetBrains sibling of the VS Code extension and shares the same ~/.claude setup.

Source: Claude Code in JetBrains IDEs.

← All Install & set up plates · Search all guides

↑↓ move↵ openalt+↵ copy first command

Keyboard

⌘/ctrl+K or /
Search all guides
alt+↵
In search: copy the guide's first command
j / k
Move through a list of guides
c
On a guide: copy its first command
t
Toggle light / dark
?
This list