Coder logo

JetBrains

JetBrains IDEs

> [!NOTE] > AI Gateway requires the AI Governance Add-On. > As of Coder v2.32, deployments without the add-on will not be able to > access AI Gateway.

JetBrains IDE (IntelliJ IDEA, PyCharm, WebStorm, etc.) support AI Gateway via the third-party model configuration feature.

Prerequisites

Centralized API Key

  1. Open Settings: Go to Settings > Tools > AI Assistant > Models & API Keys.
  2. Configure Provider: Go to Third-party AI providers.
  3. Choose Provider: Choose OpenAI-compatible.
  4. URL: https://coder.kyzdt.dev/api/v2/aibridge/openai/v1
  5. API Key: Paste your Coder API token.
  6. Apply: Click Apply and OK.

Using the AI Assistant

  1. Go back to AI Chat on theleft side bar and choose Chat.
  2. In the Model dropdown, select the desired model (e.g., gpt-5.2).

You can now use the AI Assistant chat with the configured provider.

> [!NOTE] > > * JetBrains AI Assistant currently only supports OpenAI-compatible endpoints. There is an open issue tracking support for Anthropic. > * JetBrains AI Assistant may not support all models that support OPenAI's /chat/completions endpoint in Chat mode.

BYOK (Personal API Key)

> [!NOTE] > At the time of writing, JetBrains AI Assistant does not support sending custom headers, so BYOK mode is not available.

References: Use custom models with JetBrains AI Assistant