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

@neimadvn/aicli

v1.1.1

Published

AI-powered CLI tool that converts natural language to shell commands

Readme

AICLI

A command-line tool that converts natural language instructions into shell commands using OpenAI's GPT-4o-mini.

Installation

npm install -g @neimadvn/aicli

After installation, you'll need to set up your OpenAI API key:

aicli config --set-api-key YOUR_API_KEY

Troubleshooting

If you encounter permissions issues, particularly on Unix-based systems (macOS, Linux), you may need to:

  1. Make sure the CLI is executable:

    chmod +x $(which aicli)
  2. If you're using npm with root/sudo privileges:

    sudo chmod +x $(npm root -g)/aicli/dist/index.js

Usage

Convert natural language to shell commands

aicli "copy file dist into folder ~"

The tool will generate a shell command (e.g., cp ./dist ~), show it to you, and ask for confirmation before executing.

Multi-command processing

For complex requests, the tool can generate multiple commands:

aicli "setup a new nodejs project, initialize git, create a README with hello world"

Each command will be presented individually for confirmation before execution. You can:

  • Approve each command individually
  • Skip commands you don't want to execute
  • Use chained commands (with &&) when they should execute as a unit

Interactive mode

You can run the tool without arguments to be prompted for your instruction:

aicli

Configuration

View current configuration:

aicli config --view

Set OpenAI API key:

aicli config --set-api-key YOUR_API_KEY

Change the model (default is gpt-4o-mini):

aicli config --set-model gpt-4o

Features

  • Convert natural language to shell commands
  • Support for multi-command sequences with individual confirmation
  • Provides OS context to the AI model
  • Confirmation before command execution
  • Configurable OpenAI API key and model
  • Simple and direct interface

Development

Building from source

git clone https://github.com/neimadvn/aicli.git
cd aicli
npm install
npm run build

Run in development mode

npm run dev

License

MIT