Use Xantly with JetBrains AI Assistant + Junie

JetBrains AI Assistant (IntelliJ, PyCharm, WebStorm, etc.) and agent-mode Junie support custom OpenAI-compatible providers since 2024.3. Drop in Xantly for routing on chat, inline edit, and Junie agent runs.

JetBrains AI Assistant (IntelliJ, PyCharm, WebStorm, GoLand, Rider, etc.) and the agent-mode Junie both support custom OpenAI-compatible providers since 2024.3. Drop in Xantly once and every chat, inline edit, code-complete assist, and Junie agent run routes through smart routing + semantic cache + memory.

Prerequisites

Setup

  1. Open SettingsToolsAI AssistantProviders & API Keys.
  2. Click Add ProviderOpenAI (compatible).
  3. Fill in:
FieldValue
Display nameXantly
Base URLhttps://api.xantly.com/v1
API Keyxantly_sk_...
Available modelsxantly/auto-quality, xantly/auto-value, anthropic/claude-sonnet-4.6, openai/gpt-5.4 (comma-separated)
  1. Click Test connection → you should see a green checkmark.
  2. Under Models → set the default to xantly/auto-quality for chat, and xantly/auto-value for inline edits.
  3. Apply + restart the IDE.

Using AI Assistant

All three route through your Xantly provider now.

Using Junie (agent mode)

Junie is JetBrains' autonomous agent. With the Xantly provider active:

  1. Open the Junie panel (sidebar) or Cmd+J.
  2. Give it a task: "Add tests for the auth module."
  3. Junie plans → edits files → runs tests, all via Xantly.

Junie's multi-step agent runs are cache-friendly, similar sub-prompts across steps hit L2 cache.

Model choice

Model IDWhen
xantly/auto-qualityChat + Junie, production default.
xantly/auto-valueInline edits (high frequency).
anthropic/claude-sonnet-4.6Long-context refactors, multi-file agent work.
openai/gpt-5.4Structured output, schema-tight edits.
xantly/auto-speedQuick inline completions / commit messages.

Verify

Open the AI chat panel, send:

Reply with just the word "pong".

Check your Xantly dashboard, call logged with routed-to model, cache status, USD cost.

What you get

Gotchas

JetBrains AI Assistant used to require their Enterprise plan for custom providers. As of 2024.3 and the free-tier reorg, the custom-provider feature is available on all plans. If your IDE shows it as locked, upgrade to the latest version.

Model availability. The provider config requires you to list available models. If you add new Xantly models to your catalog later, remember to add them to the AI Assistant config too.

Junie context strategy. Junie sends aggressive repo context with each call. Xantly's auto-quality model can handle it; pure speed-tier models may truncate. Stick to quality/value tiers for Junie.

Base URL must include /v1. Same rule as other OpenAI-compatible endpoints.

Plugin vs bundled AI Assistant. In newer JetBrains versions the AI Assistant is bundled; if your version has it as a separate plugin, make sure it's updated.

Next steps