OpenRouter for Copilot Chat — 300+ AI Models (GPT, Claude, DeepSeek, Gemini) for VS CodeThe fastest way to run 300+ OpenRouter models — OpenAI GPT, Anthropic Claude, DeepSeek, Google Gemini, Meta Llama, Mistral — inside GitHub Copilot Chat in VS Code, including hundreds of free AI models. One API key, zero runtime dependencies, and full agent mode, vision, and thinking support.
300+ models — OpenAI, Anthropic, Google, DeepSeek, Meta, and more — inside Copilot Chat's model picker, with vision, thinking mode, and a multi-agent swarm.
Table of Contents
Quick Start — 60 seconds to 300+ models
Why OpenRouter for Copilot Chat?You already have Copilot's agent mode, tool calling, MCP, and skills. What you might not have is the models you want to run them on. This extension keeps the entire Copilot stack and swaps the brain:
How it compares
Architecture at a Glance
Every model is served through a single OpenAI-compatible endpoint, images are described before they reach the model, and the Agent Swarm orchestrates parallel agents — all inside the model picker you already know. Features🐝 Agent Swarm — parallel agents on one task (
|
| Setting | Default | Description |
|---|---|---|
openrouter-for-copilot.baseUrl |
empty | Optional OpenAI-compatible API base URL override. When set, overrides the default OpenRouter endpoint (https://openrouter.ai/api/v1). Leave empty to use OpenRouter's default API. |
openrouter-for-copilot.maxTokens |
0 |
Max output tokens (0 = no limit). Useful for cost control |
openrouter-for-copilot.modelIdOverrides |
prefilled OpenRouter IDs | API model IDs to send for built-in or custom models. Change only for endpoints with different model names |
openrouter-for-copilot.customModels |
[] |
Extra OpenRouter-compatible models for the picker. Accepts string IDs or objects with id, optional name, token limits, toolCalling, and thinking. Custom IDs override built-ins. Images still go through the current Vision Proxy; custom models do not bypass it for native vision |
openrouter-for-copilot.debugMode |
minimal |
Diagnostic mode: minimal for token usage only, metadata for privacy-preserving logs, or verbose for full request dumps and pipeline snapshots under extension global storage. Full dumps may include sensitive prompt text, tool schemas, file snippets, and image descriptions. Use OpenRouter: Open Request Dumps Folder to open the dump location |
openrouter-for-copilot.visionModel |
(auto) | VS Code vision model used as fallback when automatic vision is unavailable. Configure from OpenRouter: Configure Vision Proxy; new saves use vendor/id, while legacy bare model IDs are still read |
openrouter-for-copilot.visionPrompt |
(built-in) | Prompt used to describe image attachments |
openrouter-for-copilot.ponytailMode |
full |
Ponytail coding-discipline system instruction level. off = no instruction; lite = brief reminder; full = complete 7-rung ladder with all rules; ultra = strict mode prioritizing edge-case correctness. Use OpenRouter: Set Ponytail Mode to switch at runtime |
openrouter-for-copilot.codeSimplifier |
true |
Autonomous code refinement agent (on by default). Proactively reviews modified code and simplifies for clarity, consistency, and maintainability. When enabled, Ponytail auto-downgrades to Lite. Toggle with OpenRouter: Toggle Code Simplifier |
openrouter-for-copilot.agentRoles |
{} |
Models per agent-swarm role: research (list, round-robin — defaults to audited free models), implement (always the chat-selected model), and optional review (list). Each entry is { "vendor", "family", "id"? } |
openrouter-for-copilot.experimental.stabilizeToolList |
false |
Experimental. Tries to pre-activate VS Code/Copilot virtual tools so the API tools parameter is more complete and stable across turns. May improve context-cache hit rate when enabled tools change between turns. Can increase input tokens because more function definitions may be included; cache-hit input tokens are cheaper but still count toward usage. Usually leave it off with 64 or fewer enabled tools unless the tool list still changes across turns; do not enable it with more than 128 enabled tools |
Example settings.json for a custom OpenAI-compatible proxy:
{
"openrouter-for-copilot.baseUrl": "https://proxy.example.com/v1",
"openrouter-for-copilot.customModels": [
"my-model",
{
"id": "team-coder",
"name": "Team Coder",
"maxInputTokens": 200000,
"maxOutputTokens": 131072,
"toolCalling": true,
"thinking": true
}
],
"openrouter-for-copilot.modelIdOverrides": {
"team-coder": "provider/team-coder"
}
}
Commands
| Command | Description |
|---|---|
OpenRouter: Set API Key |
Store your OpenRouter API key in SecretStorage |
OpenRouter: Open API Key Page |
Open openrouter.ai/keys |
OpenRouter: Query Usage |
Open your OpenRouter usage page |
OpenRouter: Clear All API Keys |
Remove your stored API key |
OpenRouter: Refresh Model List |
Re-fetch the live OpenRouter model catalogue |
OpenRouter: Configure Vision Proxy |
Pick the vision model used to describe images |
OpenRouter: Open Settings |
Open the extension settings |
OpenRouter: Show Logs |
Show diagnostic logs |
OpenRouter: Show Runtime Diagnostics |
Show provider/runtime diagnostics |
OpenRouter: Set Ponytail Mode |
Switch the Ponytail instruction intensity |
OpenRouter: Toggle Code Simplifier |
Enable/disable the code refinement agent |
FAQ
Can I use OpenRouter models in Copilot Chat for free?
Yes. OpenRouter hosts hundreds of free models (their IDs end in :free, e.g. deepseek/deepseek-chat-v3-0324:free). For @swarm runs, the extension even audits free models automatically — probing which ones respond fastest and routing research/review through them with zero configuration.
Does this replace GitHub Copilot?
No — it extends it. You keep agent mode, tool calling, MCP, skills, and instructions; the extension just adds 300+ OpenRouter models to the model picker. You still need a GitHub Copilot subscription (the free tier works).
Is my API key safe?
Yes. The key is stored in VS Code's SecretStorage (OS keychain) — never in settings.json, never in Git history. Logs are privacy-preserving by default (minimal/metadata modes strip prompts); only explicit verbose mode writes full dumps.
Which models support vision and thinking?
Any model that advertises vision on OpenRouter works through the Vision Proxy (images are described by a vision model before reaching the coding model). Models advertising reasoning support thinking mode with reasoning_effort control (none → max) from Copilot Chat's native picker menu.
Can I use my own OpenAI-compatible endpoint?
Yes — set openrouter-for-copilot.baseUrl and add your models under openrouter-for-copilot.customModels. Anything that speaks the OpenAI Chat Completions protocol works, including local servers (Ollama, LM Studio, vLLM) and private gateways.
Does it work in Cursor, VSCodium, or other VS Code forks?
Any editor that uses the Open VSX registry can install from Open VSX. The extension relies on current Copilot Chat APIs, so test it in your fork after updating.
How do I control cost?
Free models for research/review, maxTokens per response, per-turn USD price estimates in the status bar, and implementFallback ordering if a paid model is unavailable. You can also cap spending at the OpenRouter dashboard level.
Support
Found a bug or a missing model? Open an issue — Copilot Chat APIs move fast and reports keep the extension working on newer VS Code versions. Star the repo if the extension saves you money or unlocks the model you wanted.