Use Xantly with Continue.dev

Continue.dev's per-role model config pairs perfectly with Xantly, route chat/edit/apply to Xantly Quality, autocomplete to a free local Ollama. Best mix-and-match demo in the ecosystem.

Continue.dev is the most flexible AI coding extension for VS Code and JetBrains, its killer feature is per-role model config. You can run Xantly on the expensive chat role while a local Ollama model handles free autocomplete. This is the best "mix and match" demo in the ecosystem.

Prerequisites

Setup

Continue uses ~/.continue/config.yaml (newer) or ~/.continue/config.json (legacy; still works). Drop this YAML block:

models:
  - name: Xantly Quality
    provider: openai
    model: xantly/auto-quality
    apiBase: https://api.xantly.com/v1
    apiKey: xantly_sk_...
    roles:
      - chat
      - edit
      - apply

  - name: Xantly Value
    provider: openai
    model: xantly/auto-value
    apiBase: https://api.xantly.com/v1
    apiKey: xantly_sk_...
    roles:
      - edit
      - summarize

  - name: Local Qwen (fast autocomplete)
    provider: ollama
    model: qwen2.5-coder:7b
    roles:
      - autocomplete

Save, restart the IDE. Continue will show three models in its model picker, each scoped to the roles you configured.

Why this config is the interesting one

Continue splits LLM calls by role:

The above config puts Xantly on the meaningful roles and Ollama on the autocomplete firehose. A typical week:

-4/week for a heavy user.

Model ID options

Model IDBest for
xantly/auto-qualitychat, apply, complex reasoning
xantly/auto-valueedit, summarize, balanced
xantly/auto-speedsummarize only, not recommended for code roles
anthropic/claude-sonnet-4.6Pin for deterministic choice
openai/gpt-5.4Pin for OpenAI-first workflows
groq/llama-3.3-70bUltra-fast for short edits

Verify

  1. Open VS Code with a project.
  2. Ctrl+I → "Refactor this function to use async/await" → should hit xantly/auto-quality for chat, then xantly/auto-value for edit/apply.
  3. Type in a file, autocomplete should hit Ollama locally (no Xantly dashboard entries).
  4. Check your Xantly dashboard, only the meaningful requests appear, with role-by-role cost breakdown.

What you get

Gotchas

apiBase must include /v1. Same OpenAI-SDK rule.

YAML vs JSON. Continue supports both. If you paste the YAML above into a JSON config, it won't work, either convert to JSON manually or rename your config to .yaml.

Role fallbacks. If you don't configure a model for a role, Continue uses the default. Map every role explicitly to avoid surprises.

Next steps