GitHub Copilot with ARK
Add ARK as a Custom Endpoint in VS Code and run Copilot's chat and agent mode on open models with tool calling and a 256K-token context.
GitHub Copilot: The AI chat and agent in Visual Studio Code, backed by GitHub Copilot.
Before you start
You need an ARK API key: sign in to ARK Cloud and copy it from the dashboard, or use a key from your own ARK deployment and its base URL. The setup below adds three ARK Cloud models: arklabsai/Qwen3.5-122B-A10B for chat and agents, arklabsai/Qwen3.6-35B-A3B for titles and summaries and arklabsai/Qwen3.5-4B for quick tasks such as commit messages. All three call tools; the 122B and the 35B read up to 256K tokens, the 4B up to 128K.
1. Install
You need Visual Studio Code 1.122 or later, where the Custom Endpoint provider is stable. Models you add yourself work without a Copilot plan or a GitHub sign-in.
2. Connect it to ARK
Run Chat: Manage Language Models from the Command Palette, choose Add Models and then Custom Endpoint. Enter a group name, a display name and your ARK key, and pick Chat Completions as the API type. VS Code opens chatLanguageModels.json; make the ARK entry look like this:
[
{
"name": "ARK",
"vendor": "customendpoint",
"apiKey": "${input:arkApiKey}",
"apiType": "chat-completions",
"models": [
{
"id": "arklabsai/Qwen3.5-122B-A10B",
"name": "Qwen3.5 122B A10B (ARK)",
"url": "https://api.ark-labs.cloud/api/v1/chat/completions",
"toolCalling": true,
"contextWindow": 262144,
"maxOutputTokens": 8192
},
{
"id": "arklabsai/Qwen3.6-35B-A3B",
"name": "Qwen3.6 35B A3B (ARK)",
"url": "https://api.ark-labs.cloud/api/v1/chat/completions",
"toolCalling": true,
"contextWindow": 262144,
"maxOutputTokens": 8192
},
{
"id": "arklabsai/Qwen3.5-4B",
"name": "Qwen3.5 4B (ARK)",
"url": "https://api.ark-labs.cloud/api/v1/chat/completions",
"toolCalling": true,
"contextWindow": 131072,
"maxOutputTokens": 8192
}
]
}
]Keep the apiKey reference VS Code wrote for the key you entered. Save the file and pick Qwen3.5 122B A10B (ARK) in the chat model picker; if the models do not appear, restart VS Code.
Copilot runs its utility tasks on separate models, and without a GitHub sign-in the built-in ones are not available. In the Settings editor, set chat.utilityModel (titles and summaries) to Qwen3.6 35B A3B (ARK) and chat.utilitySmallModel (commit messages, pull request titles and descriptions, rename suggestions) to Qwen3.5 4B (ARK).
Good to know
- Give the full chat completions URL: VS Code uses a URL with an explicit API path as it is.
toolCalling: truemakes the model available to agents: VS Code offers only tool-calling models there.- Inline suggestions, semantic search and features that rely on embeddings still run on GitHub's models and need a GitHub account.
- On Business and Enterprise plans, the Bring Your Own Language Model Key in VS Code policy governs Custom Endpoint models; ask your administrator if the option is missing.
- Code completion while you type needs a fill-in-the-middle endpoint, which ARK does not serve: use ARK for chat and agent work.
- Thinking works with tools: when the agent turns thinking on, the Qwen models think before they call a tool (see Reasoning).
- These tools send the whole conversation on every turn. ARK's prompt cache speeds up the repeated part of each prompt; every prompt token is still billed.
Next
Read about tool calling and limits and capacity on ARK, or browse other integrations.
Configuration keys follow GitHub Copilot's official documentation as of November 2026. If the tool has changed since, its docs take precedence.