← Integrations · IDE & editors

Copilot Chat setup via the Kiree gateway

Connect the Copilot chat in VS Code to kiree.net via a BYOK Custom Endpoint: chatLanguageModels.json with vendor customendpoint, Chat Completions or Messages API type and the gateway address.

Why the gateway

Why the direct setup does not cover every case

Copilot Chat normally relies on the GitHub Copilot service. A BYOK Custom Endpoint points the chat at the kiree.net gateway; models are added with a chatLanguageModels.json entry and the gateway address.

Setup

Steps to your first request

·

Get a key and Insiders

A sk-… key in the kiree.net console and the VS Code Insiders build: Custom Endpoint is available there.

·

Add a Custom Endpoint

Chat: Manage Language Models → Add Models → Custom Endpoint: group name, display name and key, API type Chat Completions.

·

Describe the model in JSON

In chatLanguageModels.json: vendor customendpoint, full url https://kiree.net/v1/chat/completions and model ID; save and pick the model in the chat picker.

"vendor": "customendpoint"
"url": "https://kiree.net/v1/chat/completions"
"apiKey": "sk-…"
"model": "gpt-4o-mini"

For Claude: apiType "messages" and url https://kiree.net/v1/messages. The url field is the full endpoint address. Inline suggestions and semantic search depend on the GitHub Copilot service.

Check: pick the Kiree model in the chat picker and ask a question: the reply comes through the gateway; if the model is missing, restart VS Code.

Models

What to connect in Copilot Chat

Any text model from the catalog works on one key. Below are popular options to start.

Diagnostics

Common errors

!

Custom Endpoint is not in the list

The feature is in VS Code Insiders: install the Insiders build; in stable builds the same key works in Cline or Roo Code.

!

Model does not appear in the picker

Restart VS Code after saving chatLanguageModels.json and check the JSON syntax.

!

401 / 404

apiKey is wrong or the url lacks the full path: /v1/chat/completions for chat-completions and /v1/messages for messages.

FAQ

Frequently asked questions

How do I connect Copilot Chat through the gateway?+

The BYOK Custom Endpoint goes to kiree.net directly; no Copilot subscription or GitHub login is required for the chat.

Does code autocomplete work through the gateway?+

No: inline suggestions and semantic search depend on the GitHub Copilot service. The chat and agent scenarios inside it work through the gateway; for fully autonomous work see Cline or Claude Code.

Do I need a Copilot subscription?+

For the BYOK chat, no: models are added with the Chat: Manage Language Models command even without GitHub login.

Which VS Code version is required?+

Custom Endpoint is available in VS Code Insiders; in stable builds the same key works in Cline, Roo Code and Continue.

Which models should I connect?+

Any catalog text model: gpt-4o-mini and gpt-6-astra via chat-completions, claude-sonnet-4-6 via messages.

Get a key for Copilot Chat

Create a key in a couple of minutes; pay only for actual usage, no subscription required.