Skip to content

AI tool comparisons

Menu

Home / AI coding tools / How to Use Claude in PyCharm (2026): 3 Ways, Step by Step

How to Use Claude in PyCharm (2026): 3 Ways, Step by Step

AltAI is an independent publisher. Links to vendor sites open in a new tab. See our disclosure for how we work.

Contents
  1. How to use Claude in PyCharm: Route → Install → Connect → Verify
  2. Phase 1 - Route: pick your way
  3. Phase 2 - Install
  4. Phase 3 - Connect
  5. Phase 4 - Verify it worked
  6. Still not connecting? The Detection Ladder
  7. What we verified, and what we ran
  8. Why it breaks: what 13 community reports show
  9. Now that it works
  10. FAQ

Claude not showing up in PyCharm? Two different products share the Claude name there, and mixing them up leads to sign-in errors.

How to use Claude in PyCharm: install Claude Code and run claude in the integrated terminal, or activate Claude Agent in the AI Chat tool window if you pay through JetBrains AI or an Anthropic API key.

Quick answer

  • You need: a Claude Pro, Max, Team or Enterprise plan, or a Claude Console account, for Claude Code. For Claude Agent: a JetBrains AI subscription, an Anthropic API key or Anthropic Console. On free PyCharm, the API-key route works without a JetBrains subscription; see free AI in PyCharm.
  • Confirm it worked: claude --version, then /ide.

Scope (as of October 2026): PyCharm 2026.2, JetBrains AI Assistant 2026.2, Claude Code CLI 2.1.301 on macOS, Linux, Windows and WSL2.

How to use Claude in PyCharm: Route → Install → Connect → Verify

This guide follows one sequence: Route → Install → Connect → Verify.

Route → Install → Connect → Verify
1

Route

Pick your way

2

Install

CLI or AI Assistant

3

Connect

Log in, link IDE

4

Verify

Confirm it worked

Verify with:claude --version/ideAgent Authorization

Pick your way first and confirm it worked last: four phases, always in this order.

Steps checked against JetBrains AI Assistant 2026.2 Help and Anthropic Claude Code docs, 16 Oct 2026.

Phase 1 - Route: pick your way

Match the way to the login you already pay for. According to JetBrains (2026), Claude Agent is not related to the Claude Code [Beta] plugin. Way 2 works alone; only way 3 adds the IDE diff viewer, shared selection and file-reference shortcuts. For other assistants, see every AI option in PyCharm.

WayWhere it runsLogins that workDoes not work
1. Claude AgentAI Chat tool windowJetBrains AI subscription, Anthropic API key, Anthropic Consoleclaude.ai login (provider-account OAuth)
2. Claude Code CLIPyCharm terminalClaude Pro, Max, Team, Enterprise or Console; no API key neededn/a
3. CLI + Claude Code [Beta] pluginTerminal plus IDE diffsSame as way 2Plugin has no bundled CLI

Not sure? Use the picker.

Which Claude route in PyCharm?

Answer three questions. The route updates as you click.

How do you log in?
Where do you want Claude?
Which system?

Figures as of October 2026. Sources: JetBrains AI Assistant 2026.2 Help; Anthropic Claude Code docs.

If you are also weighing JetBrains’ own agent, Junie vs Claude Code covers that choice.

Phase 2 - Install

Way 1: Claude Agent

AI Assistant needs IDE 2023.3 or later; Community Edition IDEs need 2024.1.1 and PyCharm Unified needs 2025.1 (JetBrains, 2026). The plugin is not bundled. JetBrains’ docs do not confirm Claude Agent on Community, so check AI Chat after installing.

  1. Open Settings | Plugins | Marketplace.
  2. Search AI Assistant and click Install.
  3. Open the AI Chat tool window and select Claude Agent.
  4. Send any message to trigger activation.
  5. Click Install and Continue to accept the terms and install the agent.

If the plugin is missing, click Install Plugin in AI Chat.

Ways 2 and 3: Claude Code

On native Windows, install Git for Windows first (recommended). Then run the command for your system:

Install Claude Code · pick one command for your system
bash · macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash
powershell · Windows PowerShell
irm https://claude.ai/install.ps1 | iex
cmd · Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
bash · Homebrew
brew install --cask claude-code
powershell · WinGet
winget install Anthropic.ClaudeCode
Each Copy button copies one command. Run the PowerShell command in PowerShell and the CMD command in CMD. Native installer commands as of 16 Oct 2026 (Anthropic).

