经 AI Skill Hub 精选评估,VS Code 聊天工具 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
集成多个LLM API提供商,增强VS Code的GitHub Copilot Chat功能
VS Code 聊天工具 是一款基于 TypeScript 开发的开源工具,专注于 ai、chat、copilot 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
集成多个LLM API提供商,增强VS Code的GitHub Copilot Chat功能
VS Code 聊天工具 是一款基于 TypeScript 开发的开源工具,专注于 ai、chat、copilot 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g vscode-unify-chat-provider # 方式二:npx 直接运行(无需安装) npx vscode-unify-chat-provider --help # 方式三:项目依赖安装 npm install vscode-unify-chat-provider # 方式四:从源码运行 git clone https://github.com/smallmain/vscode-unify-chat-provider cd vscode-unify-chat-provider npm install npm start
# 命令行使用
vscode-unify-chat-provider --help
# 基本用法
vscode-unify-chat-provider [options] <input>
# Node.js 代码中使用
const vscode_unify_chat_provider = require('vscode-unify-chat-provider');
const result = await vscode_unify_chat_provider.run(options);
console.log(result);
# vscode-unify-chat-provider 配置说明 # 查看配置选项 vscode-unify-chat-provider --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export VSCODE_UNIFY_CHAT_PROVIDER_CONFIG="/path/to/config.yml"
<p align="center"> <img src="icon.png" width="128" /> </p>
<p align="center"> Integrate multiple LLM API providers into VS Code's GitHub Copilot Chat using the Language Model API. </p>
<br> <p align="center"> <span>English</span> | <a href="https://github.com/smallmain/vscode-unify-chat-provider/blob/main/README_zh-CN.md">简体中文</a> </p>
.vsix file from GitHub Releases, then install it in VS Code via Install from VSIX... or by dragging it into the Extensions view.Check out the Cookbook, you can start using it in minutes:
You can also check the Provider Support Table:
When you have added multiple providers or models:
Currently, you might also be looking for:
If the above content still doesn't help you, please continue reading the rest of this document, or create an Issue for help.
See the Provider Support Table for providers supported by one-click configuration.
If your provider is not in the list, you can add it via Manual Configuration.
Steps:
Unify Chat Provider: Add Provider From Well-Known Provider List.
2. Select the provider you want to add. 3. Follow the prompts to configure authentication (usually an API key, or it may require logging in via the browser), then you’ll be taken to the config import screen. - This screen lets you review and edit the config that will be imported. - For details, see the Provider Settings section.
Save to complete the import and start using the models in Copilot Chat.
This section uses DeepSeek as an example, adding the provider and two models.
DeepSeek supports One-Click Configuration. This section shows the manual setup for demonstration purposes.
0. Preparation: get the API information from the provider docs, at least the following: - API Format: The API format (e.g., OpenAI Chat Completions, Anthropic Messages). - API Base URL: The base URL of the API. - Authentication: Usually an API key; obtained from the user center or console after registration.
Unify Chat Provider: Add Provider.
2. Fill in the provider name: Name. - The name must be unique and is shown in the model list. Here we use DeepSeek. - You can create multiple configs for the same provider with different names, e.g., DeepSeek-Person, DeepSeek-Team.
3. Choose the API format: API Format. - DeepSeek uses the OpenAI Chat Completion format, so select that. - To see all supported formats, refer to the API Format Support Table.
4. Set the base URL: API Base URL. - DeepSeek’s base URL is https://api.deepseek.com.
5. Configure authentication: Authentication. - DeepSeek uses API Key for authentication, so select API Key. - Enter the API key generated from the DeepSeek console.
Models to go to the model management screen.
7. Enable Auto-Fetch Official Models. - This example uses auto-fetch to reduce configuration steps; see Auto-Fetch Official Models for details. - For model fields and other ways to add models, see Manage Models.
Save to finish. You can now use the models in Copilot Chat.
Models: This button only appears while adding or importing a config; click it to enter the Model List screen.This screen shows all configuration fields for the provider. For field details, see Provider Parameters.
Export: Export this model config. See Import and Export.Duplicate: Clone this model config to create a new one.Delete: Delete this model config.This screen shows all configuration fields for the model. For field details, see Model Parameters.
Run Unify Chat Provider: Sync Built-in Parameters to All Configs to sync local model parameters with the built-in model parameters.
This is typically used after a new version updates or optimizes built-in model parameters, allowing you to sync existing configs in one click.
unifyChatProvider.* settings are application-scoped and shared across profiles on the same device.<details>
| Name | ID | Description |
|---|---|---|
| Global Network Settings | networkSettings | Network timeout/retry settings, which only affect chat requests. |
| Model Display Name Template | modelDisplayNameTemplate | Template for chat model names. Default: {modelName}{{ ({providerName})}}. |
| Balance Refresh Interval | balanceRefreshIntervalMs | Periodic refresh interval for provider balances (milliseconds). |
| Balance Throttle Window | balanceThrottleWindowMs | Throttle window for post-request balance refresh (milliseconds). |
| Display Balance in Configuration | displayBalanceInConfiguration | Shows refreshed balance information in the model configuration button area. Default: disabled. |
| Store API Key in Settings | storeApiKeyInSettings | Please see [Cloud Sync Compatibility](#cloud-sync-compatibility) for details. |
| Enable Detailed Logging | verbose | Enables more detailed logging for troubleshooting errors. |
| Commit Message Buttons | commitMessageGeneration.enableButtons | Controls whether commit message generation buttons are shown in the Source Control view. |
| Commit Message Model | commitMessageGeneration.model | Model selection used for commit message generation. |
| Commit Message Format | commitMessageGeneration.format | Commit message format used for commit message generation. |
| Commit Message Custom Instructions | commitMessageGeneration.customInstructions | Additional instructions appended to the commit message generation system prompt. |
| Commit Message Exclude Files | commitMessageGeneration.excludeFiles | VS Code glob patterns for files whose diffs should be omitted from commit message generation prompts. |
</details>
You can add query parameters to override certain fields in the imported config.
Example:
vscode://SmallMain.vscode-unify-chat-provider/import-config?config=<input>&auth={"method":"api-key","apiKey":"my-api-key"}
The import will override the auth field before importing.
<details>
| API | ID | Typical Endpoint | Notes |
|---|---|---|---|
| [OpenAI Chat Completion API](https://platform.openai.com/docs/api-reference/chat) | openai-chat-completion | /v1/chat/completions | If the base URL doesn’t end with a version suffix, /v1 is appended automatically. |
| [OpenAI Responses API](https://platform.openai.com/docs/api-reference/responses) | openai-responses | /v1/responses | If the base URL doesn’t end with a version suffix, /v1 is appended automatically. |
| [Google AI Studio (Gemini API)](https://ai.google.dev/aistudio) | google-ai-studio | /v1beta/models:generateContent | Automatically detect the version number suffix. |
| [Google Vertex AI](https://cloud.google.com/vertex-ai) | google-vertex-ai | /v1beta/models:generateContent | Provide different base URL based on authentication. |
| [Anthropic Messages API](https://platform.claude.com/docs/en/api/typescript/messages/create) | anthropic | /v1/messages | Automatically removes duplicated /v1 suffix. |
| [Ollama Chat API](https://docs.ollama.com/api/chat) | ollama | /api/chat | Automatically removes duplicated /api suffix. |
</details>
Add Model: Go to Add Model Manually.Add From Well-Known Model List: Go to One-Click Add Models.Add From Official Model List: Fetch the latest official model list via API. See One-Click Add Models.Import From Config: Import an existing model config (or an array of model configs). See Import and Export.Auto-Fetch Official Models: Enable or disable Auto-Fetch Official Models.Provider Settings: Go to Provider Settings.Export: Export this provider config or the model array config. See Import and Export.Duplicate: Clone this provider config to create a new one.Delete: Delete this provider config.高质量的AI工具集成,提高开发效率
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:VS Code 聊天工具 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | vscode-unify-chat-provider |
| Topics | aichatcopilottypescript |
| GitHub | https://github.com/smallmain/vscode-unify-chat-provider |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-06-10 · 更新时间:2026-06-10 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。