How to Use Claude Code in JetBrains IDEs — Complete Setup Guide

You live in IntelliJ, PyCharm, or WebStorm. The terminal works fine, but you’d rather have Claude Code right there in your IDE — same way you have your debugger, your git tools, and your database browser. The Claude Code JetBrains plugin does exactly that.

This guide walks you through installation and setup for every supported JetBrains IDE, with workflow tips for getting the most out of the integration.

This is part of our complete Claude Code Beginner’s Guide.


TL;DR

  • Claude Code has an official plugin for JetBrains IDEs including IntelliJ IDEA, PyCharm, WebStorm, GoLand, and more
  • You still need Claude Code installed on your system first — the plugin connects to it
  • Install from the JetBrains Marketplace inside your IDE, or from the JetBrains Marketplace website
  • Same Anthropic account and plan you use for the CLI — no separate subscription needed
  • The plugin gives you a Claude Code panel, inline code actions, and terminal integration inside your IDE

Supported JetBrains IDEs

The Claude Code plugin works with the entire JetBrains family of IDEs. Here’s the full list of supported products:

  • IntelliJ IDEA** (Community and Ultimate) — Java, Kotlin
  • PyCharm** (Community and Professional) — Python
  • WebStorm** — JavaScript, TypeScript, Node.js
  • GoLand** — Go
  • RubyMine** — Ruby
  • CLion** — C/C++, Rust
  • Rider** — .NET, C#
  • DataGrip** — Database tools
  • PhpStorm** — PHP
  • Android Studio** — Android (built on IntelliJ)

If you use any of these, the setup process is identical. The steps below work for all of them.


Before You Start

The plugin connects to Claude Code — it doesn’t install Claude Code itself. Make sure you have:

1. Claude Code installed on your system. If not, install it first:

2. A paid Anthropic account. Pro plan ($20/month) minimum. Same account as the CLI.

3. Your JetBrains IDE at a recent version. The plugin requires IDE version 2024.1 or later. Check via Help → About in your IDE.


Step 1: Install the Plugin

Method A: From inside your IDE (recommended)

Open your JetBrains IDE and go to:

Mac: IntelliJ IDEA → Settings → Plugins (or the equivalent for your IDE name)

Windows/Linux: File → Settings → Plugins

JetBrains IDE Settings window open to the Plugins section with the Marketplace tab selected

Click the Marketplace tab at the top of the Plugins window. In the search box, type:


Claude Code

Look for the plugin published by Anthropic. The publisher name appears below the plugin title in the search results. Click Install.

JetBrains Marketplace search results showing the Claude Code plugin by Anthropic with an Install button

After installation, click Restart IDE when prompted. Your IDE will close and reopen with the plugin active.

⚠️ Warning: The JetBrains Marketplace contains third-party AI plugins with similar names. Confirm the publisher is Anthropic before installing.

Method B: From the JetBrains Marketplace website

If you prefer, you can install directly from plugins.jetbrains.com. Search for “Claude Code”, find the Anthropic plugin, and click Install to IDE. Your browser will prompt you to open JetBrains Toolbox or your IDE directly to complete the install.


Step 2: Open the Claude Code Tool Window

After restarting, look for the Claude Code tool window. In most JetBrains IDEs, new tool windows appear as buttons along the bottom or right edge of the IDE.

Click Claude Code to open the panel. You can also access it via:

View → Tool Windows → Claude Code

JetBrains IDE with the Claude Code tool window open on the right side showing a chat input and project context


Step 3: Connect Your Account

The first time you open the Claude Code panel, it checks for an existing Claude Code authentication on your system. If you’ve already used Claude Code via the CLI with the same machine, it will detect your credentials automatically and connect without requiring a separate login.

If you see a Sign In button:

  1. Click Sign In
  2. A browser window opens to Anthropic’s authorization page
  3. Log in with your Anthropic account
  4. Click Authorize in the browser
  5. Return to your IDE — the panel refreshes and shows the Claude Code interface

Browser showing the Anthropic authorization page for the JetBrains plugin asking the user to approve access

Once connected, you’ll see the Claude Code chat input at the bottom of the panel and your project name shown at the top.


Step 4: Verify the Connection

Type a quick test message in the panel:


What files are in this project?

Claude Code should respond with a summary of your project structure. If it does, the plugin is connected and working correctly.


Step 5: Use Inline Code Actions

The plugin’s most convenient feature is inline code actions — the ability to work with Claude Code without leaving your editor.

To use inline actions:

  1. Select any block of code in your editor
  2. Look for the lightbulb icon that appears near the selection (or use Alt+Enter on Windows/Linux, Option+Enter on Mac)
  3. A context menu appears with Claude Code options

Available inline actions typically include:

  • Explain this code** — get a plain-English explanation in the panel
  • Fix this code** — Claude Code diagnoses and proposes a fix
  • Add tests** — generates unit tests for the selected code
  • Refactor** — suggests and applies a refactoring
  • Add documentation** — writes docstrings or comments

