Guide · Claude Code for a team
How do you set up Claude Code in JetBrains IDEs for a team?
Install the Claude Code CLI, then Anthropic's Claude Code [Beta] plugin from the JetBrains
Marketplace, and restart the IDE. The plugin runs claude in the IDE's terminal
and adds diffs in the editor, your selection and the IDE's diagnostics. It signs in like any
claude, so the plugin's Claude command decides which account a session spends.
For a team, set that command on every machine, or point it at a gateway.
How do you install Claude Code in a JetBrains IDE?
The plugin does not bundle Claude Code, so a machine needs two pieces. Anthropic names IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm and GoLand among the IDEs it works with.
- The CLI first. Install Claude Code from Anthropic's quickstart. Without
claudeon the PATH, the plugin shows "Cannot launch Claude Code". - Then the plugin. Install Claude Code [Beta] from the JetBrains Marketplace and restart the IDE.
- Start it from the IDE. Press
Cmd+Escon a Mac orCtrl+Escon Windows and Linux, or click the Claude Code button. - Or from a terminal outside it. Run
claude, then/ide, from the project's root folder. - Diffs in the editor. In
/config, set Diff tool toauto. The entry appears only while Claude Code is connected to the IDE.
The plugin's own settings are under Settings → Tools → Claude Code [Beta].
The one that matters most is Claude command: what the button runs, such as
claude or a full path to it. With JetBrains Remote Development, install the
plugin on the remote host, not on your own machine.
Is the Claude Code plugin the same as JetBrains' Claude Agent?
No. They are two different products, and they are paid for differently.
- The Claude Code plugin is Anthropic's. It runs your own Claude Code CLI, signed in with a Claude plan (Pro, Max, Ultra, Team or Enterprise), a Claude Console account, or a provider your settings name.
- Claude Agent is the Claude in JetBrains' own AI chat. JetBrains' documentation says a Claude subscription cannot sign it in there. It runs on JetBrains AI credits or on an Anthropic API key with API billing.
- The sign-in decides the bill. Through JetBrains AI, JetBrains' subscription covers the usage. Through a provider's own sign-in, that provider bills you.
JetBrains' own answer for a Claude subscription is Claude Code in the terminal. So a team that already pays for Claude seats uses the plugin, and this guide is about the plugin.
What changes when a whole team uses the plugin?
The plugin runs the same CLI as the terminal, in the IDE's own terminal. Anthropic says a third-party provider works in JetBrains for that reason, the same as in the terminal.
- The Claude command lives in each IDE. It is a setting per IDE on each machine. A developer with GoLand and Android Studio sets it twice.
- Keep edits on Manual mode. Anthropic warns that in
acceptEditsmode Claude Code may change IDE configuration files that the IDE runs by itself. That can get round the permission prompts for Bash. - Your selection goes with every prompt. The current selection and the active file's path reach Claude. A
Readdeny rule for a file such as.envstops both, as in stopping Claude Code reading .env files. - The IDE adds one MCP server. It is named
ideand hidden from/mcp. Its one tool the model sees ismcp__ide__getDiagnostics, which matters if aPreToolUsehook allowlists MCP tools. - WSL is the usual snag. Anthropic's fix for "No available IDEs detected" is a Windows Firewall rule for WSL2's subnet, or mirrored networking on Windows 11 22H2 or later. A WSL user's Claude command reads
wsl -d Ubuntu -- bash -lic "claude", with their own distribution's name.
How does Selan run JetBrains sessions on company accounts?
Selan is a hosted gateway that runs Claude Code and Codex on the accounts your company
already pays for. From the IDE, the plugin's button would run a bare claude
that never reaches Selan, so one command changes it. Quit your IDEs, then run:
selan install jetbrains
- Every IDE at once. It finds each JetBrains IDE you have opened at least once, Android Studio included, and takes the newest version of each.
- Plugin and command. It installs the Claude Code [Beta] plugin where it is missing, and sets the Claude command to
selan claudeby the full path of yourselan. It prints one line per IDE. - The same session as the terminal. A session from the IDE uses your company's models, spend limits, connectors and secret scanning, and its usage is counted to you. Diffs, selection and diagnostics keep working.
- Permission prompts stay on. It sets
selan claude, neverseland. - Your own command is kept. A command you set yourself, such as a WSL wrapper, is left alone and named.
--forcereplaces it. - A running IDE is skipped. It would write its settings back when it quits, so the output names its
.lockfile. Quit it and run the command again, which is safe. - Several companies. In a folder pinned to another company, the IDE connection follows the session into that company's Claude Code profile.
selan uninstall jetbrains puts the command back to claude and
leaves the plugin installed. It needs Selan 1.26.0 or later; the full page is
JetBrains IDEs.
The plugin's button decides which account a session spends; one command points it at the company's.
Free for up to three seats, and the Free plan needs no card.
When is the plugin on its own the better answer?
- One developer on their own plan. The plugin and
claudeare all it takes, and there is nobody to meter. - The company pays JetBrains, not Anthropic. Claude Agent on JetBrains AI credits is billed through JetBrains, and Selan cannot route it. Only sessions from the Claude Code plugin run on your company's accounts through Selan.
For a team weighing the options, the gateway kinds side by side are in the best Claude Code gateway for a team, and Claude Code without API keys covers keeping credentials off laptops. Spend limits shows the cap per person.
The short version
- Install the Claude Code CLI, then the Claude Code [Beta] plugin from the JetBrains Marketplace, and restart the IDE.
- The plugin runs
claude, so its Claude command decides which account a session spends. - JetBrains' own Claude Agent is a different product, on JetBrains AI credits or an Anthropic API key.
- For a team, keep edits on Manual mode, deny
.envreads, and leave the IDE's port on loopback. selan install jetbrainspoints every JetBrains IDE on a machine atselan claudein one step.
How the Claude Code plugin installs, connects and should be secured is as Anthropic's JetBrains IDEs and platforms pages (code.claude.com/docs/en/jetbrains and /platforms) stated it on 4 December 2026. How JetBrains' Claude Agent signs in and is billed is as JetBrains' Air agent authorization page (jetbrains.com/help/air-ides/air-configure-authorization.html) stated it then. These change: check the date before relying on them. What Selan does is as its JetBrains IDEs and reference docs stated it then.