If you see The token '&&' is not a valid statement separator, you pasted the CMD command into PowerShell.

  1. Open a new terminal.
  2. Run claude --version. A working install prints a version and (Claude Code).
  3. For way 3 only, open Settings | Plugins | Marketplace, search Claude Code, and install Claude Code [Beta].
  4. Restart PyCharm completely. Some setups need several restarts.

If Claude Code later reports a usage limit, see the Claude Code weekly limit fix.

Phase 3 - Connect

Way 1: sign in Claude Agent

  1. In the Choose authentication method prompt, pick JetBrains (personal) or Organization, API Key, or Anthropic Console.
  2. For API Key, set the provider to Anthropic under Third-party AI providers, paste the key into API Key, click Test Connection, then OK.
  3. For Anthropic Console, log in to your Anthropic account.

Claude Agent reads CLAUDE.md in the project root. It ignores .aiignore, so listed files can still be processed. To give it MCP tools, enable Pass custom MCP servers under Tools | AI Assistant | Agents. For credit costs on the JetBrains route, see JetBrains AI pricing.

Ways 2 and 3: start Claude Code

  1. Open the PyCharm terminal at the project root.
  2. Run claude and complete the browser login on first use.
  3. Way 3: run claude in the integrated terminal and all integration features are active. From an external terminal, run /ide.
  4. Run /config and set Diff tool to auto for diffs in the IDE viewer, or terminal to keep them as text. It appears only while connected.

Claude Code does not request IDE diagnostics on its own after edits; it reads them only by calling the getDiagnostics tool (Anthropic, 2026). Prefer Manual mode: in acceptEdits mode, Claude may be able to edit IDE configuration files that PyCharm may run automatically.

Phase 4 - Verify it worked

  • Way 1: open Settings | Tools | AI Assistant | Providers & API keys. The Agent Authorization section names the active method.
  • Way 2: claude --version prints a version and (Claude Code).
  • Way 3: /ide names your IDE, for example Connected to IntelliJ IDEA., and PyCharm shows its own name. Selected lines appear in the transcript as ⧉ Selected N lines from <file>.

Still not connecting? The Detection Ladder

Work down the ladder in order.

The Detection Ladder

Start at rung 1 ↓

  1. 1
    claude not found
    Set Claude command path
    Ways 2 - 3
  2. 2
    Plugin features missing
    Project root, restart IDE
    Way 3
  3. 3
    No available IDEs detected
    Firewall rule or mirrored networking
    WSL2 only
  4. 4
    Esc won’t interrupt Claude
    Uncheck Move focus on Escape
    Ways 2 - 3
  5. 5
    Remote Development
    Install plugin on host
    Way 3
  6. 6
    Claude Agent sign-in loop
    Update via ACP registry
    Way 1

Work down from rung 1 and stop at the first rung that matches your symptom.

Fix steps: Anthropic Claude Code docs and JetBrains AI Assistant 2026.2 Help, 16 Oct 2026.

The rungs, in order:

  1. claude not found, or Cannot launch Claude Code. Run claude --version in a fresh terminal. If PyCharm still cannot find it, set the full path under Settings → Tools → Claude Code [Beta] in Claude command, for example /usr/local/bin/claude. On WSL use wsl -d Ubuntu -- bash -lic "claude" with your distro name.
  2. Features missing. Start claude from the project root in the integrated terminal, check the plugin is enabled, and restart PyCharm fully.
  3. No available IDEs detected on WSL2 (Windows only). Allow WSL2 traffic through Windows Firewall, or switch WSL2 to mirrored networking, which at least five commenters in the 13 community reports confirmed. Restart both.
  4. Esc does not interrupt Claude. Under Settings → Tools → Terminal, uncheck Move focus to the editor with Escape.
  5. Remote Development. Install the plugin on the remote host through Settings → Plugin (Host), not on your local client.
  6. Claude Agent sign-in loop. Update Claude Agent through the ACP registry in the IDE, then start a new chat.

For rung 3, run hostname -I in WSL and keep the first two segments plus .0.0/16. Run this in PowerShell as Administrator, adjusting the range (172.21 is an example):

Allow WSL2 traffic through Windows Firewall
powershell · Run as Administrator
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
Run hostname -I in WSL first. Keep the first two segments and add .0.0/16; 172.21 is an example. Then restart PyCharm and Claude Code.

Or add this to .wslconfig in your Windows user folder (Windows 11 22H2 or later), then run wsl --shutdown:

Switch WSL2 to mirrored networking
ini · .wslconfig
[wsl2]
networkingMode=mirrored
Save in your Windows user folder as .wslconfig (Windows 11 22H2 or later), then run wsl --shutdown in PowerShell.

What we verified, and what we ran

On 16 October 2026 we checked every label, path and command above against JetBrains AI Assistant 2026.2 Help and Anthropic’s Claude Code documentation. We also ran the CLI once (n=1, Linux sandbox, via npm rather than the native installer Anthropic recommends).

Our run: 16 Oct 2026 · n=1 · Linux sandbox
bash · our run
npm install -g @anthropic-ai/claude-code
claude --version
2.1.301 (Claude Code)
Output shown in green is what the sandbox printed. We installed with npm, not the native installer Anthropic recommends. PyCharm itself was not run.

The output was 2.1.301 (Claude Code); per the npm registry (16 October 2026), 2.1.292 is stable. We did not run PyCharm itself, so the in-IDE steps are verified against docs, not tested.

Verified today: 16 Oct 2026
Checked in docs

Every step above

  • AI Assistant 2026.2 Help
  • Claude Code docs
  • UI labels and paths
  • Commands and settings
Ran once

n=1 · Linux sandbox

$ npm install -g @anthropic-ai/claude-code
$ claude --version
2.1.301

(Claude Code)

Not run

Inside PyCharm

  • AI Chat steps
  • Plugin steps
  • Docs-verified only
npm registry: latest 2.1.301 · stable 2.1.292

Every step was checked against docs on 16 October 2026; only the CLI install was run, once, outside PyCharm.

Sources: JetBrains AI Assistant 2026.2 Help; Anthropic Claude Code docs; npm registry, 16 Oct 2026.

Why it breaks: what 13 community reports show

Across 13 community reports on Claude in JetBrains IDEs (GitHub and JetBrains forums, October 2026), the most common problem was the IDE not being detected or Claude Code not launching (5 reports). Claude Agent sign-in confusion followed (3). Seven involved Windows or WSL: altaitools.com original analysis, 2026. Reports skew toward people who file bugs, and no Reddit threads were captured. To choose among JetBrains’ agents, see the best AI coding agent for JetBrains.

What breaks Claude in JetBrains IDEs
What went wrong (reports)
Not detected / can’t launch
5
Claude Agent auth confusion
3
Diff or session behavior
2
Terminal scroll/UI bugs
2
Install-nag message
1
0246
Platform of the 13 (reports)
Windows / WSL
7
Linux
2
macOS
1
Not stated
3
02468

Across 13 community reports, 5 were IDE-not-detected or can’t-launch problems and 7 involved Windows or WSL.

Source: altaitools.com analysis of 13 community reports (GitHub and JetBrains forums), Oct 2026. Base N=13, raw counts. Reports skew toward people who file bugs.

Three mistakes appear in those reports:

  • Expecting a claude.ai login to work in Claude Agent. It does not. Users who tried hit an authentication-required error. Use JetBrains AI, an API key or Anthropic Console.
  • Using one Windows fix everywhere. One Windows user fixed detection by relaxing PowerShell’s execution policy, but the same error appeared on Ubuntu, Mac and WSL in that thread. Switching to cmd.exe did not help in one report.
  • Fighting an install-the-plugin message. One report hid it by setting Auto-install IDE extension to false in /config. Run /ide first; if it names your IDE, the connection works.

Two of the 13 were scrolling bugs, not setup errors.

Now that it works

Once the connection checks pass, decide how Claude fits beside JetBrains’ own agents: JetBrains AI vs Claude Code compares the full stacks. If you are also considering an editor-first tool, Cursor vs Claude Code compares them on usage metering, control and where each runs.

FAQ

Which JetBrains IDEs support the Claude Code plugin?

The plugin works with most JetBrains IDEs. Anthropic’s documentation (2026) names six: IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm and GoLand. It runs the claude command in the IDE’s integrated terminal and does not bundle the CLI, so install that separately.

What permission modes does Claude Agent offer in PyCharm?

Claude Agent has five modes: Auto, Manual, Accept edits, Plan and Bypass permissions. Auto lets the model approve or deny prompts. Manual is standard and prompts for sensitive operations. Plan enables planning without executing actions. Bypass permissions skips all permission checks. A Rollback button undoes agent changes.

How do I change the login Claude Agent uses?

Open Settings | Tools | AI Assistant | Providers & API keys and click Revoke next to Claude Agent in Agent Authorization. Or hover Configured authentication at the top of a chat and click Reset. Existing chats keep the old method, so start a new chat with Alt+Insert.

Is the Claude Code plugin’s local connection encrypted?

No. The plugin’s local server uses unencrypted ws:// and listens only on 127.0.0.1 by default, with a fresh auth token each IDE start. Enabling Accept connections from all network interfaces sends session traffic and that token across your network in cleartext, so enable it only when loopback cannot work.