Use Xantly with Cline (VS Code)

Cline is the most popular AI coding agent for VS Code. Drop in Xantly as the OpenAI-compatible provider for BaRP routing, L2 semantic cache, and persistent memory across agent sessions.

Cline is the most popular AI coding agent for VS Code, full autonomous agent mode, file editing, terminal commands, plan/act split. Point it at Xantly and you get smart routing, semantic cache, and memory on every completion.

Prerequisites

Setup

  1. Open Cline's settings panel (gear icon in the Cline sidebar).
  2. Under API Provider, select OpenAI Compatible.
  3. Fill in:
FieldValue
Base URLhttps://api.xantly.com/v1
API Keysk-... (your Xantly key)
Model IDxantly/auto-quality (or any catalog model, see below)
  1. Hit Save. Cline reloads the model list from /v1/models and you're done.

Model choice

Cline's agent mode (plan → act → verify loop) benefits from strong tool-calling. Recommended:

Model IDWhy
xantly/auto-qualityBaRP routes from the most capable models. Best agent performance.
bedrock/claude-sonnet-4-6/us-east-1Pinned Claude. Strong tool-calling, great for complex multi-file refactors.
bedrock/gpt-oss-120b-1/us-east-1Pinned GPT. Excellent at structured JSON outputs.
xantly/auto-valueBudget-conscious daily driver.

Prefer xantly/auto for agent mode. xantly/auto-speed optimizes for latency, which is the wrong objective for multi-step plans where a slower, more capable model finishes the task in fewer turns. Fine for inline chat.

Verify tool-calling works

Cline's agent mode depends on OpenAI tool-call format. Xantly speaks it natively, but let's confirm end-to-end:

  1. Open a project in VS Code.
  2. Launch Cline, type: "Read package.json and tell me which dependencies are outdated. Then patch them."
  3. Cline should call the read_file tool, think, and propose a patch.

If Cline silently stops after the first tool call, your model doesn't support parallel tool calls. Switch to xantly/auto-quality or bedrock/claude-sonnet-4-6/us-east-1.

What you get

Gotchas

"Model ID must include provider prefix." Cline expects OpenRouter-style IDs (anthropic/..., openai/...). Use the provider/model format, not bare model names. Xantly's xantly/auto-* aliases also work.

Base URL needs /v1 suffix. Don't use https://api.xantly.com (bare), Cline expects the full OpenAI-compatible base URL with /v1.

Auto-completion dropdown shows stale models. Cline caches the /v1/models response per session. Restart VS Code after you add new models to your Xantly catalog.

Next steps