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

@dattranx/cce

v0.1.3

Published

CLI to switch between multiple Claude Code configurations

Readme

cce

Switch between multiple Claude Code configurations from the CLI.

Manage named configs with different endpoints, API keys, and models — then launch claude with the right environment in one command.

Install

npm install -g @dattranx/cce

Or for local development:

git clone <repo-url> cce && cd cce
npm install
npm link

Requires Node.js >= 18 and Claude Code CLI installed.

Quick Start

# Create a config
cce create

# Launch claude with that config
cce glm

# Pass any claude flags through 
cce glm --dangerously-skip-permissions

# Shorthands flags
cce glm -sp 

Commands

cce create [name]

Create or update a config. If name is provided, it is used as the profile name and the name prompt is skipped.

Interactive prompts for:

  • Name — e.g. claude, glm (only when not provided as an argument)
  • Endpoint URL — e.g. https://api.anthropic.com
  • API Key — hidden input
  • Models — comma or space separated list
  • Default Model — select from the list

Re-running cce create with an existing name updates that config.

cce create
cce create glm

cce edit <name>

Edit the endpoint URL and API key for an existing config. Models and default model are preserved.

cce <name> [flags]

Launch claude with the named config's environment variables. All unknown flags pass through to claude.

cce glm
cce glm --name project-a --model glm-5.1

cce list

Display all configs in a table:

  NAME     ENDPOINT                         DEFAULT MODEL
  ------   ---------------------------      --------------
  glm        https://api.z.ai/api/anthropic   glm-5.0
  claude     https://api.anthropic.com        claude-opus-4-6

cce show <name>

Display a config's details (API key masked):

  Config: work
    Endpoint:      https://api.anthropic.com
    API Key:       sk-a...xxxx
    Models:        claude-sonnet-4-6, claude-opus-4-6
    Default Model: claude-sonnet-4-6

cce delete <name>

Remove a config. Prompts for confirmation.

cce help

Show a nicely formatted overview of all commands and flags:

cce — Switch between multiple Claude Code configurations

USAGE
  cce <command> [options]

COMMANDS
  create [name]    Create or update a config interactively
  list             Display all saved configs in a table
  show <name>      Display details for a specific config
  edit <name>      Edit endpoint and API key for a config
  delete <name>    Remove a config (asks for confirmation)
  <name> [flags]   Launch claude with the named config
  help             Show this help message

GLOBAL FLAGS
  --version  Show version number
  --help     Show help for a specific command

PASS-THROUGH FLAGS
  When running cce <name>, any extra flags are forwarded to claude:
  cce glm --chat --model glm-5.0

EXAMPLES
  cce create          Create a new config
  cce create glm      Create or update "glm" config
  cce list            Show all configs
  cce show work       Show details of "work" config
  cce edit work       Edit endpoint and API key for "work"
  cce delete work     Delete "work" config
  cce glm             Launch claude with "glm" config
  cce glm --model glm5.1      Launch claude with "glm" config + pass --model

Config Storage

Configs are stored at ~/.cce/configs.json with restrictive permissions:

  • Directory: ~/.cce/ (mode 0o700)
  • File: configs.json (mode 0o600)

Config schema:

{
  "configs": [
    {
      "name": "claude",
      "endpoint": "https://api.anthropic.com",
      "apiKey": "sk-ant-...",
      "models": ["claude-sonnet-4-6", "claude-opus-4-6"],
      "defaultModel": "claude-sonnet-4-6"
    }
  ]
}

How It Works

When you run cce <name>, the tool:

  1. Loads the config from ~/.cce/configs.json
  2. Sets environment variables: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL
  3. Spawns claude with your flags and the injected environment
  4. Forwards claude's exit code

Environment Variables

| Variable | Source | Purpose | |----------|--------|---------| | ANTHROPIC_BASE_URL | config.endpoint | API endpoint | | ANTHROPIC_AUTH_TOKEN | config.apiKey | Authentication | | ANTHROPIC_MODEL | config.defaultModel | Default model |

License

MIT