CCAS - Claude Code 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
- Install from VS Code Marketplace (coming soon)
- Or download the
.vsix file and install manually
Usage
Quick Switch
- Press
Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
- Type "Claude: Switch Provider"
- Select a provider from the list
Status Bar
Click the status bar item showing the current provider name to open the provider picker.
- Click the Claude icon in the Activity Bar
- View current configuration
- Browse preset providers
- 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.
Switching Plugin Language
This plugin automatically follows VS Code's language settings - no separate configuration needed.
How to change VS Code language:
Method 1: Via Command Palette
- Press
Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
- Type "Configure Display Language"
- Select target language (e.g., "English" or "中文(简体)")
- Restart VS Code
Method 2: Via settings.json
{
"locale": "en" // English
// or
"locale": "zh-cn" // Chinese
}
After changing, restart VS Code and the plugin interface will automatically switch to the corresponding language.
Development
# Install dependencies
npm install
# Compile
npm run compile
# Watch mode
npm run watch
# Package
npm run package
License
MIT