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

axinstall

v1.3.0

Published

Universal installer for AI CLI agents (defaults to npm)

Readme

axinstall

Install AI CLI agents (Claude Code, Codex, Gemini, etc.) in any environment.

Quick Start

# Install Claude Code globally
npx -y axinstall "claude"

# Install with a specific package manager
npx -y axinstall "claude" --with "npm"

# Preview what would be installed (dry run)
npx -y axinstall "claude" --dry-run

# List supported agents
npx -y axinstall --list-agents

# Check installed agents and available package managers
npx -y axinstall --status

# Enable verbose output
npx -y axinstall "claude" --verbose

Prerequisites

  • Node.js >=22.14.0
  • Use pnpm dlx (recommended) or npx (bundled with npm) for one-off runs
  • Examples assume a POSIX shell (sh/bash/zsh); adjust for PowerShell or CMD

By default, axinstall installs agents using npm. This means npm must be available unless you explicitly override the installer:

  • --with <installer> (e.g., --with "pnpm")
  • AXINSTALL_WITH=<installer>

Supported installers:

  • npm
  • pnpm
  • bun
  • yarn
  • Homebrew (brew)

Conventions

  • Prefer long flags in scripts (--verbose instead of -v)
  • Examples include explicit quoting for flag values and arguments

Custom Paths

Override the default binary lookup by setting environment variables:

export AXINSTALL_NPM_PATH=/path/to/npm
export AXINSTALL_PNPM_PATH=/path/to/pnpm
export AXINSTALL_BUN_PATH=/path/to/bun
export AXINSTALL_YARN_PATH=/path/to/yarn
export AXINSTALL_BREW_PATH=/path/to/brew

Examples

Install agents

# Install using npm (default)
npx -y axinstall "claude"
npx -y axinstall "codex"
npx -y axinstall "gemini"

# Force a specific package manager
npx -y axinstall "claude" --with "npm"
npx -y axinstall "opencode" --with "brew"

# Install locally (not globally)
npx -y axinstall "claude" --local

Pipeline examples

# Get list of agent CLI names
npx -y axinstall --list-agents | tail -n +2 | cut -f1

# Find agents from a specific provider
npx -y axinstall --list-agents | tail -n +2 | awk -F'\t' '$4 == "Anthropic" {print $1}'

# Get available installers only
npx -y axinstall --status --only "installers" | tail -n +2 | awk -F'\t' '$4 == "available" {print $2}'

# Count installed vs not found agents
npx -y axinstall --status --only "agents" | tail -n +2 | cut -f4 | sort | uniq -c

Output

--list-agents prints a tab-separated header and rows with columns:

CLI	NAME	PACKAGE	PROVIDER

--status prints a tab-separated header and rows with columns:

TYPE	ID	NAME	STATUS	VERSION	PROVIDER	PACKAGE
  • TYPE values: AGENT | INSTALLER
  • STATUS values:
    • for AGENT: installed | not_found
    • for INSTALLER: available | not_found
  • --only values: "all" | "agents" | "installers"

Agent Rule

Add to your CLAUDE.md or AGENTS.md:

# Rule: `axinstall` Usage

Run `npx -y axinstall --help` to learn available options.

Use `axinstall` to install AI CLI agents in any environment. It uses the
requested package manager (via `--with` / `AXINSTALL_WITH`) and uses npm
by default.

License

MIT