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

@rezkycodes/ccswitcher

v1.0.0

Published

Terminal UI for switching Claude Code models & env settings

Downloads

35

Readme

ccswitcher

Terminal UI for switching Claude Code models and editing environment settings.

Quickly change models fetched from your local API, apply one model to all keys, or edit base URL and auth token — all from an interactive terminal menu.

Note: This tool is designed specifically for use with 9router — a local API router/proxy that provides the /v1/models endpoint. Make sure 9router is running before using ccswitcher.

Requirements

  • Node.js >= 16
  • Claude Code installed (requires ~/.claude/settings.json to exist)
  • 9router running locally (provides the model API endpoint)

Installation

npm (recommended)

npm install -g @rezkycodes/ccswitcher

From source — Linux / macOS / WSL

git clone [email protected]:rezkycodes/ccswitcher.git
cd ccswitcher
chmod +x install.sh
./install.sh

From source — Windows

git clone [email protected]:rezkycodes/ccswitcher.git
cd ccswitcher
install.bat

One-liner (no clone)

npx @rezkycodes/ccswitcher

Usage

ccswitcher

You'll see a menu like:

  ╔═══════════════════════════════════════════╗
  ║   ⚡ ccswitcher v1.0.0                   ║
  ║   Claude Code Model Switcher             ║
  ╚═══════════════════════════════════════════╝
📁  ~/.claude/settings.json

╭────────────────────────────────────────┬──────────────────────────────────────────────────────────╮
│ Key                                    │ Value                                                    │
├────────────────────────────────────────┼──────────────────────────────────────────────────────────┤
│ 🌐 ANTHROPIC_BASE_URL                  │ http://localhost:20128/v1                                │
│ 🔑 ANTHROPIC_AUTH_TOKEN                │ sk-xxx...                                                │
│ 🤖 MODEL                               │ kr/claude-sonnet-4.5 ●                                   │
│ 🧠 OPUS_MODEL                          │ kr/claude-sonnet-4.5                                     │
│ 🎵 SONNET_MODEL                        │ kr/claude-sonnet-4.5                                     │
│ 🌸 HAIKU_MODEL                         │ kr/claude-sonnet-4.5                                     │
╰────────────────────────────────────────┴──────────────────────────────────────────────────────────╯

❯ 🤖  Edit Default Model
  🧠  Edit Opus Model
  🎵  Edit Sonnet Model
  🌸  Edit Haiku Model
  ───────────────────────────────────
  🔄  Apply same model to ALL keys
  ───────────────────────────────────
  🌐  Edit Base URL
  🔑  Edit Auth Token
  ───────────────────────────────────
  💾  Save & Exit
  🚪  Quit without saving

Menu Options

| Key | Action | |-----|--------| | 1 | Choose model for ANTHROPIC_MODEL | | 2 | Choose model for ANTHROPIC_DEFAULT_OPUS_MODEL | | 3 | Choose model for ANTHROPIC_DEFAULT_SONNET_MODEL | | 4 | Choose model for ANTHROPIC_DEFAULT_HAIKU_MODEL | | a | Apply the same model to all 4 keys at once | | u | Edit ANTHROPIC_BASE_URL | | t | Edit ANTHROPIC_AUTH_TOKEN | | s | Save changes and exit | | q | Quit without saving |

Model Selector

Models are fetched from {ANTHROPIC_BASE_URL}/models and grouped by provider:

  🔷  Kiro (6)
    claude-sonnet-4.5  ● current
    claude-haiku-4.5
    deepseek-3.2
  🐙  Github Copilot (24)
    gpt-4o
    gpt-5.2
    claude-sonnet-4.6
  🌀  Antigravity (6)
    gemini-3.1-pro-high
    gemini-3.1-pro-low

Use arrow keys to navigate, Enter to select.

Provider Labels

Known providers are mapped automatically. Unknown providers get auto-generated labels from their prefix.

| Prefix | Label | Icon | |--------|-----------------|------| | kr | Kiro | 🔷 | | gh | Github Copilot | 🐙 | | kc | KiloCode | ⚡ | | ag | Antigravity | 🌀 | | cl | CLine | 🟣 | | cx | Codex | 🧬 | | if | IFlow | 🌊 | | nvidia | NVIDIA | 💚 | | ollama | Ollama | 🦙 | | glm | GLM | 🔮 | | gc | Gemini CLI | 💎 |

Uninstall

npm uninstall -g @rezkycodes/ccswitcher

License

MIT © 2026 rezkycodes