JetBrains IDE

Use Claude Code in IntelliJ IDEA, WebStorm, PyCharm, and other JetBrains IDEs

JetBrains IDE Integration

Claude Code offers an official JetBrains plugin that supports IntelliJ IDEA, WebStorm, PyCharm, GoLand, and all other JetBrains IDEs.

Prerequisites

  1. Claude Code CLI is installed and working

  2. Follow the Installation Guide to complete installation

  3. Follow the Environment Variables guide to configure QCode.cc API

  4. JetBrains IDE 2024.1 or later

Installation Steps

Step 1: Install the Claude Code Plugin

  1. Open your JetBrains IDE

  2. Go to Settings β†’ Plugins β†’ Marketplace

  3. Search for "Claude Code" (publisher: Anthropic)

  4. Click Install

  5. Restart the IDE

Step 2: Configure Environment Variables

Ensure the following environment variables are set (same as the CLI):

export ANTHROPIC_BASE_URL="https://asia.qcode.cc/api"
export ANTHROPIC_AUTH_TOKEN="cr_your_api_key"

Tip: JetBrains IDEs inherit system environment variables. If you've already configured them in ~/.zshrc or ~/.bashrc, the IDE will pick them up automatically on launch.

Step 3: Verify

  1. In the IDE, press Cmd+Esc (macOS) or Ctrl+Esc (Windows/Linux) to open the Claude Code panel

  2. Type a simple message to test the connection

Usage

Keyboard Shortcuts

Shortcut Function
Cmd+Esc / Ctrl+Esc Open/close the Claude Code panel

Key Features

  1. Code explanation: Select code β†’ Right-click β†’ Ask Claude

  2. Code generation: Describe your requirements in the Claude panel

  3. Error fixing: Send error messages to Claude for analysis

  4. Code refactoring: Select code and let Claude help optimize it

Using with Terminal CLI

The built-in Terminal in JetBrains IDEs can also run the claude command directly, providing the full CLI experience.

FAQ

Claude Code panel not showing?

  1. Confirm the plugin is installed and enabled

  2. Confirm Claude Code CLI is globally installed (claude --version)

  3. Restart the IDE

Environment variables not taking effect?

JetBrains IDEs may not pick up environment variables from your shell configuration files. Solutions:

  • macOS: Launch the IDE from the terminal (open -a "IntelliJ IDEA") instead of clicking the Dock icon

  • All platforms: Manually add the variables in Run/Debug Configurations β†’ Environment variables

Next Steps

πŸš€
Get Started with QCode β€” AI Coding Assistant
Official Claude Code relay, fast and reliable, ready to use
View Pricing Plans β†’ Create Account