All guides · API quickstart · Last checked: Continue, Cline and Roo Code documentation, November 2026; the requests they send (OpenAI format, streaming, tool calls) 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.
All three extensions talk to us as an "OpenAI-compatible" provider. Use these values wherever they're asked for:
- Base URL
https://api.datagram.net/v1- API key
- your
dgk_key - Model
qwen3-coder:30b-64k- Context window
65536
Continue
Add your key to Continue's secrets file, ~/.continue/.env:
DATAGRAM_API_KEY=dgk_your_key_here
Then add the model to Continue's config.yaml (open it from Continue's settings). If you already have a models: list, add the entry to it:
name: My Config
version: 1.0.0
schema: v1
models:
- name: Datagram Qwen3-Coder
provider: openai
model: qwen3-coder:30b-64k
apiBase: https://api.datagram.net/v1
apiKey: ${{ secrets.DATAGRAM_API_KEY }}
roles:
- chat
- edit
- apply
defaultCompletionOptions:
contextLength: 65536
Cline
- Open Cline's settings (the gear in the Cline panel).
- API Provider: OpenAI Compatible.
- Base URL:
https://api.datagram.net/v1· API Key: your key · Model:qwen3-coder:30b-64k. - Under Model Configuration, set the context window to
65536.
Roo Code
- Open Roo Code's settings and choose API Provider: OpenAI Compatible.
- Base URL:
https://api.datagram.net/v1· API Key: your key · Model:qwen3-coder:30b-64k. - Under Model Configuration, set Context Window to
65536.
Roo Code only works with models that support tool calls. qwen3-coder:30b-64k does.
If something goes wrong
401 "Missing API key" or "Invalid or revoked API key"
Check the key starts with dgk_ and has no spaces. In Continue, check the name in .env matches the one in config.yaml.
404 "model not found"
Check the model name is exactly qwen3-coder:30b-64k, including the colon. The full list: curl https://api.datagram.net/v1/models -H "Authorization: Bearer dgk_…"
The agent forgets files or stops mid-task
Set the context window to 65536 and use the -64k model. Other models have 8K windows, too small for agents.
402 "credit has run out"
Add credit in your account under AI API. Credit never expires.
Questions
Which extension should I pick?
Continue is best if you mostly chat about code and want quick edits. Cline and Roo Code are agents: they plan, edit several files and run commands, asking you before each step. All three work with our API.
Which model?
qwen3-coder:30b-64k. It handles tool calls well and has room for 65,536 tokens, which agents like Cline and Roo Code need. For plain chat in Continue, gpt-oss:120b is a strong alternative with a smaller (8K) window.
Does it work in Cursor or VSCodium?
Yes. Cursor and VSCodium run VS Code extensions, so the same steps apply.
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.