nima.hejazi
← Back to projects

ask: Terminal LLM Assistant

Python CLI LLM Terminal
Visit GitHub repo

ask is a Python CLI for natural language interaction with LLMs. It supports interactive chat mode, quick queries, command extraction, and tool integration.

Overview

  • Interactive chat mode via --it
  • Quick queries from the command line
  • Command extraction with -c (outputs bare commands)
  • Tool support via -t ./tools.sh
  • Provider configuration on first run: Mock, Ollama, LM Studio, Anthropic, ChatGPT

Installation

Homebrew (macOS)

brew tap nimahejazi/tap
brew install nh-ask-cli

You may need brew trust nimahejazi/tap.

pip

pip install nh-ask-cli

From Source

git clone https://github.com/nimahejazi/ask.git
cd ask
pip install -e .

Usage

# Interactive chat mode
ask --it

# Quick query
ask "What is the capital of France?"

# Command mode (extract executable commands)
ask -c "List files in current directory"

# With tools
ask -t ./tools.sh "Do something with tools"