JetBrains editor with code selected and the Alt+Enter context menu open showing Claude Code inline action options

💡 Pro Tip: In IntelliJ and PyCharm, you can also right-click selected code and find the Claude Code submenu. Some developers find this faster than the lightbulb menu.


Step 6: Use the Built-in Terminal for Full Sessions

The plugin panel is excellent for targeted questions and inline actions. For longer tasks — refactors across multiple files, feature additions, debugging sessions — running Claude Code in the IDE’s built-in terminal gives you more visibility and control.

Open the terminal inside your JetBrains IDE:

View → Tool Windows → Terminal

Or press Alt+F12 (Windows/Linux) or Option+F12 (Mac).

In the terminal, navigate to your project root if needed and run:


# Start a full Claude Code CLI session inside your JetBrains terminal
claude

Now you have both active simultaneously:

  • The plugin panel for quick inline actions and questions
  • The terminal session for full multi-file agentic tasks

They both use the same Claude Code installation and account. Switch between them based on what the task needs.

JetBrains IDE with the Claude Code panel on the right and the built-in terminal open at the bottom, both running Claude Code simultaneously


Step 7: Configure the Plugin (Optional)

Open plugin settings via:

Mac: IntelliJ IDEA → Settings → Tools → Claude Code

Windows/Linux: File → Settings → Tools → Claude Code

Useful options:

Claude Code executable path — If claude doctor shows the CLI is installed but the plugin can’t find it, set the full path here. Run which claude (Mac/Linux) or where claude (Windows) in your terminal to find the path.

Auto-open panel on project load — Opens the Claude Code panel automatically when you open a project. Good if you use it constantly; disable it if you prefer a cleaner default layout.

Inline suggestions — Toggles Claude Code hints that appear as you type in the editor. Some developers love them; others find them distracting. Personal preference.


JetBrains-Specific Workflow Tips

Use the Project tool window alongside Claude Code

JetBrains IDEs have a Project panel (usually on the left) that shows your file tree. Keep it open while working with Claude Code — when Claude Code describes which files it’s editing, you can click them in the Project panel to open and review the changes in the editor.

Leverage JetBrains’ built-in diff viewer

When Claude Code makes changes to files, JetBrains shows them with its built-in diff viewer (the same one used for git diffs). This is one of the nicest things about the JetBrains integration — you get a proper side-by-side diff with syntax highlighting for every change Claude Code makes, making review faster than in a plain terminal.

Use Local History as a safety net

JetBrains IDEs have a Local History feature that automatically saves snapshots of every file as you work — even without git. It’s at File → Local History → Show History. Before a Claude Code session where you’re doing significant refactoring, this gives you an extra safety net on top of git.

Python users: point Claude Code to your virtualenv

If you’re using PyCharm with a virtualenv (a Python virtual environment — an isolated folder containing a specific Python version and packages), make sure Claude Code knows about it. At the start of a session, tell it:


I'm using a virtualenv at ./venv — use that Python when running scripts

This ensures Claude Code runs your code against the right Python version and has access to your installed packages.


Common Problems and Fixes

“Claude Code executable not found”

The plugin can’t locate the claude binary. Verify it’s installed:


# Confirm Claude Code is installed and print the path
which claude

Copy the full path from the output. In your IDE, go to Settings → Tools → Claude Code and paste the path into the “Claude Code executable path” field.

Plugin installed but no Claude Code panel appears

Restart the IDE fully (not just reload). If the panel still doesn’t appear, go to View → Tool Windows and check if Claude Code is listed there — it may just be collapsed or hidden.

Login works in browser but IDE still shows “Not authenticated”

Try logging out of Claude Code completely and back in:


# Log out and back in via the CLI
claude auth logout
claude auth login

After re-authenticating in the browser, restart your IDE. The plugin picks up the new auth state on launch.

Plugin is slow or the panel hangs

This usually happens when Claude Code is processing a large codebase and the panel is waiting for a response. Check the terminal (if you have a CLI session running) to see if Claude Code is actively working. If it seems stuck, press Ctrl+C in the terminal to cancel the current operation, then try the task again in smaller steps.

“Version mismatch” warning in the panel

Your Claude Code CLI is out of date. Update it:


# Update Claude Code to the latest version
claude update

Then restart your IDE. For more options, see How to Update Claude Code.


Key Takeaways

  • The Claude Code JetBrains plugin works with IntelliJ IDEA, PyCharm, WebStorm, GoLand, and the entire JetBrains family
  • Install from Settings → Plugins → Marketplace and look for the Anthropic publisher
  • The plugin connects to your existing Claude Code installation — same account, no separate subscription
  • Inline code actions** (Alt+Enter / Option+Enter) let you work with Claude Code without leaving your editor
  • Use the plugin panel for quick tasks and the built-in terminal for longer sessions
  • JetBrains’ native diff viewer and Local History make reviewing Claude Code’s changes safer and easier

Next Steps

Return to the Claude Code Beginner’s Guide for the full learning path.