Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AI SwitcherNew to Visual Studio Code? Get it now.
AI Switcher

AI Switcher

Contact AI

|
5 installs
| (0) | Free
Unified chat interface to switch between free AI providers — Gemini, Groq, Mistral, and Cohere
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI Switcher — VS Code Extension

A unified chat panel to switch between free AI providers without leaving VS Code.

Supported Providers (all free tier)

Provider Free Model Get Key
Google Gemini gemini-1.5-flash aistudio.google.com
Groq llama3-8b-8192 console.groq.com
Mistral mistral-small-latest console.mistral.ai
Cohere command-r dashboard.cohere.com

Setup

1. Install dependencies

npm install

2. Compile

npm run compile
# or watch mode:
npm run watch

3. Run the extension

Press F5 in VS Code to open the Extension Development Host.

4. Add your API keys

Open Settings (Ctrl+,) and search for aiSwitcher, or click the ⚙ Keys button in the panel.

Add keys for whichever providers you want to use:

  • aiSwitcher.geminiApiKey
  • aiSwitcher.groqApiKey
  • aiSwitcher.mistralApiKey
  • aiSwitcher.cohereApiKey

5. Open the chat

  • Run command: AI Switcher: Open Chat from the Command Palette (Ctrl+Shift+P)
  • Or click the chat icon in the editor toolbar

Project Structure

src/
├── extension.ts       # Extension entry point
├── panel.ts           # Webview panel + message routing
├── providers.ts       # API calls for each provider
└── webviewContent.ts  # Chat UI HTML/CSS/JS

Extending

Add a new provider

  1. Add the API key config in package.json → contributes.configuration.properties
  2. Add the callXxx() function in providers.ts
  3. Add a case in callProvider() switch
  4. Add a button in webviewContent.ts

Publishing

npm install -g @vscode/vsce
vsce package    # → ai-switcher-0.0.1.vsix
vsce publish    # Publish to VS Code Marketplace
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft