Editor integrations
AI coding editors that accept a custom OpenAI base URL can run on dlm — keep your code and your model on your own hardware. In each, set the base URL to http://localhost:8000/v1 and the model to dlm.
Start the server first with a chat-capable model — see Recommended models — and leave it running:
dlm serve --model-path ./models/your-model.Cursor
In Settings → Models, enable a custom OpenAI API key, set the base URL to your dlm server, and add dlm as a model. Cursor sends OpenAI-shaped requests to /v1/chat/completions.
Continue.dev
Add dlm as an OpenAI-compatible provider in ~/.continue/config.json:
$ ~/.continue/config.json
"models": [{
"title": "dlm",
"provider": "openai",
"model": "dlm",
"apiBase": "http://localhost:8000/v1",
"apiKey": "dlm"
}]
Aider
Aider speaks the OpenAI API — point it at dlm with environment variables:
$
export OPENAI_API_BASE=http://localhost:8000/v1$
export OPENAI_API_KEY=dlm$
aider --model openai/dlmZed
In Zed’s assistant settings, add an OpenAI-compatible provider with an api_url of http://localhost:8000/v1 and the model dlm.
Anthropic-based tools
- Tools that target the Anthropic API can use dlm’s
/v1/messagesendpoint instead — set the Anthropic base URL tohttp://localhost:8000and usex-api-key. - See Client integration for the SDK details behind these editors.