VS Code and GitHub Copilot connection
Configure the site address, independent keys, and available models in VS Code and GitHub Copilot.
This article accesses this site through the VS Code custom language model endpoint. It is a different configuration from GitHub login, subscription, and inline completion.
Step 1: Add a custom endpoint
Run Chat: Manage Language Models from the command panel and select Add Models → Custom Endpoint. Check the client version and organization policy when the entrance is not visible, please refer to Official Model Documentation. Create a DunDun model group and follow the prompts to save the independent key of this site.
Step 2: Select protocol and model
| API Type | Full Request URL |
|---|---|
chat-completions |
https://dunduntoken.com/v1/chat/completions |
responses |
https://dunduntoken.com/v1/responses |
messages |
https://dunduntoken.com/v1/messages |
Select by interface support range and model protocol. The table shows the complete endpoint; if the field requires Base URL, only https://dunduntoken.com/v1 is required for OpenAI compatibility mode. Fill in the actual model ID and set context, output, visual, and tool options by model capabilities.
Step 3: Verify in Chat
After saving, select the model under DunDun from the chat model selector, send a short text, and check it to Call Record. Then test the read-only file operation in Agent mode. Models that do not support tools are not suitable as agents.
Successful registration does not mean that all Copilot functions will be available on this site. Inline completion and organization features are still subject to client-side rules.
FAQ
When the model is not displayed, check the model group enabled status and reopen the selector; 401 checks the model group credentials, 404 checks the API type and complete URL, and checks the tool capabilities when Chat succeeds but Agent fails. Do not use your site key as a substitute for your GitHub login credentials.
Return to integration directory · Protocol selection · Error troubleshooting