Files
coder/docs/ai-coder/ai-bridge/clients/vscode.md
T
2026-02-03 08:13:39 +00:00

2.0 KiB

VS Code

VS Code's native chat can be configured to use AI Bridge with the GitHub Copilot Chat extension's custom language model support.

Configuration

Important

You need the Pre-release version of the GitHub Copilot Chat extension and VS Code Insiders.

  1. Open command palette (Ctrl+Shift+P or Cmd+Shift+P on Mac) and search for Chat: Open Language Models (JSON).
  2. Paste the following JSON configuration, replacing <your-coder-session-token> with your Coder Session Token:
[
    {
        "name": "Coder",
        "vendor": "customoai",
        "apiKey": "your-coder-session-token>",
        "models": [
            {
                "name": "GPT 5.2",
                "url": "https://coder.example.com/api/v2/aibridge/openai/v1/chat/completions",
                "toolCalling": true,
                "vision": true,
                "thinking": true,
                "maxInputTokens": 272000,
                "maxOutputTokens": 128000,
                "id": "gpt-5.2"
            },
            {
                "name": "GPT 5.2 Codex",
                "url": "https://coder.example.com/api/v2/aibridge/openai/v1/responses",
                "toolCalling": true,
                "vision": true,
                "thinking": true,
                "maxInputTokens": 272000,
                "maxOutputTokens": 128000,
                "id": "gpt-5.2-codex"
            }
        ]
    }
]

Replace coder.example.com with your Coder deployment URL.

Note

The setting names may change as the feature moves from pre-release to stable. Refer to the official documentation for the latest setting keys.

References: GitHub Copilot - Bring your own language model