as-compatible-copilot
DiscoveredA VSCode extension to use Openai/Anthropic/Gemini API Providers in GitHub Copilot Chat
AS Provider for Copilot
Use Anthropic, Google Gemini, OpenAI, and any compatible API in VS Code's GitHub Copilot Chat
English | 简体中文
Features
- Multi-Provider Support: Anthropic Messages, Google Gemini, OpenAI Responses, and OpenAI-compatible Chat Completions (compatible with DeepSeek, SiliconFlow, etc.)
- Automatic Model Discovery: Automatically enumerates available models via the provider's model list API — no need to manually enter every model ID
- Reasoning Effort Control: Supports five levels —
low / medium / high / xhigh / max— for Anthropic and OpenAI reasoning models - Image Input: Enables image context for models with vision capabilities
- Tool Calling: Enables agent tool-calling for models that support it
- Visual Configuration UI: Manage Provider Profiles, models, and global settings through a built-in interface or commands — no manual file editing required
Requirements
- VS Code
>= 1.126.0 - GitHub Copilot extension (with
chatProviderandlanguageModelSystemproposed APIs enabled)
Quick Start
- Install AS Provider for Copilot from the VS Code Marketplace.
- Press
Ctrl+Shift+Pand run AS Provider for Copilot: Open Configuration. - Add a Provider Profile, select the provider type, and enter the Base URL.
- Enter the API Key for that profile.
- Models will automatically appear in Copilot's model picker.
Visual Configuration UI
The extension provides a visual configuration interface to manage Provider Profiles, models, and global settings without editing any files manually.
Open the Configuration UI
Press Ctrl+Shift+P, search for and run AS Provider for Copilot: Open Configuration.
Click to expand: Workflow example
-
Add a Provider Profile
- Click "Add Profile" on the configuration page
- Select the provider type (e.g.
openai-compatible) - Enter the Base URL (e.g.
https://api.deepseek.com/v1) - Enter the API Key
- After saving, the extension will automatically discover all models for that provider
-
Add a Model Manually
- If the provider doesn't support a model list API, you can add model configurations manually
- Enter the model ID, associate it with a profile, and configure context length, tool calling, image input, etc. as needed
-
Use in Copilot
- Open GitHub Copilot Chat (
Ctrl+Shift+I) - Click the model picker and select "Manage Models..."
- Choose the AS Provider for Copilot vendor
- Select a discovered or manually configured model and start chatting
- Open GitHub Copilot Chat (
Multi-Provider Management
Each Provider Profile corresponds to a separate upstream API service. You can configure multiple profiles simultaneously and manage API Keys independently for each.
| Provider Type | Default Base URL | Description |
|---|---|---|
anthropic | https://api.anthropic.com | Anthropic Claude series |
google | https://generativelanguage.googleapis.com | Google Gemini series |
openai-responses | https://api.openai.com/v1 | OpenAI Responses API |
openai-compatible | User-defined | Any OpenAI-compatible endpoint |
Reasoning Effort Control
For models that support reasoning (e.g. Claude, GPT), you can configure the reasoning effort level globally or override it per model using Model Overrides:
| Level | Description |
|---|---|
low | Minimum reasoning, fastest |
medium | Balanced (default) |
high | Higher reasoning depth |
xhigh | Deep reasoning |
max | Maximum reasoning effort |
You can also use Model Overrides to set contextLength, toolCalling, and imageInput per model without affecting global settings.
Commands
| Command | Description |
|---|---|
AS Provider for Copilot: Open Configuration | Open the graphical configuration page |
AS Provider for Copilot: Set API Key | Set an API Key for a model or profile |
AS Provider for Copilot: Delete Configured Entry | Delete a configured model or profile |
AS Provider for Copilot: Refresh Discovered Models | Force-refresh the auto-discovered model list |
Development
Click to expand
Requirements
- Node.js latest LTS
- Yarn 4.x
Common Scripts
# Install dependencies
yarn install
# Full build (clean + WebView + extension)
yarn build
# Run tests
yarn test
# Lint
yarn lint
# Package .vsix
yarn build:vsce
Project Structure
src/
core.ts # Type definitions, provider options, message conversion
discovery.ts # Automatic model discovery
extension.ts # VS Code extension entry point
storage.ts # Configuration persistence
views/
configView.ts # WebView controller
webview/ # Configuration UI frontend (Vue 3)
static/ # Built WebView static assets
Acknowledgements
- Vercel AI SDK — Underlying multi-provider inference driver
- VS Code Language Model Chat Provider API
Support & License
- Submit an Issue: https://github.com/Hoshino-Yumetsuki/as-compatible-copilot/issues
- License: MIT
Comments
Loading…
Similar plugins
by softspark
DeepSeek Harness bundle for one-shot Claude Code and GitHub Copilot Gemini delegation through native subscription logins.
★ 3
↓ 51/wk
Apache-2.0
JavaScript
Oct 6, 2026
dsh plugin --profile web add @softspark/dsh-orchestratorby ziyou979
DeepSeek Harness plugin: OAuth / subscription-plan LLM providers (Grok, GitHub Copilot, OpenAI Codex, Anthropic, OpenRouter)
★ 6
MIT
TypeScript
Sep 15, 2026
dsh plugin --profile web add dsh-llm-oauthby opencues
The open standard for omnipresent AI. Claude Code, OpenCode, Gemini CLI, Shell, Chrome, DeepSeek Harness. Model-agnostic
★ 63
Apache-2.0
TypeScript
Sep 26, 2026
dsh plugin --profile terminal add @opencues/dshby FMDD61
GitHub Copilot OAuth sign-in and model route for DeepSeek Harness
★ 1
↓ 240/wk
MIT
TypeScript
Sep 10, 2026
dsh plugin --profile web add dsh-oauth-copilotby wesleyel
DeepSeek Harness plugin: serve every gpt-load model from one provider group, each model on its own wire protocol (OpenAI Chat Completions or Anthropic Messages), synced from /api/models
★ 0
MIT
TypeScript
Sep 30, 2026
dsh plugin --profile web add dsh-plugin-gpt-loadby GodD6366
Connect a sub2api gateway to DeepSeek Harness: OpenAI-compatible multi-provider routes (OpenAI / Claude / Grok / Gemini) behind one base URL, with per-key model discovery, usage lookup, and global vis
★ 3
MIT
TypeScript
Sep 8, 2026
dsh plugin --profile web add @godd6366/dsh-sub2api