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 🙏

© 2025 – Pkg Stats / Ryan Hefner

claude-code-switcher

v1.1.5

Published

A command-line tool for switching between different Claude API configurations

Readme

Claude配置切换工具 (CCS)

一个用于在不同的 Claude Code API 配置之间进行切换的命令行工具。

功能

  • API配置并提示选择
  • WebDAV网盘集成
    • 配置WebDAV网盘连接设置
    • 上传配置文件到WebDAV网盘
    • 配置切换后可选择同步到网盘

安装

npm install -g claude-code-switcher

使用文档

1. 添加新的API配置

ccs add <alias> <key> <url>

通过命令行直接添加新的API配置到配置文件中。

参数说明:

  • alias: 配置别名,用于标识该配置
  • key: Claude API 密钥 (如: sk-xxxxxxx)
  • url: API 基础URL (如: https://api.example.com)

使用示例:

# 添加一个新的配置
ccs add my-api sk-xxxxxxxxxxxxxxxx https://api.example.com

2. 获取API配置列表

ccs ls

3. webdav配置

webdav.json - WebDAV网盘配置(可选)

存储WebDAV网盘连接设置,格式如下:

{
  "url": "https://your-webdav-api.com",
  "username": "your-username",
  "password": "your-password"
}

2. 删除的API配置

ccs del

打开配置文件位置

# 打开API配置文件
ccs open api

# 打开配置目录
ccs open dir

此命令支持跨平台:

  • macOS: 使用 open 命令
  • Windows: 使用 start 命令
  • Linux: 使用 xdg-open 命令

直接设置当前使用的API配置

ccs use <序号>

例如:

ccs use 2

输出示例:

当前选择的配置:
{
  "name": "zone",
  "config": {
    "env": {
      "ANTHROPIC_AUTH_TOKEN": "sk-xxxxxx",
      "ANTHROPIC_BASE_URL": "https://zone.veloera.org/pg",
      "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
    },
    "permissions": {
      "allow": [],
      "deny": []
    }
  }
}

? 确认切换到此配置? Yes

成功切换到配置: zone

WebDAV 网盘同步

# WebDAV 子命令方式(推荐)
ccs webdav config          # 配置WebDAV网盘设置
ccs webdav upload          # 上传配置到WebDAV网盘
ccs webdav download        # 从网盘下载配置
ccs webdav list           # 列出网盘中的文件
ccs webdav sync           # 双向同步配置

# 兼容性命令
ccs webdav-config
ccs webdav-upload
ccs webdav-download

显示帮助信息

ccs --help

输出示例:

Usage: ccs [options] [command]

Claude配置切换工具

Options:
  -v, --version      显示版本信息
  -h, --help         display help for command

Commands:
  list               列出所有可用的API配置并提示选择
  add <alias> <key> <url>  添加新的API配置
  use <index>        设置当前使用的API配置
  current            显示当前激活的配置
  open <type>        打开配置文件位置 (type: api|dir)
  webdav              配置webdav网盘设置
  help [command]     display help for command