Cline
Use Runars as the backend for the Cline VS Code extension
Cline is an autonomous coding agent extension for VS Code. It speaks the Anthropic Messages API, so it works with Runars out of the box.
Prerequisites
- A Runars API key (Dashboard → API Keys), starting with
sk-runars- - Cline installed from the VS Code marketplace
- Credit balance on your organization
Setup
Open the Cline extension, click the settings gear, and add an API Provider:
| Field | Value |
|---|---|
| API Provider | Anthropic |
| Base URL | https://api.runars.ca |
| API Key | sk-runars-... |
| Model | glm-5.2 (or any id from GET /v1/models) |
Save. The model appears in Cline's model dropdown.
Using it
Select your configured model from the dropdown and start a task. Every request Cline makes flows through Runars and is debited against your organization's credit balance.
Troubleshooting
"Model not found": Cline may default to a claude-* model id. Open the model field and set it to an id returned by GET /v1/models (e.g. glm-5.2). Unknown ids return 404 model_not_found rather than being silently substituted.
"401 Unauthorized": The API key is missing, wrong, or revoked. Keys are cache-invalidated within ~5s of revocation on Runars.
Base URL trailing slash: Cline appends the API path (/v1/messages) itself—confirm the Base URL is https://api.runars.ca (no trailing /v1, no trailing slash).
What's next
- Install SDKs — Anthropic & OpenAI SDK setup
- Pricing & billing — credit model, rate limits, auto-reload