Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>BYOK CopilotNew to Visual Studio Code? Get it now.
BYOK Copilot

BYOK Copilot

lzwdot

|
1 install
| (0) | Free
Bring Your Own Key - ? GitHub Copilot ???????????
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

BYOK for Copilot

为 GitHub Copilot 接入自定义语言模型,支持任何兼容 OpenAI / Anthropic 接口格式的第三方 API。

功能

  • 自定义 API 地址:支持 OpenAI、Anthropic 及所有兼容格式的接口
  • 自动获取模型列表:从 /models 接口拉取可用模型,写入 Copilot 配置
  • Anthropic 免配置:选择 Anthropic 模式时内置模型列表,无需额外填写 models URL
  • 零 UI 干扰:后台静默同步,不弹窗打扰

使用

  1. 打开 VS Code 设置,搜索 byok,填入 API 地址和密钥
  2. Ctrl+Shift+P → BYOK: 刷新模型列表
  3. 重载窗口后,Copilot 模型选择器中出现你的自定义模型

配置项

配置 说明
byok-for-copilot.apiUrl API 地址,如 https://api.openai.com/v1
byok-for-copilot.apiKey API 密钥
byok-for-copilot.apiType openai(默认)或 anthropic
byok-for-copilot.modelsUrl 模型列表接口,留空用默认 /models

许可

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft