Use Kilo Code with Datagram

Use the Kilo Code agent in VS Code with open models hosted on our own Apple Silicon.

Works with Datagram AI

All guides · API quickstart · Last checked: Settings from the app's official documentation, November 2026; requests use our standard OpenAI-compatible 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 a custom provider

  1. In Kilo Code, open Settings (gear) → Providers, scroll to the bottom and click Custom provider.
  2. Fill in: Provider ID datagram, Display name Datagram, Provider API OpenAI Compatible, Base URL https://api.datagram.net/v1, API key your dgk_ key.
  3. Under Models, click Fetch models and pick qwen3-coder:30b-64k, then Submit.

2. Tell Kilo the context window (important)

The dialog has no context-window field. Without one, Kilo never compacts the conversation and long sessions fail. Add the limits in your global config, ~/.config/kilo/kilo.jsonc:

{
  "$schema": "https://app.kilo.ai/config.json",
  "model": "datagram/qwen3-coder:30b-64k",
  "provider": {
    "datagram": {
      "options": { "apiKey": "{env:DATAGRAM_API_KEY}", "baseURL": "https://api.datagram.net/v1" },
      "models": {
        "qwen3-coder:30b-64k": { "name": "Qwen3-Coder 30B (64K)", "tool_call": true, "limit": { "context": 65536, "output": 8192 } }
      }
    }
  }
}

{env:...} only works in the global config, not in a kilo.json inside a project. Set DATAGRAM_API_KEY in your environment.

Which model?

qwen3-coder:30b-64k, with tool_call: true so Kilo can edit files and run commands. Our other models' 8K windows are too small for an agent.

If something goes wrong

401 "Missing API key" or "Invalid or revoked API key"

Check the key is pasted in full (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.

Long tasks fail with a context error

Set limit.context to 65536 as above; if it is unset Kilo doesn't compact the history.

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.

Create an account Get an API key More guides →