Models & API keys
Use this page to set up custom models for AI Assistant features.

JetBrains AI
Item | Description |
|---|---|
Activate JetBrains AI | If you are using AI Assistant with a third-party provider account and want to switch to your JetBrains Account with an active JetBrains AI subscription, click the Activate JetBrains AI button. |
For additional information, refer to Activate JetBrains AI.
Third-party AI providers
Item | Description |
|---|---|
Provider | Select the third-party AI provider (Anthropic, OpenAI, OpenAI-compatible, LM Studio, or Ollama) whose custom models you want to use. |
API Key | Specify the API key to access the models provided by the selected third-party AI provider. |
URL | Specify the URL of the provider’s API endpoint. This can point to a local server (for example, |
Tool calling | Specify whether the model supports calling tools configured through the Model Context Protocol (MCP). Available only for OpenAI-compatible providers. |
For additional information, refer to Connect to a third-party provider.
Model Assignment
Item | Description |
|---|---|
Core features | Select the custom model that must be used for in-editor code generation, commit message generation, as a default model in chat, and other core features. |
Instant helpers | Select the custom model that must be used for lightweight features, such as chat context collection, chat title generation, and name suggestions. |
Completion model | Select the custom model that must be used for inline code completion. Works only with Fill-in-the-Middle (FIM) models. |
Context window | Specify the size of the model context window for local models. This setting determines how much context the model can process at once. A larger window allows more context, while a smaller one reduces memory usage and may improve performance. By default, the context window is set to 64 000 tokens. For additional information, refer to Use custom models in AI Assistant features. |
For additional information, refer to Use custom models in AI Assistant features.