Skip to main content
The built-in chat in VS Code (Chat panel, Agent mode, and inline chat) can use external models via the Custom Endpoint provider. This provider supports three API formats—Chat Completions, Responses, and Anthropic Messages—and all three are served by Hostlinku. BYOK models like this do not require a GitHub login or the Copilot package. Prerequisites: The latest version of VS Code (Custom Endpoint replaces the deprecated OpenAI Compatible provider) and the GitHub Copilot Chat extension.

Other API Formats

Each model can use a different format via the apiType per model:

What You Need to Know

  • Inline suggestions (autocomplete) will continue to use Copilot. BYOK applies only to chat and utility task; semantic search, embeddings, and code completions require a GitHub account.
  • Without logging into GitHub, VS Code asks you to choose a utility model (session title, commit message, etc.). Set chat.utilityModel and chat.utilitySmallModel to the Hostlinku model—claude-haiku-4-5 is suitable for the small model.
  • Copilot Business/Enterprise: The organization’s administrator must enable the Bring Your Own policy “Language Model Key in VS Code*” in the GitHub Copilot settings.
  • Untrusted workspace (Restricted Mode) displays only Auto models; trust workspace so that my Hostlink model appears.

Troubleshooting