AI shell assistant for generating commands and code snippets
Top 70.8% on sourcepulse
ShellAI is an AI-powered command-line assistant designed to help developers and power users quickly find shell commands, code snippets, and explanations without leaving the terminal. It aims to significantly reduce the time spent searching for information online, offering a minimal and convenient user experience.
How It Works
ShellAI leverages large language models (LLMs) to interpret natural language queries and generate relevant shell commands or code snippets. It features a fast, syntax-highlighted interface, automatically extracts and copies code, and allows for follow-up questions to refine results. The system supports OpenAI's GPT models and offers extensibility for other providers and local LLMs via a configurable config.yaml
file.
Quick Start & Requirements
brew install shell-ai
) or script (curl ... | bash
).OPENAI_API_KEY
environment variable. Advanced configuration for local models or Azure OpenAI is available via q config
and direct file editing.Highlighted Details
llama.cpp
).q config revert
command to restore previous configurations.~/.shell-ai/config.yaml
.Maintenance & Community
The project is maintained by @ilanbigio. Future development focuses on building a comprehensive configuration TUI and setting up model install templates.
Licensing & Compatibility
The repository does not explicitly state a license in the provided README.
Limitations & Caveats
Configuration for local models requires manual setup of LLM inference servers (e.g., llama.cpp
) and careful prompt engineering. The configuration TUI is still under development, necessitating direct file editing for advanced setups.
3 months ago
1 week