Continue (VS Code / JetBrains) with MartLLM: config.yaml that works
In ~/.continue/config.yaml add a model with provider: openai, apiBase: https://api.martllm.com/v1, your key from a .env secret, and useLegacyCompletionsEndpoint: false so autocomplete goes to chat completions (plus useResponsesApi: false to keep GPT-5 models on chat completions too).
Fastest: one command
npx uberllm init --tool continue
It makes a key in your browser, saves it to ~/.continue/.env and adds two MartLLM models to ~/.continue/config.yaml, keeping the models you already have. The file is backed up first, and npx uberllm init --undo puts it back. What it changes. To do it by hand, follow the steps below.
Steps
- Make a key on your keys page and add credit.
- Save the key where Continue looks for secrets, in
~/.continue/.env:
ULL_API_KEY=ull_your_key
The editor extensions do not see variables from your shell, so use this file (or .continue/.env in the project).
- Open
~/.continue/config.yamland add the models:
name: My Config
version: 1.0.0
schema: v1
models:
- name: moonshotai/kimi-k3 (MartLLM)
provider: openai
model: moonshotai/kimi-k3
apiBase: https://api.martllm.com/v1
apiKey: ${{ secrets.ULL_API_KEY }}
useResponsesApi: false
useLegacyCompletionsEndpoint: false
capabilities: [tool_use]
roles: [chat, edit, apply]
- name: deepseek/deepseek-v4.1-flash (MartLLM)
provider: openai
model: deepseek/deepseek-v4.1-flash
apiBase: https://api.martllm.com/v1
apiKey: ${{ secrets.ULL_API_KEY }}
useResponsesApi: false
useLegacyCompletionsEndpoint: false
capabilities: [tool_use]
roles: [chat, edit, apply]
- Reload the window and pick the model in Continue's model menu.
The two route lines
Continue picks a route per model, and these two lines keep every MartLLM model on chat completions:
useLegacyCompletionsEndpoint: false: autocomplete otherwise uses the old/v1/completionsroute, which MartLLM does not serve (404). This one is required.useResponsesApi: false: Continue sends any model whose name containsgpt-5(oro1,o3…) to the Responses API, even with a customapiBase. MartLLM serves that route too, so this line is no longer needed to avoid errors; it keeps all your models on the one route the config was tested on.
Autocomplete
Add a separate fast model with the autocomplete role:
- name: Autocomplete (MartLLM)
provider: openai
model: deepseek/deepseek-v4.1-flash
apiBase: https://api.martllm.com/v1
apiKey: ${{ secrets.ULL_API_KEY }}
useResponsesApi: false
useLegacyCompletionsEndpoint: false
roles: [autocomplete]
Autocomplete through a chat model works, but quality varies by model more than with chat. Try two or three from the fast table below. It sends many small requests, so keep an eye on Dashboard → Activity the first day.
Troubleshooting
- 404 on chat:
apiBasedoes not end in/v1. - 404 on autocomplete only:
useLegacyCompletionsEndpoint: falseis missing. - 401: the secret is not found. Check the name matches (
ULL_API_KEY) and the.envfile is in one of the places above, then reload the window. - Agent mode does nothing: add
capabilities: [tool_use]. - 402 insufficient credits: add credit on the credits page.