Credentials. The 9Router API Key is entered into VSCode settings and forwarded through the local proxy, so keep it out of shared screens, logs and committed files.
Who it is forA developer who uses Copilot Chat daily and wants to try Claude, GPT, Gemini or DeepSeek models without editing config files or restarting VSCode.
The problemChanging the model in Copilot Chat normally means editing JSON configuration and reloading the window, which breaks flow.
The outcomeCopilot Chat sends requests through the local proxy on port 20129, and the active model can be changed from the dashboard or the status bar while the chat session stays open.
What you need first
- Visual Studio Code with GitHub Copilot Chat
- Node.js and npm, needed for `npm install -g 9router` and `npm start`
- A 9Router account or local setup that gives you an API Key from the 9Router dashboard at http://localhost:20128/dashboard
- Ports 20128, 20129 and 5500 free on your machine
Steps
- Install the gateway with
npm install -g 9router, then start it in a separate terminal with9router. - Clone the repo with
git clone https://github.com/yudaprasetya007/routeVSCODE.gitand open the folder withcd routeVSCODE. - Install the extension with
code --install-extension releases/routevscode.model-connector-2.5.0.vsix --force. - Start the dashboard with
npm startand open http://localhost:5500. - In VSCode press Ctrl+Shift+P, run
9Router: Set API Key & Base URL, enterhttp://localhost:20128/v1and your 9Router API Key. - Open Copilot Chat with Ctrl+Alt+I, choose
9Router via Proxyin the Model Picker, then switch models from the dashboard or the status bar.
Prompt for your agent
Using the repo yudaprasetya007/routeVSCODE, install the VSCode extension from releases/routevscode.model-connector-2.5.0.vsix and start the dashboard with npm start, then confirm that http://localhost:5500 loads. Set the model to <target model name> from the dashboard and report the active model shown in the status bar; verify that port 20129 is listening before reporting success.
Caveat. The README says a Model Picker reload may be needed after first install, so expect to run Developer: Reload Window once.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for yudaprasetya007/routeVSCODE and "Switch Copilot Chat models without reloading VSCode"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer