All guides · API quickstart · Last checked: Settings from the app's official documentation, November 2026; requests use our standard OpenAI-compatible 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.
DeepSeek Harness is DeepSeek's agent workspace (web interface, dsh command and Python SDK), in developer preview. It can run on any provider, including ours.
1. Add Datagram as a custom model provider
- Start it with
dsh weband open Settings → Models → Add model provider → Custom model API. - Provider ID:
datagram(lowercase). Base URL:https://api.datagram.net/v1. API protocol: OpenAI Chat Completions. Key: yourdgk_key. - Add the model
qwen3-coder:30b-64k(Harness can also read our list from/models), and save.
Or in the profile file
The same setting lives in $DSH_HOME/profiles/<profile>/cordis.patch.yml; the key goes in Harness's credentials or an environment variable:
- id: llm-pi-ai
config:
providers:
datagram:
apiKeyEnv: DATAGRAM_API_KEY
api: openai-completions
baseURL: https://api.datagram.net/v1
compat:
supportsDeveloperRole: false
maxTokensField: max_tokens
models:
- id: qwen3-coder:30b-64k
The two compat switches are Harness's settings for gateways like ours that use the classic system role and max_tokens; Harness's docs ask you to give each switch a value.
Which model?
qwen3-coder:30b-64k. A coding agent sends long instructions and calls tools on every step, so it needs the 65,536-token window and good tool use. Our other models have 8,192 tokens, which is too small for agent work.
If something goes wrong
401 "Missing API key" or "Invalid or revoked API key"
Check the key is set where the tool reads it (it starts with dgk_) and hasn't been revoked in your account under AI API.
402 "credit has run out"
Add credit in your account under AI API. Credit never expires.
Errors about the "developer" role or max tokens
Set the compat switches above: supportsDeveloperRole: false and maxTokensField: max_tokens.
Questions
Which model should I use?
qwen3-coder:30b-64k. Coding agents send long instructions and call tools, so they need its 65,536-token window. Our other models have 8,192 tokens.
Is it private?
Yes. Requests run on our own Macs in our datacenter, and we never store prompts or answers, only counts for billing.