CLI tool for querying LLMs from the terminal
Top 68.9% on sourcepulse
This tool allows users to interact with various Large Language Models (LLMs) directly from their terminal, streamlining workflows by enabling natural language queries for command generation, code explanation, and data extraction. It targets developers and power users seeking to leverage AI for shell tasks and code-related assistance.
How It Works
The tool acts as an interface to multiple LLM providers, including OpenAI, Anthropic, Ollama, Gemini, and Groq. Users can pipe command-line output or file contents into the ask
command, providing context for the LLM. It supports specifying models, enabling web search, and formatting output as commands, breakdowns, or structured data types.
Quick Start & Requirements
npm i -g shell-ask
~/.config/shell-ask/config.json
with API keys.Highlighted Details
-r
or --reply
.-c
or --command
.-s
or --search
flag.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README mentions that disabling streaming output (--no-stream
) provides better markdown syntax highlighting, implying that streaming output may have rendering issues in some terminals.
6 months ago
1 day