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

ssh-keyman

v2.0.1

Published

A cli tool to manage multiple ssh keys and switch between different ssh keys with ease & grace.

Readme

ssh-keyman

Build Status Tests Test Coverage Tests Passing

npm version npm downloads Node Version

License: ISC Maintained PRs Welcome

Last Commit Issues Pull Requests Stars

A sophisticated key manager cli tool to manage multiple ssh keys and switch between different ssh keys with ease & grace.

CI/CD Status

| Workflow | Status | |----------|--------| | Build & Test | CI | | Test Coverage | Coverage | | NPM Publish | Publish |

📊 View Detailed Status Report →

Platform Support

Tests run automatically on:

  • Ubuntu (Linux) - Node.js 16.x, 18.x, 20.x
  • macOS - Node.js 16.x, 18.x, 20.x
  • Windows - Node.js 16.x, 18.x, 20.x

35 Tests | 75%+ Coverage | All Platforms Passing

Overview


Normally people have difficulty managing different ssh keys for different Github / Bitbucket / Gitlab accounts. This package makes your life easier by creating different ssh profiles & manage them for you. So you can concentrate on your work.

Installation

npm install -g ssh-keyman

Usage

➜  ~  ssh-keyman -h

SSH KeyMan - SSH Key Environment Manager

Usage: ssh-keyman <command> [options]

Commands:
  -i           Initialize keyman directory and default environment
  -c [name]    Create new ssh environment (interactive if no name)
  -s [name]    Switch to another ssh environment (interactive if no name)
  -d [name]    Delete ssh environment (interactive if no name)
  -ls          List all environments
  -h           Show help
  -v           Show version

Tip: Run commands without arguments for interactive mode

✨ New Interactive Features

ssh-keyman now supports interactive mode with autocomplete! Simply run commands without arguments to get an enhanced interactive experience:

  • ssh-keyman -s - Interactive environment switcher with autocomplete
  • ssh-keyman -c - Interactive environment creator with validation
  • ssh-keyman -d - Interactive environment deletion with confirmation

Initialisation

Calling ssh-keyman -i creates a ~/.sshkeyman/ directory if it doesn't exist, and copies your current ~/.ssh as the 'default' ssh profile.

➜  ~  ssh-keyman -i

🔑 Initializing SSH KeyMan...

✓ Created ssh-keyman directory: /Users/shahidullahkhan/.sshkeyman
✓ Created default environment
✓ Activated 'default' environment

✨ SSH KeyMan initialized successfully!

Create a new ssh environment

With environment name:

➜  ~  ssh-keyman -c newenvironment
✓ Saved current ssh config to default
✓ Created directory for new environment: /Users/shahidullahkhan/.sshkeyman/newenvironment
? Do you want to switch to newly created environment (newenvironment)? (Y/n) y
✓ Activated environment 'newenvironment'

Interactive mode (just run without name):

➜  ~  ssh-keyman -c
? Enter name for the new environment: production
✓ Saved current ssh config to default
✓ Created directory for new environment: /Users/shahidullahkhan/.sshkeyman/production
? Do you want to switch to newly created environment (production)? (Y/n) 

A blank environment will be created. Then modify content of ~/.ssh/. Then whenever you will switch to another environment, your changes will be saved.

List available ssh environments

➜  ~  ssh-keyman -ls

Available environments:
  • default
  ✓ newenvironment (active)

Switch to a specific ssh environment

With environment name:

➜  ~  ssh-keyman -s default
✓ Saved current ssh config to 'newenvironment'
✓ Activated environment 'default'

Interactive mode with autocomplete (just run without name):

➜  ~  ssh-keyman -s
? Select environment to switch to: (Use arrow keys or type to search)
❯ default
  production
  staging

Start typing to filter environments with autocomplete!

Delete a specific ssh environment

With environment name:

➜  ~  ssh-keyman -d newenvironment
✓ Successfully deleted environment 'newenvironment'

Interactive mode with autocomplete and confirmation (just run without name):

➜  ~  ssh-keyman -d
? Select environment to delete: (Use arrow keys or type to search)
❯ newenvironment
  staging
? Are you sure you want to delete environment 'newenvironment'? (y/N) y
✓ Successfully deleted environment 'newenvironment'

Get the current ssh-keyman version

➜  ~  ssh-keyman -v
ssh-keyman version 1.0.2

Development

Running Tests

# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

# Run tests with coverage
npm run test:ci

Project Structure

ssh-keyman/
├── src/
│   ├── __tests__/          # Test files
│   ├── cli.js              # CLI entry point
│   ├── cliOptions.js       # CLI argument parsing
│   ├── commands.js         # Command implementations
│   ├── constants.js        # Constants and configuration
│   └── extendFs.js         # File system utilities
├── .github/
│   └── workflows/          # GitHub Actions CI/CD
├── index.js                # Main entry point
└── package.json

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

ISC, a permissive free software license published by the Internet Software Consortium.

Contact

Made with ❤️ by Shahid Ullah Khan from Pakistan.