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

v1.0.2

Published

Claude Version Manager — manage multiple Claude Code versions per-terminal, like conda

Downloads

281

Readme

✦ CVM — Claude Version Manager

Manage multiple Claude Code versions side-by-side. Switch per-terminal, like conda.

❯ cvm list
✦ Claude Code Versions

  ▸ 2.1.77  system  ● active
    2.3.0   cvm
    2.2.5   cvm

Features

  • Per-terminal switching — different terminals can run different versions simultaneously
  • System version detection — auto-detects your globally installed Claude Code
  • Zero-overhead prompt — exports $CVM_VERSION for shell prompt integration (no subprocess)
  • Simple — one shell function, no daemon, no background process

Install

npm install -g claude-cvm

Then restart your terminal, or:

source ~/.claude-versions/cvm.sh

Manual install

curl -o ~/.claude-versions/cvm.sh https://raw.githubusercontent.com/zheyong/cvm/main/cvm.sh
mkdir -p ~/.claude-versions
echo '[[ -s "$HOME/.claude-versions/cvm.sh" ]] && source "$HOME/.claude-versions/cvm.sh"' >> ~/.zshrc

Usage

# Install versions
cvm install 2.1.77
cvm install latest

# Activate in current terminal
cvm activate 2.1.77

# Open another terminal, use a different version
cvm activate latest

# Check status
cvm current
cvm list

# Deactivate (back to system claude)
cvm deactivate

# After upgrading system claude via npm
cvm refresh

How it works

CVM installs each version to ~/.claude-versions/<version>/ via npm, then cvm activate prepends that version's bin directory to the current shell's $PATH. Since each terminal has its own $PATH, different terminals can use different versions — just like conda activate.

~/.claude-versions/
├── cvm.sh              # the shell function (sourced in .zshrc)
├── 2.1.77/             # installed via: cvm install 2.1.77
│   └── node_modules/
│       └── .bin/claude
├── 2.3.0/
│   └── node_modules/
│       └── .bin/claude
└── .sys_version        # cached system version (for fast prompt)

Prompt integration (optional)

CVM exports $CVM_VERSION with the active version. You can display it in your prompt.

Starship

Add to ~/.config/starship.toml:

[env_var.CVM_VERSION]
symbol = "✦ "
style = "bold #E8976C"
format = "via [$symbol$env_value]($style) "

Result: ~/project on main ✦ 2.1.77

Oh My Zsh / vanilla zsh

Add to your .zshrc:

PROMPT='${CVM_VERSION:+✦ $CVM_VERSION }'"$PROMPT"

Powerlevel10k

In ~/.p10k.zsh, add a custom segment:

function prompt_cvm() {
  [[ -n "$CVM_VERSION" ]] && p10k segment -f 209 -t "✦ $CVM_VERSION"
}
# Then add 'cvm' to POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS

Compatibility

  • Shell: zsh, bash
  • OS: macOS, Linux
  • Requires: Node.js, npm
  • Works with: CC Switch — CVM manages CLI binary versions, CC Switch manages providers/API keys. They don't conflict.

Uninstall

npm uninstall -g claude-cvm
# Optionally remove installed versions:
rm -rf ~/.claude-versions

License

MIT