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

ask-cli-ai

v1.2.2

Published

AI CLI to help you with commands, coding, apps, and more from your terminal.

Readme

Ask CLI

NPM Version Min Node Version

A fast and lightweight AI-powered CLI tool to help you with commands, coding, apps and more.

  • 🤖 Get help about commands, coding, apps, etc.
  • 📝 Short and precise answers, just the info you need, straight to the point.
  • 🚀 Blazing fast speed, almost instant responses.
  • 🛡️ Safe by design, it cannot run commands or access your files without your explicit authorization.

Forget about switching between applications to know how to use a command or fix an error. Just ask your terminal how to do it.

Ask CLI demo showing quick terminal responses

Content

Why use Ask CLI?

Why use Ask CLI and not an AI agent like Claude or Gemini?

  • Ask CLI was created to do one thing and do it well: help you with commands, coding, apps and more from your terminal.
  • The AI models it uses are optimized to generate short, precise and fast answers.
  • No risk of prompt injection, Ask CLI cannot run commands or access your files by default.
  • No risk of running dangerous commands on your computer. See Running commands for more details.
  • Designed for anyone who wants fast, secure, and precise help directly in the terminal.

Installation

npm install -g ask-cli-ai

Usage

To use Ask CLI, you first need to set up the API key. See Select model to learn how.

Ask questions

# Basic usage
ask <your question>

# Examples
ask how to terminate a linux process
ask what is a javascript promise
ask how to create a git branch

# Using quotes
ask 'What does this command do: git config user.name "Ask CLI"?'

Aliases

You can use how and what as aliases for the ask command:

# Using 'how' alias
how to install docker on ubuntu

# Using 'what' alias
what is the difference between git merge and rebase

Running commands

By default, Ask CLI cannot run commands on your computer. However, you can use the -c or --command option to execute a command and include its output in your question. This allows Ask CLI to analyze errors, logs, or any command output and provide context-aware answers.

# Analyze an error
ask why is this failing -c "npm run build"

# Get help with command output
ask explain this output -c "docker ps -a"

# Debug issues
ask what is wrong here -c "git status"

Select model

You can select a model using the ask /models command. This will list all the available models and let you select the model you want to use.

Model selection screen

If it's the first time you select a model, you will be prompted to set the API key for the model's provider.

Supported models

Gemini

  • Gemini 3 Flash Preview
  • Gemini 3 Pro Preview
  • Gemini 2.5 Flash
  • Gemini 2.5 Flash Lite
  • Gemini 2.5 Pro

OpenAI

  • GPT-5 Mini
  • GPT-5 Nano
  • GPT-5
  • GPT-5.2
  • GPT-5.2 Pro
  • GPT-4.1

Anthropic

  • Claude Haiku 4.5
  • Claude Sonnet 4.5
  • Claude Opus 4.5

Connect to local or external providers

You can use the ask /connect command to connect to local models or external providers, using an OpenAI-compatible API, like llama.cpp, Ollama, Hugging Face, etc.

Connect screen

Reference

AI CLI to help you with commands, coding, apps and more.

Version: 1.2.2

Usage: ask <prompt..>

Commands:
  ask <prompt..>     Ask something. Alias: what, how                   [default]
  ask /models        Select a model
  ask /providers     Setup providers
  ask /config        Configuration
  ask /connect       Connect to an external provider using OpenAI-compatible API
  ask /history       List the chat history
  ask /clear         Clear the chat history

Positionals:
  prompt                                                                [string]

Options:
      --version  Show version number                                   [boolean]
      --help     Show help                                             [boolean]
  -c, --command  Command to execute                                     [string]

Examples:
  ask how to run a docker container
  how to setup my git account
  what is the chmod command
  ask what is using port 80 -c "netstat -ano"