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

Claude Code API Switcher

xiaomila

|
1 install
| (0) | Free
Quickly switch Claude Code API providers without leaving VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude API Switcher

Quickly switch Claude Code API providers without leaving VS Code.

Features

  • Quick Switch: Use Cmd+Shift+P → "Claude: Switch Provider" to quickly switch between API providers
  • Status Bar: Shows current API provider in the status bar, click to switch
  • Sidebar Panel: View and manage providers in the Activity Bar
  • Custom Providers: Add your own custom API providers
  • Preset Library: 20+ built-in provider presets including:
    • Claude Official
    • DeepSeek
    • Zhipu GLM
    • Qwen Coder
    • Kimi
    • MiniMax
    • OpenRouter
    • And more...
  • i18n: Supports English and Chinese

Installation

  1. Install from VS Code Marketplace (coming soon)
  2. Or download the .vsix file and install manually

Usage

Quick Switch

  1. Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
  2. Type "Claude: Switch Provider"
  3. Select a provider from the list

Status Bar

Click the status bar item showing the current provider name to open the provider picker.

Sidebar

  1. Click the Claude icon in the Activity Bar
  2. View current configuration
  3. Browse preset providers
  4. Manage custom providers

Commands

Command Description
Claude: Switch Provider Switch to a different API provider
Claude: Edit API Key Edit current API key
Claude: Add Custom Provider Add a custom provider
Claude: View Current Configuration Open settings.json file

Configuration

Setting Description Default
claudeSwitch.showStatusBar Show provider in status bar true
claudeSwitch.statusBarAlignment Status bar alignment (left/right) right
claudeSwitch.claudeConfigPath Custom path to settings.json ~/.claude/settings.json

How It Works

This extension reads and writes to ~/.claude/settings.json, the configuration file used by Claude Code CLI. Changes take effect immediately for new Claude Code sessions.

Development

# Install dependencies
npm install

# Compile
npm run compile

# Watch mode
npm run watch

# Package
npm run package

License

MIT

Credits

Preset library based on CC Switch project.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft