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-switch

v1.3.0

Published

Claude CLI configuration management utility for switching between different API endpoints and authentication tokens

Downloads

11

Readme

Claude Code Switch

Claude Code CLI 配置管理工具,用于在不同的 API 端点和身份验证令牌之间切换。

安装

npm install -g claude-switch

使用方法

基本命令

# 查看帮助
cs help

# 列出所有配置(带序号)
cs list

# 切换配置并启动 Claude
cs myconfig
cs 1              # 使用序号

# 只切换配置,不启动 Claude  
cs use myconfig
cs use 1          # 使用序号

# 创建新配置
cs new myconfig

# 删除配置
cs delete myconfig
cs delete 1       # 使用序号

# 显示状态并启动 Claude
cs start

# 显示环境变量设置命令
cs env

配置文件格式

配置文件格式为 {名称}-settings.json

{
  "ANTHROPIC_BASE_URL": "https://api.anthropic.com",
  "ANTHROPIC_AUTH_TOKEN": "your-auth-token-here"
}

功能特性

  • ✅ 支持多个 Claude 配置的管理
  • ✅ 支持序号快速选择(如 cs use 1
  • ✅ 支持配置的创建、删除和切换
  • ✅ 交互式配置创建
  • ✅ 带序号的配置列表显示
  • ✅ 简洁的命令格式(如 cs listcs start
  • ✅ 跨平台支持(Windows、macOS、Linux)
  • ✅ 完整的中文帮助信息

命令格式

所有命令都使用简洁的格式:

| 命令 | 说明 | |------|------| | cs list | 列出所有可用配置 | | cs start | 显示状态并启动 Claude | | cs use <config> | 切换配置但不启动 Claude | | cs new [config] | 创建新配置 | | cs delete [config] | 删除配置 | | cs env | 显示环境变量设置命令 | | cs help | 显示帮助信息 | | cs <config> | 切换到指定配置并启动 Claude |

版本历史

  • 1.3.0: 简化命令格式,统一使用简洁风格(如 cs list),移除 --current 选项
  • 1.2.1: 添加中文帮助信息
  • 1.2.0: 添加序号支持和删除配置功能
  • 1.1.0: 基础配置管理功能

许可证

MIT