Coder powers secure, scalable development across key industries — automotive, finance, government, and technology — enabling faster builds, tighter compliance, and seamless AI adoption in enterprise-grade cloud environments.
AI Gateway requires the AI Governance Add-On.
As of Coder v2.32, deployments without the add-on will not be able to
access AI Gateway.
VS Code's native chat can be configured to use AI Gateway via the Custom Endpoint language model provider (VS Code 1.122+, Stable). GitHub sign-in is not required, so this works in air-gapped or restricted environments.
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P on Mac) and run Chat: Manage Language Models.
Select Add → Custom Endpoint.
Enter a group name, display name, your Coder API token as the API key, and the API type shown below.
To add or edit models, select the gear icon next to the provider in the Language Models view to open chatLanguageModels.json.
Important
Enter your API token through the UI. VS Code stores it securely and inserts a reference like ${input:chat.lm.secret.XXXXX} into the JSON. Do not paste your token directly into the JSON file.
Replace coder.example.com with your Coder deployment URL. Model IDs must match what is configured in your AI Gateway.