mirror of
https://github.com/coder/coder.git
synced 2026-11-09 03:43:54 +08:00
## Summary Follows up on https://github.com/coder/coder/pull/24032 Renames "Coder session token" to "Coder API token" in AI Gateway client documentation pages. Also renames the `CODER_SESSION_TOKEN` env var to `CODER_API_TOKEN` in Codex CLI examples and Copilot proxy configuration. Note: "Coder session token" is still used in some parts of the documentation where it make sense. --------- Co-authored-by: Susana Ferreira <susana@coder.com>
2.1 KiB
2.1 KiB
VS Code
VS Code's native chat can be configured to use AI Gateway with the GitHub Copilot Chat extension's custom language model support.
Centralized API Key
Important
You need the Pre-release version of the GitHub Copilot Chat extension and VS Code Insiders.
- Open command palette (
Ctrl+Shift+PorCmd+Shift+Pon Mac) and search for Chat: Open Language Models (JSON). - Paste the following JSON configuration, replacing
<your-coder-api-token>with your Coder API token:
[
{
"name": "Coder",
"vendor": "customoai",
"apiKey": "<your-coder-api-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.
BYOK (Personal API Key)
Note
At the time of writing, GitHub Copilot Chat does not support sending custom headers, so BYOK mode is not available.
References: GitHub Copilot - Bring your own language model