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

sc-claude

v0.0.7

Published

CLI tool to switch Claude Code custom API configurations

Readme


    ____         _ __       __       ________                __
   / __/      __(_) /______/ /_     / ____/ /___ ___  ______/ /__
   \__ \ | /| / / / __/ ___/ __ \   / /   / / __ `/ / / / __  / _ \
  ___/ / |/ |/ / / /_/ /__/ / / /  / /___/ / /_/ / /_/ / /_/ /  __/
 /____/|__/|__/_/\__/\___/_/ /_/   \____/_/\__,_/\__,_/\__,_/\___/

 $ sc
 ? Select API profile to switch to:
   ▶ production (current)
     development
     local-proxy

✨ Features

  • 🚀 One Command Switch - Switch API configurations instantly with sc
  • 🔐 Multiple Profiles - Manage unlimited API configurations
  • 🎯 Auto Detection - Automatically imports your existing environment variables
  • Tab Completion - Shell auto-completion out of the box
  • 🖥️ Cross Platform - Works on macOS, Linux, and Windows

📦 Installation

npm install -g sc-claude

That's it! The CLI will:

  • ✅ Auto-detect your current ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL
  • ✅ Create a default profile from your existing config
  • ✅ Install shell completions for zsh/bash

🚀 Quick Start

# Interactive switch (shows all profiles)
sc

# Add a new API profile
sc add

# Quick switch to a specific profile
sc use production

# Apply changes to current terminal
eval "$(sc env)"

📖 Commands

| Command | Description | |---------|-------------| | sc | Interactive profile selector | | sc use <name> | Quick switch to a profile | | sc add | Add a new profile | | sc edit | Edit an existing profile | | sc remove | Remove a profile | | sc list | List all profiles | | sc env | Output current profile as export statements |

Examples

Adding a new profile:

$ sc add
? Profile name: my-custom-api
? ANTHROPIC_AUTH_TOKEN: sk-ant-xxx...
? ANTHROPIC_BASE_URL: https://my-proxy.com/api

✓ Profile "my-custom-api" added successfully

Listing profiles:

$ sc list

API Profiles:

  ▶ production (current)
    code.example.com/api
    development
    dev.example.com/api
    local
    127.0.0.1:8080

Switching profiles:

$ sc use development

✓ Switched to development

💡 Run the following command to apply changes immediately:
   eval "$(sc env)"

⚙️ How It Works

Switch Claude manages your API configurations in ~/.claude/sc-profiles.json and updates your shell configuration file (~/.zshrc or ~/.bashrc) with the active profile's environment variables.

┌─────────────────┐     ┌──────────────────┐     ┌─────────────┐
│  sc-profiles.json │ ──▶ │  Shell Config    │ ──▶ │  Claude Code │
│  (your profiles) │     │  (env exports)   │     │  (uses API)  │
└─────────────────┘     └──────────────────┘     └─────────────┘

Configuration Location

| File | Path | Description | |------|------|-------------| | Profiles | ~/.claude/sc-profiles.json | All your API configurations | | Shell exports | ~/.zshrc or ~/.bashrc | Environment variables (managed block) |

🔧 Shell Completion

Tab completion is automatically installed. Just type:

sc <TAB>
# Shows: use  add  remove  edit  list  env

🤝 Use Cases

  • Multiple API Keys - Switch between personal and work accounts
  • Custom Proxies - Toggle between direct API and proxy endpoints
  • Development/Production - Separate configs for different environments
  • API Testing - Quick switch for debugging different endpoints

📄 License

MIT © 2024