Claude Code in JetBrains IDEs: Plugin Setup and /ide
The Claude Code plugin for JetBrains IDEs does not bundle the CLI. It connects to claude in the terminal. Setup, settings, WSL, remote dev and security notes.
- In JetBrains IDEs, Claude Code is the claude CLI plus the Claude Code plugin. The plugin does not bundle the CLI, and it shows "Cannot launch Claude Code" when claude is not on your PATH.
- Run claude in the IDE's integrated terminal to turn on diff viewing, selection sharing and diagnostics. From an external terminal, connect with /ide.
- In acceptEdits mode Claude Code may be able to modify IDE configuration files that the IDE runs automatically, so the docs suggest Manual mode for edits.
In IntelliJ IDEA, PyCharm and other JetBrains IDEs, Claude Code is two pieces: the claude CLI and a JetBrains plugin. The plugin does not ship its own copy of the CLI. It runs claude in the IDE’s integrated terminal and connects to it. This guide covers requirements, installation, the two ways to connect, settings, remote development and WSL, troubleshooting, and the security notes in the docs.
On 2026-10-28 our test environment (macOS) reported 2.1.312 (Claude Code) from claude --version. No JetBrains IDE is installed there, so we did not install the plugin or try any of the IDE steps below (not run). Everything about the plugin’s behavior comes from the docs, checked the same day.
Supported IDEs and requirements
The docs say the plugin works with most JetBrains IDEs and name these: IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm and GoLand.
You need two things:
- The Claude Code CLI. When
claudeis not on your PATH, the plugin shows a “Cannot launch Claude Code” notification - The Claude Code plugin from the JetBrains Marketplace, listed there as “Claude Code [Beta]”
Any paid Claude subscription (Pro, Max, Team or Enterprise) or a Claude Console account works, and no API key is required. You are asked to log in the first time you run claude.
Source: https://code.claude.com/docs/en/jetbrains (checked 2026-10-28)
For installing the CLI itself, see getting started with Claude Code.
Installing the plugin
Install the CLI first and confirm it runs:
claude --version
Then install the Claude Code plugin from the JetBrains Marketplace and restart the IDE (not run).
If claude lives somewhere the IDE can’t find, put its full path in the plugin’s Claude command setting, described below.
Using it from the IDE terminal or an external one
The integrated terminal
Run claude in the IDE’s integrated terminal and every integration feature is active. To open it from the editor, press Cmd+Esc on Mac or Ctrl+Esc on Windows and Linux, or click the Claude Code button in the UI.
| Feature | What it does |
|---|---|
| Diff viewing | Opens code changes in the IDE diff viewer instead of the terminal |
| Selection context | Shares the current selection or tab with Claude Code automatically |
| File references | Cmd+Option+K (Mac) or Alt+Ctrl+K (Linux/Windows) inserts a reference such as @src/auth.ts#L1-99 |
| Diagnostics | Claude reads lint and syntax errors from the IDE by calling the getDiagnostics tool. Claude Code does not request them on its own after edits |
An external terminal
If claude is already running in a terminal outside the IDE, type /ide to connect. On success it prints a message like Connected to IntelliJ IDEA. To give Claude the same files as the IDE, start claude from the IDE’s project root.
claude --help on 2.1.312 also lists --ide, described as “Automatically connect to IDE on startup if exactly one valid IDE is available” (we ran --help only, not the flag itself).
Source: https://code.claude.com/docs/en/jetbrains (checked 2026-10-28)
Settings
In Claude Code
Run /config and set Diff tool to auto to show diffs in the IDE, or terminal to keep them in the terminal. The entry appears only while Claude Code is connected to the IDE, so start claude from the JetBrains terminal or run /ide first.
In the plugin
The plugin’s options are under Settings → Tools → Claude Code [Beta]:
- Claude command: the command that starts Claude, such as
claude,/usr/local/bin/claudeornpx @anthropic-ai/claude-code - Suppress notification for when Claude Command is not found: hides the not-found notification
- Enable using Option+Enter for multi-line prompts: macOS only. Option+Enter inserts a new line; requires a terminal restart
- Enable automatic updates: checks for and installs plugin updates, applied on restart
When ESC doesn’t interrupt Claude
If ESC in a JetBrains terminal doesn’t stop Claude Code, open Settings → Tools → Terminal. Either uncheck “Move focus to the editor with Escape”, or click “Configure terminal keybindings” and delete the “Switch focus to Editor” shortcut, then apply.
Source: https://code.claude.com/docs/en/jetbrains (checked 2026-10-28)
Remote development and WSL
With JetBrains Remote Development, install the plugin on the remote host through Settings → Plugin (Host), not on your local client.
On WSL2, if /ide reports “No available IDEs detected”, the cause is usually WSL2’s NAT networking or Windows Firewall blocking traffic between WSL2 and the IDE on the Windows host. WSL1 uses the host network directly and isn’t affected. The recommended fix keeps your networking mode: find your address with hostname -I inside WSL, then allow the WSL2 subnet through the firewall from an Administrator PowerShell. With an address of 172.21.123.45, the subnet is 172.21.0.0/16:
New-NetFirewallRule -DisplayName "Allow WSL2 Internal Traffic" -Direction Inbound -Protocol TCP -Action Allow -RemoteAddress 172.21.0.0/16 -LocalAddress 172.21.0.0/16
Restart both the IDE and Claude Code afterwards. On Windows 11 22H2 or later, the alternative is mirrored networking: add networkingMode=mirrored under [wsl2] in .wslconfig in your Windows user directory, then run wsl --shutdown.
For the plugin’s Claude command on WSL, the docs give wsl -d Ubuntu -- bash -lic "claude", with Ubuntu replaced by your distribution name. We did not run any of this (not run).
Source: https://code.claude.com/docs/en/jetbrains (checked 2026-10-28)
Troubleshooting
| Symptom | What to check |
|---|---|
| Plugin installed but no features | Is claude running from the project root? Is the plugin enabled? Restart the IDE completely, possibly more than once. For Remote Development, is the plugin on the remote host? |
/ide shows “No available IDEs detected” | Is the plugin installed and enabled? Restart the IDE. If you expected an automatic connection, did you launch claude from the integrated terminal? On WSL, see the section above |
| Clicking the Claude icon shows “command not found” | Does claude --version work in a terminal? Set the Claude command path in the plugin settings. On WSL, use the WSL command format |
Source: https://code.claude.com/docs/en/jetbrains (checked 2026-10-28)
Security notes
In acceptEdits mode, Claude Code may be able to modify IDE configuration files that the IDE runs automatically. The docs warn this can bypass Claude Code’s permission prompts for Bash. They suggest Manual mode for edits, since acceptEdits and auto mode both approve edits in the working directory without asking (except in protected paths), using Claude only with trusted prompts, and knowing which files it can modify. For writing permission rules, see Claude Code permissions and settings.json.
While the plugin is active, it runs a local MCP server named ide, hidden from /mcp, and the CLI connects to it automatically. Only one of its tools is visible to the model: mcp__ide__getDiagnostics, which is read-only and covers one file per call. The plugin exposes no code-execution tool. On each prompt, the CLI sends your current selection and the active file’s path as context; a Read deny rule for a file such as .env keeps both out.
The server uses unencrypted ws:// with a per-start auth token stored in ~/.claude/ide/<port>.lock. By default it listens on 127.0.0.1 only. Accept connections from all network interfaces, under Networking (Advanced) in the plugin settings, makes the port reachable from your local network, with traffic and token in cleartext. The docs say to turn it on only when loopback can’t work, and to prefer mirrored networking on WSL2.
Source: https://code.claude.com/docs/en/jetbrains (checked 2026-10-28)
How this differs from VS Code
VS Code has a dedicated extension with its own chat panel. The JetBrains plugin instead connects the IDE to claude running in its terminal, so the terminal Claude Code stays at the center. For the VS Code side, see Claude Code in VS Code.
- Claude Code Setup and Daily Operations: where config files, instructions, daily commands and IDE setup live.
Summary
- Install both the
claudeCLI and the Claude Code plugin. The plugin does not bundle the CLI. - Running
claudein the integrated terminal turns on the integration; from an external terminal, use/ide. /config→ Diff tool picks where diffs appear; the plugin’s Claude command picks what gets launched.- If ESC doesn’t interrupt Claude, uncheck “Move focus to the editor with Escape”.
- For Remote Development, install the plugin on the host. On WSL2, fix detection with a firewall rule or mirrored networking.
acceptEditscan let Claude touch IDE config files; review edits in Manual mode.
FAQ
- Does the JetBrains plugin include the Claude Code CLI?
- No. The plugin runs the claude command in the IDE's integrated terminal and connects to it, so you install the CLI and the plugin separately. If claude is not on your PATH, the plugin shows a "Cannot launch Claude Code" notification.
- Which JetBrains IDEs does Claude Code support?
- The docs say the plugin works with most JetBrains IDEs, and name IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm and GoLand.
- How do I connect Claude Code from a terminal outside the IDE?
- Start claude and run /ide. On success it prints a message like "Connected to IntelliJ IDEA." Start claude from the IDE project root if you want it to see the same files.
- Why doesn't ESC stop Claude Code in the JetBrains terminal?
- The terminal moves focus to the editor on Escape by default. Under Settings, Tools, Terminal, uncheck "Move focus to the editor with Escape" or delete the "Switch focus to Editor" shortcut.
- What should I check when /ide says "No available IDEs detected" on WSL2?
- The usual cause is WSL2's NAT networking or Windows Firewall. The docs recommend a firewall rule that allows traffic from the WSL2 subnet; on Windows 11 22H2 or later you can switch WSL2 to mirrored networking instead.