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

@ben1849/claude-switch

v0.6.1

Published

Interactive CLI tool to switch Claude Code Model API providers

Readme

claude-switch

Interactive TUI tool to switch Claude Code between API providers.

? Select Provider (ESC to quit)
❯ Claude (Native)  ● active
  Volcano Ark      ○ not configured
  Zhipu (CN)       ✔ configured
  MiniMax (CN)     ○ not configured
  Kimi (CN)        ○ not configured

Features

  • Switch Claude Code between multiple API providers with one command
  • Per-provider API key management (configure / reconfigure / remove)
  • MCP Server management — enable/disable MCP servers across providers
  • Model descriptions for Ark models (from official documentation)
  • Native env backup & restore when switching away from Claude
  • Shell env override detection (ANTHROPIC_AUTH_TOKEN, ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL)
  • ESC key navigation at every menu level
  • File-based logging with API key redaction

Supported Providers

| Provider | Models | |---|---| | Claude (Native) | Default Anthropic API | | Volcano Ark | doubao-seed-2.0-code, doubao-seed-2.0-pro, doubao-seed-2.0-lite, doubao-seed-code, minimax-m2.7, glm-5.1, deepseek-v3.2, kimi-k2.6, ark-code-latest | | Zhipu (CN) | GLM-5.1, GLM-5-Turbo, GLM-5 | | MiniMax (CN) | MiniMax-M2.7 | | Kimi (CN) | kimi-for-coding |

Install

npm install -g @ben1849/claude-switch

Then run:

claude-switch

How It Works

claude-switch writes provider-specific environment variables to ~/.claude/settings.json (the env field). After switching, restart Claude Code to apply changes.

Config is stored at ~/.claude-switch/config.json (API keys, native env backup).

Logs are written to ~/.claude-switch/logs/YYYY-MM-DD.log with daily rotation and sensitive data redacted.

Built-in Tool Compatibility

Claude Code has server-side tools (Web Search, Web Fetch, etc.) that rely on Anthropic's infrastructure. When using a third-party provider, these tools may be unavailable or behave differently.

Important: After switching providers, always start a new Claude Code session. Reusing the previous session may cause API errors due to tool or parameter incompatibility between providers.

MCP Server Management

Use the ⚙ Manage MCP Servers entry in the main menu to enable/disable MCP servers. MCPs are independent of providers — you can use Zhipu's MCP servers while running on Ark's model, as long as you have the corresponding API key configured.

| MCP Server | Provider | Type | Description | |---|---|---|---| | zai-mcp-server | Zhipu | stdio/npx | Image analysis, video understanding, OCR | | web-search-prime | Zhipu | http | Web search | | web-reader | Zhipu | http | Web page reading | | zread | Zhipu | http | GitHub repo exploration | | MiniMax | MiniMax | stdio/uvx | Web search + image understanding |

Zhipu MCPs: Provider already includes these capabilities via API. MCPs serve as fallback. MiniMax MCP: Requires uvx installed.

Development

npm install
npm run build
npm start

License

MIT