npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cli-llm-switcher

v0.6.0

Published

Claude Code LLM switcher - Switch between DeepSeek, Qwen, Zhipu GLM, Kimi, xAI models for Claude Code CLI

Readme

cli-llm-switcher

A command-line tool for seamlessly switching between multiple LLM providers

Version License

🌍 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

🎯 Official Best Practices

  • Provider-recommended configurations: Following official integration guidelines from each provider
  • Claude Code dual-model configuration: Main model for conversation/planning/code generation/complex reasoning, fast model (Claude uses Haiku e.g. 3.5 Haiku) for file search/syntax checking and auxiliary tasks - intelligently optimizing performance and cost

📋 Prerequisites

Before installing, ensure you have Node.js (v16 or later) installed:

Install Node.js

Option 1 (Recommended): Use nvm for easy Node.js management

# Install nvm: https://github.com/nvm-sh/nvm#install--update-script
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Restart terminal, then install latest Node.js
nvm install node
nvm use node

Option 2: Download from nodejs.org (choose LTS version)

Verify installation:

node --version  # Should show v16.0.0 or higher
npm --version   # Should show npm version

🚀 Installation

# Install globally via npm
npm install -g cli-llm-switcher

# Verify installation
lms --version

# Configure API keys
lms config
# Follow prompts to enter your API key

# Start using with Claude Code or other tools
lms run claude

🤖 Provider Integration

DeepSeek

Model Configuration

  • Main Model: deepseek-chat
  • Fast Model: deepseek-chat

Get Your API Key


AlibabaCloud (International)

Model Configuration

  • Main Model: qwen3-coder-plus
  • Fast Model: qwen3-coder-flash

Get Your API Key


AlibabaCloud (China)

Model Configuration

  • Main Model: qwen3-coder-plus
  • Fast Model: qwen3-coder-flash

Get Your API Key


Moonshot AI

Model Configuration

  • Main Model: kimi-k2-0905-preview
  • Fast Model: kimi-k2-0905-preview

Get Your API Key


Zhipu GLM

Model Configuration

  • Main Model: glm-4.5
  • Fast Model: glm-4.5-air

Get Your API Key


Grok Code Fast 1

Model Configuration

  • Main Model: grok-code-fast-1
  • Fast Model: grok-code-fast-1

Get Your API Key


LongCat

Model Configuration

  • Main Model: LongCat-Flash-Chat
  • Fast Model: LongCat-Flash-Chat

Get Your API Key


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.

References

Official provider configuration guides for Claude Code integration:


Need help? Check the complete documentation for detailed guides and troubleshooting.