Package Exports
- cli-llm-switcher/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cli-llm-switcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme

CLI LLM Switcher
A command-line tool for seamlessly switching between multiple LLM providers
π Languages: English | δΈζ | ζ₯ζ¬θͺ | νκ΅μ΄ | FranΓ§ais | Deutsch | EspaΓ±ol | Π ΡΡΡΠΊΠΈΠΉ | Ψ§ΩΨΉΨ±Ψ¨ΩΨ©
Seamlessly switch between LLM providers without affecting your native Claude Code setup. Isolated configuration with official best practices from model providers.
π‘ Why LLM Switcher?
π Isolated Configuration Environment
- Zero impact on native Claude Code: Your original Claude setup remains untouched
- Per-session provider switching: Each terminal session can use different providers
- Secure API key management: Isolated configuration in
~/.llm-switch/
π― Official Best Practices
- Provider-recommended configurations: Following official integration guidelines from Zhipu GLM
- Dual API support: Both OpenAI-compatible and Anthropic-compatible endpoints
- Optimized model selection: Pre-configured main and fast models
π Quick Start
# Install via npm (recommended)
npm install -g cli-llm-switcher
# Or clone and setup from source
git clone https://github.com/Scienith/Scienith-cli-llm-switcher
cd cli-llm-switcher
npm install && npm run build
npm link
# Configure API keys for providers
lms config
# Follow prompts to enter API keys and select default models
# Switch to Zhipu GLM
lms switch zhipu
# Run qwen CLI with the current provider
lms run qwen
Core Features
- π Isolated Environment: Doesn't affect your native Claude Code configuration
- π― Official Integration: Follows each provider's recommended best practices
- π― Zhipu GLM Integration: Optimized configuration for Zhipu GLM models
- β‘ Zero Conflict: Run multiple providers in different terminal sessions
- π Cross-Platform: macOS, Linux, Windows (via npm)
- π¦ Easy Installation: Single npm command, no shell configuration needed
π€ Zhipu GLM Integration

Zhipu GLM is a powerful Chinese large language model series developed by Zhipu AI, offering state-of-the-art performance for various tasks.
Available Models
- glm-4.5: Main model for complex reasoning and generation tasks
- glm-4.5-air: Fast model optimized for quick responses
Get Your API Key
- π¨π³ China: https://bigmodel.cn/
- π International: https://z.ai/model-api
Uninstallation
Basic Uninstall (keeps configuration)
npm uninstall -g cli-llm-switcher
Complete Uninstall (removes everything)
Note: Run lms status
to see the configuration directory path before uninstalling.
macOS/Linux:
npm uninstall -g cli-llm-switcher
rm -rf ~/.llm-switch
Windows (PowerShell):
npm uninstall -g cli-llm-switcher
Remove-Item -Recurse -Force "$env:USERPROFILE\.llm-switch"
Windows (Command Prompt):
npm uninstall -g cli-llm-switcher
rmdir /s /q "%USERPROFILE%\.llm-switch"
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Need help? Check the complete documentation for detailed guides and troubleshooting.