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

claude-provider

v0.0.5

Published

CLI tool and Claude Code plugin to switch between API providers (Anthropic, Kimi, Qwen, DeepSeek, MiniMax, Z.ai)

Downloads

299

Readme


A powerful tool that enables you to manage and switch between multiple LLM API providers for Claude Code. Available as both a Claude Code plugin and a standalone CLI.

✨ Features

  • 🔄 Instant Provider Switching — Switch between providers with a single command
  • Dual Mode — Use as a Claude Code plugin or standalone CLI tool
  • 📦 Pre-configured Presets — Ready-to-use configurations for popular providers
  • 🎛️ Custom Configurations — Create profiles with custom base URLs and models
  • 📸 Profile Snapshots — Save your current settings as reusable profiles
  • 🔐 Secure — API keys are masked in output; file permissions are restricted

🚀 Installation

Prerequisites

Install via npm (Recommended)

npm install -g claude-provider

This installs both the Claude Code plugin and the CLI tool.

🔌 Plugin Usage

Use the provider commands directly within Claude Code via slash commands.

Setup Plugin

Via Marketplace:

# Add the marketplace
/plugin marketplace add iqbal-rashed/claude-provider-plugin

# Install the plugin
/plugin install provider@claude-provider-plugin

Via Local Install:

claude --plugin-dir /absolute/path/to/claude-provider-plugin

Plugin Commands

Switch Provider

/provider:switch <profile_name>

Switch to a different provider profile instantly.

List Profiles

/provider:list

View all available profiles and see which one is currently active.

Add Provider

/provider:add <name>

Create a new profile from a preset or custom configuration. You'll be prompted for:

  • Preset — Choose from available presets or custom
  • API Key — Your provider's API key
  • Model (optional) — Override the default model

Snapshot Settings

/provider:snapshot <name>

Save your current ~/.claude/settings.json as a named profile for later use.

Delete Profile

/provider:delete <profile_name>

Remove a profile you no longer need.


📖 CLI Usage

After installation, you can use claude-provider or the shorthand cpr from your terminal.

Interactive Mode

claude-provider
# or
cpr

Launches an interactive menu to:

  • View and switch between providers
  • Add new providers (from presets or custom)
  • Manage existing providers (edit/delete)

Quick Switch

claude-provider <provider_name>
# or
cpr kimi

Switch directly to a provider by name.

List Providers

claude-provider --list
# or
cpr -l

Display all installed providers with the active one highlighted.


🎯 Supported Providers

| Provider | Preset Key | Default Model | |----------|-----------|---------------| | Anthropic | anthropic | claude-sonnet-4.5 | | Z.ai (GLM) | zai | glm-4.7 | | MiniMax | minimax | minimax-m2.1 | | Kimi (Moonshot) | kimi | kimi-k2.5 | | Qwen (DashScope) | qwen | qwen-max-latest | | DeepSeek | deepseek | deepseek-chat | | Custom | custom | User defined |

💡 Tip: When using a preset, you can optionally specify a custom model to override the default.


🔧 How It Works

  1. Profiles are stored as ~/.claude/settings.<name>.json
  2. Switching copies the target profile to ~/.claude/settings.json
  3. Plugins preserved — Your enabled plugins are maintained when switching providers
  4. MCP Protocol ensures safe, structured file system interactions (plugin mode)

🐛 Troubleshooting

| Issue | Solution | |-------|----------| | Command not found | Run npm install -g claude-provider or check your PATH | | Plugin not found | Ensure you used the absolute path to the plugin directory | | Command not recognized | Restart Claude Code after installing the plugin | | VS Code won't open | The CLI will show the file path for manual editing |


📄 License

MIT © Rashed Iqbal