
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
claude-model-switcher
Advanced tools
Simple CLI tool to switch between Claude Code Pro and other AI models like GLM 4.6
A simple CLI tool to switch between Claude Code Pro and other AI models like GLM 4.6.
# Install globally
npm install -g claude-model-switcher
# Start using it immediately
model-switcher list
model-switcher use glm-4.6
# Clone the repository
git clone https://github.com/liamtran96/videswtich.git
cd videswtich
# Install dependencies
npm install
# Build the project
npm run build
# Link the CLI globally for local testing
npm link
# List all available models
model-switcher list
# Switch to Claude Code Pro
model-switcher use claude-pro
# Switch to GLM 4.6
model-switcher use glm-4.6
# Check current model
model-switcher current
model-switcher list
Shows all available models with their details. The current model is marked with a green dot.
model-switcher use <model-id>
Switch to a specific model by its ID:
claude-pro - Claude Code Pro (Sonnet 4.5)glm-4.6 - GLM 4.6Example:
model-switcher use glm-4.6
model-switcher current
Shows the currently active model and its details.
model-switcher set-key <model-id> <api-key>
Set the API key for a specific model:
model-switcher set-key claude-pro sk-ant-xxxxx
model-switcher set-key glm-4.6 your-glm-api-key
model-switcher add <id> <name> <provider> [options]
Add a custom model configuration:
model-switcher add gpt-4 "GPT-4" "OpenAI" \
--endpoint "https://api.openai.com/v1" \
--description "GPT-4 by OpenAI"
Options:
-e, --endpoint <url> - API endpoint URL-d, --description <text> - Model descriptionmodel-switcher config
Shows the current configuration including all models and settings.
The CLI comes with two pre-configured models:
Claude Code Pro (claude-pro)
GLM 4.6 (glm-4.6)
Configuration is stored in ~/.claude-model-switcher/config.json
The config includes:
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build
npm run build
# Run tests (if added)
npm test
# See what models are available
model-switcher list
# Switch to Claude Code Pro
model-switcher use claude-pro
# Add your API key
model-switcher set-key claude-pro sk-ant-xxxxx
# Check current configuration
model-switcher current
# Switch to GLM 4.6 for faster responses
model-switcher use glm-4.6
model-switcher set-key glm-4.6 your-glm-key
# Add a custom model
model-switcher add custom-model "My Custom Model" "CustomProvider" \
--endpoint "https://api.example.com" \
--description "My custom AI model"
# Use your custom model
model-switcher use custom-model
MIT
FAQs
Simple CLI tool to switch between Claude Code Pro and other AI models like GLM 4.6
We found that claude-model-switcher demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.