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

v1.0.0

Published

Manage Claude Code API subscriptions - switch between different API providers and models

Readme

claude-select

Manage multiple Claude Code API subscriptions. Switch between providers (DeepSeek, Anthropic, etc.) and models, with automatic environment configuration.

Features

  • CRUD subscription management - Add, edit, list, and delete API subscriptions
  • Switch subscriptions - Activate any saved subscription (sets ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, ANTHROPIC_SMALL_FAST_MODEL)
  • Clear activation - Revert to Claude's official defaults in one command
  • Interactive TUI - Arrow-key menu when run without arguments
  • Auto-load wrapper - Claude automatically loads your settings on startup
  • Cross-platform - Linux, macOS, Windows (PowerShell/cmd)

Install

npm install -g claude-select

Requires Node.js >= 18.

Quick start

# Add a subscription (interactive)
claude-select add

# Switch to it
claude-select use "DeepSeek Flash"

# Apply to current terminal
source ~/.claude-select.env

# Install auto-load wrapper (so `claude` always picks up your config)
claude-select setup

# Now claude uses your selected subscription automatically
claude

Commands

claude-select                  # Interactive TUI menu
claude-select add              # Add new subscription
claude-select use <name>       # Activate a subscription
claude-select edit <name>      # Edit an existing subscription
claude-select rm <name>        # Delete a subscription
claude-select list             # List all subscriptions
claude-select status           # Show current activation
claude-select clear            # Revert to Claude official defaults
claude-select setup            # Install claude auto-load wrapper
claude-select setup --uninstall  # Remove wrapper, restore original

How it works

  1. Config storage: Subscriptions are stored in ~/.config/claude-select/subscriptions.json (XDG_CONFIG_HOME). Each subscription has its own API key.

  2. Env file: When you activate a subscription, claude-select writes ~/.claude-select.env with the correct ANTHROPIC_* environment variables.

  3. Wrapper (setup): The setup command replaces the claude binary with a thin wrapper that sources the env file before launching the real Claude Code executable. This ensures Claude always uses your current subscription.

  4. Shell integration: setup also injects a sourcing line into your shell rc file (.bashrc, .zshrc, config.fish) so new terminals auto-load your settings.

Cross-platform

| | Linux | macOS | Windows | |---|---|---|---| | Config dir | ~/.config/claude-select/ | ~/Library/Preferences/claude-select/ | %APPDATA%/claude-select/ | | Env file | ~/.claude-select.env | same | %APPDATA%/claude-select/env.bat | | Wrapper type | bash script | bash script | batch file (.cmd) | | Shell rc | .bashrc / .zshrc / fish.config | same | PowerShell $PROFILE |

Security

  • API keys stored with 600 permissions on Linux/macOS
  • Keys are masked in the TUI (e.g. sk-...-xxxx)
  • Never logged or printed in error messages

Example: Multiple providers

# Add DeepSeek
claude-select add
# Name: DeepSeek Flash
# URL: https://api.deepseek.com/anthropic
# Model: deepseek-v4-flash
# Key: sk-...

# Add Anthropic official
claude-select add
# Name: Anthropic Opus
# URL: https://api.anthropic.com
# Model: claude-opus-4-7
# Key: sk-ant-...

# Switch between them
claude-select use "DeepSeek Flash"
claude-select use "Anthropic Opus"

License

MIT