Use MagmaRouter in Continue

Use MagmaRouter in Continue

Continue's config.yaml takes an OpenAI-style provider with a custom apiBase. The VS Code and JetBrains extensions cannot read your shell environment, so the key goes in Continue's own .env.

Base URL
https://api.magmarouter.com/v1
API key
Get one, starts sk-mr-
Example model
glm-5.3-xploded

A models block in config.yaml

In ~/.continue/config.yaml:

YAML
name: MagmaRouter
version: 0.0.1
schema: v1
models:
  - name: GLM 5.3 Flash Xploded (MagmaRouter)
    provider: openai
    model: glm-5.3-xploded
    apiBase: https://api.magmarouter.com/v1
    apiKey: ${{ secrets.MAGMAROUTER_API_KEY }}
    capabilities:
      - tool_use
    roles:
      - chat
      - edit
      - apply

Put MAGMAROUTER_API_KEY=sk-mr-... in ~/.continue/.env. The capabilities: [tool_use] line matters: Continue drops Agent mode for a model id it does not recognise unless you declare tool use, so set it only for a tool-capable model.

Pick a model

Each page has the Continue setup with that model's id and limits filled in, and what a session costs.

Related guides