VS Code

Copilot Chat, Claude Code, Cline, Roo Code, Kilo Code or Continue: pick your assistant, point it at MafiaLLM.

GitHub Copilot Chat

Copilot Chat takes your own models through its Custom Endpoint provider, in agent mode too. It works without a Copilot plan; on Copilot Business or Enterprise, an admin must allow “Bring Your Own Language Model Key”.

  1. Open the model picker in the Chat view, then Manage Language Models (or run Chat: Manage Language Models).
  2. Add Models → Custom Endpoint. Name the group MafiaLLM and paste your key.
  3. VS Code opens chatLanguageModels.json: list the models as below.
[
  {
    "name": "MafiaLLM",
    "vendor": "customendpoint",
    "apiKey": "${input:mafiallmApiKey}",
    "apiType": "chat-completions",
    "models": [
      {
        "id": "glm-5.3",
        "name": "GLM 5.3",
        "url": "https://api.mafiallm.com/v1/chat/completions",
        "toolCalling": true,
        "vision": false,
        "maxInputTokens": 900000,
        "maxOutputTokens": 65536
      },
      {
        "id": "claude-sonnet-5-5",
        "name": "Claude Sonnet 5.5",
        "apiType": "messages",
        "url": "https://api.mafiallm.com/anthropic/v1/messages",
        "toolCalling": true,
        "vision": false,
        "maxInputTokens": 900000,
        "maxOutputTokens": 64000
      }
    ]
  }
]

Claude Code

The Claude Code extension uses the same settings as the CLI, plus two lines in VS Code’s settings.json. See Claude Code → VS Code and JetBrains.

Cline and Roo Code

  1. Open the extension’s settings (gear icon).
  2. API Provider: OpenAI Compatible.
  3. Base URL: https://api.mafiallm.com/v1. API Key: your key. Model: a model ID, for example glm-5.3.
  4. Under Model Configuration, set the context window and max output from the model list.

Kilo Code

  1. Settings → Providers → Custom provider.
  2. Provider API: OpenAI Compatible. Base URL: https://api.mafiallm.com/v1. Paste your key.
  3. The models are loaded from the endpoint: pick one.

Continue

In ~/.continue/config.yaml, with the key in ~/.continue/.env as MAFIA_KEY=sk-mf-…:

name: MafiaLLM
version: 0.0.1
schema: v1
models:
  - name: GLM 5.3 (MafiaLLM)
    provider: openai
    model: glm-5.3
    apiBase: https://api.mafiallm.com/v1
    apiKey: ${{ secrets.MAFIA_KEY }}
    roles: [chat, edit, apply]
    capabilities: [tool_use]
    defaultCompletionOptions:
      contextLength: 1000000
      maxTokens: 16000
  - name: GPT-6 Luna (MafiaLLM)
    provider: openai
    model: gpt-6-luna
    apiBase: https://api.mafiallm.com/v1
    apiKey: ${{ secrets.MAFIA_KEY }}
    capabilities: [tool_use]