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

@cloudesk/cvm

v1.1.1

Published

Claude Code settings profile manager

Readme

cvm

Claude Code settings profile manager — quickly switch between Claude Code configurations.

Installation

npm install -g @cloudesk/cvm

Usage

cvm profile add <name>       Add a new profile (interactive prompts)
cvm profile update <name>    Update an existing profile (field picker)
cvm profile list             List all profiles (* = active)
cvm profile activate <name>  Switch to a profile (global)
cvm profile show <name>      Show profile details
cvm profile current          Print the active profile name
cvm profile delete <name>    Delete a profile
cvm use <name>               Merge a profile into .claude/settings.local.json (local)

Profiles

Profiles are stored as ~/.claude/settings-<name>.json. Activating a profile merges it into ~/.claude/settings.json, which Claude Code reads at startup.

Each profile captures these environment variables:

  • ANTHROPIC_AUTH_TOKEN
  • ANTHROPIC_BASE_URL
  • ANTHROPIC_MODEL
  • ANTHROPIC_DEFAULT_OPUS_MODEL
  • ANTHROPIC_DEFAULT_SONNET_MODEL
  • ANTHROPIC_DEFAULT_HAIKU_MODEL
  • CLAUDE_CODE_SUBAGENT_MODEL
  • CLAUDE_CODE_EFFORT_LEVEL

Typical use case: switching between different API endpoints (custom proxy, different regions) or different model configurations without editing files by hand.

Global vs Local

  • cvm profile activate <name> — Merges the profile into ~/.claude/settings.json (global, applies to all projects). If the file already exists, profile values overwrite matching keys while preserving other existing keys.
  • cvm use <name> — Merges the profile into .claude/settings.local.json in the current directory (local, project-specific). If the file already exists, profile values overwrite matching keys while preserving other existing keys.

Project Structure

src/
├── index.ts                    # Entry point
├── lib/
│   ├── fields.ts               # Environment variable field definitions
│   ├── validation.ts           # Profile name validation
│   └── profile-manager.ts      # ProfileManager class (all filesystem operations)
└── commands/
    ├── profile.ts              # profile subcommands (add, update, list, delete, activate, show, current)
    └── use.ts                  # use top-level command

Development

npm run build       # Compile to dist/
npm run dev         # Run in development (e.g. npm run dev -- profile list)
npm test            # Run tests
npm run lint        # Lint with eslint
npm run format      # Format with prettier

Changelog

v1.1.1

  • cvm profile activate now merges into settings.json instead of replacing it — existing keys (e.g. permissions) and non-profile env vars are preserved.

v1.1.0

  • Added cvm use <name> command to merge a profile into .claude/settings.local.json (project-local override).
  • Added MIT license.
  • Added Chinese README.

v1.0.0

  • Initial release: cvm profile subcommands (add, update, list, delete, activate, show, current).