[BUG] JetBrains plugin: "Cannot launch Claude Code" error

Resolved 💬 9 comments Opened Aug 19, 2025 by zzJinux Closed Feb 1, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.84 (Claude Code)
  • Operating System: 15.6 (24G84)
  • Terminal: n/a

Bug Description

When the claude is launched with CLAUDE_CONFIG_DIR env var, the JetBrains plugin complains that it cannot launch Claude Code, and the claude command itself can't locate the IDE as well.

Steps to Reproduce

  1. Make a shell script that proxies the real claude:
#!/usr/bin/env bash

claude=~/.local/bin/claude  # Native install location
cwd_abs=$(pwd -P)

for d in \
  ~/work \
; do
  d_abs=$(cd "$d" && pwd -P)
  if [[ $cwd_abs = $d_abs || $cwd_abs = "$d_abs"/* ]]; then
    export CLAUDE_CONFIG_DIR=~/.claude-work
    exec "$claude" "$@"
  fi
done
exec "$claude" "$@"
  1. Add the script file to the PATH to override the original claude.
  2. Specify the script file path to the JetBrains IDE Settings > Tools > Claude Code [Beta] > General > Claude command
  3. Change the working directory to where the custom CLAUDE_CONFIG_DIR is active.

Expected Behavior

  • When executing the claude from within the IDE integrated terminal, it can detect the IDE
  • When executing the claude from within the external terminal and running /ide, it can detect the IDE.

Actual Behavior

  • It can't detect the IDE.
  • Launching Claude Code from the IDE button (top-right), "Cannot launch Claude Code" is shown.

<img width="315" height="101" alt="Image" src="https://github.com/user-attachments/assets/9215dfd3-a5a9-49fd-98c3-88311dfca2c3" />

Additional Context

The Claude Code is installed with curl -fsSL https://claude.ai/install.sh | bash.

View original on GitHub ↗

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