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-account-switch

v1.2.0

Published

Multi-account profile manager for Claude Code

Readme

claude-account-switch

npm version npm downloads license

Multi-account profile manager for Claude Code.

한국어

Claude Code doesn't officially support multiple accounts. claude-account-switch uses the CLAUDE_CONFIG_DIR environment variable to manage separate profiles, each with its own OAuth credentials.

Quick Start

npx claude-account-switch init

The interactive wizard will guide you through creating profiles, migrating existing configs, and installing shell integration.

Platform guides: macOS · Linux · Windows

Installation

# Use directly with npx (recommended)
npx claude-account-switch init

# Or install globally
npm i -g claude-account-switch

Commands

| Command | Description | |---------|-------------| | claude-account-switch init | Interactive setup wizard | | claude-account-switch add <name> | Create a new profile | | claude-account-switch remove <name> | Remove a profile | | claude-account-switch list | List all profiles | | claude-account-switch use <name> | Switch active profile | | claude-account-switch migrate [name] | Migrate existing ~/.claude data into a profile | | claude-account-switch install-shell | Install shell integration |

Shell Integration

After running init or install-shell, these commands are available in your terminal:

| Command | Description | |---------|-------------| | claude | Run Claude with the active profile | | cpf <name> | Quick switch to a profile | | claude-pick | Interactive profile selector |

Supported shells:

| Shell | Platform | Config file | |-------|----------|-------------| | zsh | macOS / Linux | ~/.zshrc | | bash | macOS / Linux / Git Bash | ~/.bashrc | | fish | macOS / Linux | ~/.config/fish/config.fish | | PowerShell | Windows | $PROFILE |

How It Works

~/.claude-profiles/
├── meta.json              ← Profile metadata + active profile
├── _shared/
│   ├── settings.json      ← Shared settings (original)
│   └── commands/           ← Shared custom commands
├── work/
│   ├── .claude.json       ← Work account OAuth
│   ├── settings.json      → ../_shared/settings.json (symlink)
│   └── commands/          → ../_shared/commands/ (symlink)
└── personal/
    ├── .claude.json       ← Personal account OAuth
    ├── settings.json      → ../_shared/settings.json
    └── commands/          → ../_shared/commands/
  • Shared files (settings.json, commands/) are stored in _shared/ and linked into each profile
    • macOS/Linux: symlink
    • Windows: junction (dirs), symlink or copy (files — enable Developer Mode for symlink support)
  • Profile-specific files (.claude.json, plugins/, projects/) are kept independently
  • Temporary files (cache/, sessions/, etc.) are auto-created by Claude Code and not managed

Profile Name Rules

  • Lowercase letters, numbers, and hyphens only
  • Must start and end with a letter or number
  • Max 30 characters
  • Reserved names: _shared, default

Requirements

  • Node.js 18+
  • Claude Code CLI installed
  • Supported platforms: macOS, Linux, Windows (native + WSL)

Zero Dependencies

claude-account-switch has no external dependencies — it uses only Node.js built-in modules for instant npx startup.

License

MIT