Use JetBrains AI Assistant with Datagram

Connect AI Assistant in IntelliJ IDEA, PyCharm, WebStorm and the other JetBrains IDEs to open models on our hardware, with your own key and no JetBrains AI subscription.

Works with Datagram AI

All guides · API quickstart · Last checked: JetBrains AI Assistant 2026.3 documentation, November 2026; the requests the IDE sends were tested against our live API

  1. 1. Create an accountSign up in a minute and get $5 of free credit. Already a customer? Sign in.
  2. 2. Make an API keyIn your account, open AI API and press Create key. Keys start with dgk_. Keep yours secret.
  3. 3. Follow the steps belowCopy each block, paste your key where it says dgk_your_key_here.

1. Add Datagram as a provider

  1. Open Settings (Preferences on a Mac) → Tools → AI Assistant → Providers & API keys.
  2. Under Third-party AI providers, choose OpenAI-compatible.
  3. Fill in:
URL
https://api.datagram.net/v1
API Key
your dgk_ key
Tool calling
tick it (our coding models support tools)
  1. Press Test Connection, then Apply.

2. Pick models for each feature

JetBrains doesn't assign models from OpenAI-compatible providers automatically. In the same settings page, under Models Assignment:

SettingModelWhy
Core featuresqwen3-coder:30b-64kCode generation, commit messages and chat; good at code and tools, 64K tokens of room
Instant helpersgemma4:12bSmall, quick jobs such as chat titles and name suggestions

If the IDE asks for a context window, use 65536 for qwen3-coder:30b-64k and 8192 for other models. In the chat window, the model list also shows our models under the provider's name.

3. Try it

Open the AI Assistant chat, pick qwen3-coder:30b-64k, and ask about a file in your project. The first answer can take 10 to 20 seconds while the model loads.

If something goes wrong

Test Connection fails

Check the URL is exactly https://api.datagram.net/v1 (with /api/v1, no trailing slash) and the key starts with dgk_. If your key is limited to certain IP addresses, add your current one in your account under AI API.

Features say "unavailable"

Assign a model under Models Assignment. JetBrains leaves features unassigned for OpenAI-compatible providers.

402 "credit has run out"

Add credit in your account under AI API. Credit never expires.

My company manages AI settings

Administrators can limit third-party providers through JetBrains IDE Services. Ask them to allow an OpenAI-compatible provider.

Questions

Do I need a JetBrains AI subscription?

No. JetBrains calls this "bring your own key": AI Assistant works with your own provider without a JetBrains AI subscription. Some features may not be available with third-party models.

Does code completion (gray inline suggestions) work?

Not yet. JetBrains uses a separate setting for inline completion, which needs a fill-in-the-middle completion model. Chat, in-editor generation and commit messages work with the steps on this page.

What about Junie?

This guide covers AI Assistant. We'll add Junie once we've tested it.

Is my code private?

Yes. Requests run on our own Macs in our datacenter, and we never store prompts or answers, only counts for billing.

Create an account Get an API key More guides →