[BUG] Jetbrains IntelliJ Claude Code [beta] plugin doesn't detect IDE integration when custom claude command passed

Resolved 💬 2 comments Opened Jan 13, 2026 by yashas-hm Closed Feb 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

IDE integrations not detected when running Claude via custom HOME path alias

Description

I use two Claude accounts:

  • Personal account → default CLAUDE_CONFIG_DIR
  • Company account → custom CLAUDE_CONFIG_DIR path

To switch between them, I’ve created a shell alias that runs claude with a custom CLAUDE_CONFIG_DIR path for the company account.

alias claudework="CLAUDE_CONFIG_DIR=~/.claudework claude"
Issue

When running Claude via the aliased command (with the custom CLAUDE_CONFIG_DIR path), IDE integrations are not detected in IntelliJ IDEA.
However, when running the default claude command (using the default CLAUDE_CONFIG_DIR), IntelliJ IDEA integration works perfectly.

Actual behavior

IDE integrations are only detected when using the default CLAUDE_CONFIG_DIR. They are missing when Claude is launched via the alias with a custom CLAUDE_CONFIG_DIR.

Happy to provide more details or debug logs if needed.

What Should Happen?

IDE integrations (IntelliJ IDEA) should be detected regardless of whether Claude is launched with a custom CLAUDE_CONFIG_DIR path.

Error Messages/Logs

Steps to Reproduce

  • Install Claude CLI.
  • Verify that IntelliJ IDEA detects the Claude IDE integration when running
  • Create a custom home directory for a second (company) Claude account:
  • Create a shell alias to run Claude with a custom HOME path. Authenticate Claude using the aliased command:

``bash
mkdir -p ~/.claude-work
alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'
claude-work
``

  • Open IntelliJ IDEA with the Claude IDE integration enabled.
  • Attempt to use Claude from IntelliJ IDEA or check the integration status.
  • Observe that IntelliJ IDEA does not detect the Claude integration when using the custom CLAUDE_CONFIG_DIR.
  • Run Claude using the default command
  • Observe that IntelliJ IDEA integration works correctly when using the default CLAUDE_CONFIG_DIR.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.5 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Notes / Suspicions
  • Claude may be resolving IDE integration configs, sockets, or cache paths relative to the default CLAUDE_CONFIG_DIR
  • Custom CLAUDE_CONFIG_DIR paths might not be fully supported or documented for IDE detection

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