Cline
Cline (the VS Code coding agent) reaches MartLLM through its OpenAI Compatible provider.
Before you start
- A MartLLM account with credit, and an API key from
Dashboard → Keys. Keys start with
ull_.
Setup
- Click the ⚙️ icon in the Cline panel.
- Set API Provider to OpenAI Compatible.
- Fill in:
- Base URL:
https://api.martllm.com/v1 - OpenAI Compatible API Key: your
ull_...key - Model ID: pick a model from the list (Cline loads it from
https://api.martllm.com/v1/modelsonce the key is in), or type an id such asdeepseek/deepseek-v4.1-flash.
- Base URL:
- Open Model Configuration and set Context Window Size and Max Output Tokens for that model (numbers below). Cline reads only the model ids from the list, not their limits, so it does not fill these in for you.
Type the base URL exactly as above. Current Cline versions use it as entered and no
longer add /v1 for you.
Recommended models
Checked on 2026-10-30: each one answered and made a tool call through MartLLM.
| Model id | Context | Max output | Notes |
|---|---|---|---|
deepseek/deepseek-v4.1-flash |
1,048,576 | 384,000 | Fastest and most used; reasons before it answers |
z-ai/glm-5.2 |
1,048,576 | 32,768 | Strong at code |
moonshotai/kimi-k3 |
1,048,576 | 32,768 | Reasons before it answers |
anthropic/claude-haiku-4.5 |
200,000 | 32,000 | Claude, lower price |
Prices change with the provider serving each request: see the model pages. Cline needs a model that can call tools.
Optional: tell MartLLM the request came from Cline
Under Custom Headers, click Add Header and add X-Title = Cline. Cline does
not send an app name to custom providers on its own.
Common errors
| What you see | Cause and fix |
|---|---|
401 / "Invalid API Key" |
The key is missing, mistyped or deleted. Paste it again from Dashboard → Keys. |
404 with "page not found" |
The base URL is wrong. It must be https://api.martllm.com/v1, with /v1 and nothing after it. |
404 model_not_found |
The model id is mistyped. Copy it from the list or from /v1/models. |
402 insufficient_credits |
Your balance is empty. Add credit under Dashboard → Credits. |
| Cline cuts the conversation short or says the context is full | Context Window Size is still at the default. Set it from the table above. |
More codes: Errors. Spend per request: Dashboard → Activity.