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. Create an accountSign up in a minute and get $5 of free credit. Already a customer? Sign in.
- 2. Make an API keyIn your account, open AI API and press Create key. Keys start with
dgk_. Keep yours secret. - 3. Follow the steps belowCopy each block, paste your key where it says
dgk_your_key_here.
1. Add Datagram as a provider
- Open Settings (Preferences on a Mac) → Tools → AI Assistant → Providers & API keys.
- Under Third-party AI providers, choose OpenAI-compatible.
- Fill in:
- URL
https://api.datagram.net/v1- API Key
- your
dgk_key - Tool calling
- tick it (our coding models support tools)
- 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:
| Setting | Model | Why |
|---|---|---|
| Core features | qwen3-coder:30b-64k | Code generation, commit messages and chat; good at code and tools, 64K tokens of room |
| Instant helpers | gemma4:12b | Small, 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.