CLI tool for natural language to shell command translation
Top 34.8% on sourcepulse
Shell-AI is a command-line interface utility that translates natural language requests into executable shell commands. It is designed for developers and power users seeking to streamline their workflow by leveraging AI for command generation. The tool offers interactive suggestions and supports multiple LLM providers for flexibility.
How It Works
Shell-AI utilizes LangChain to interface with Large Language Models (LLMs), enabling it to understand natural language prompts and generate relevant shell commands. It employs InquirerPy for an interactive command-line experience, presenting users with multiple command suggestions. The architecture supports various LLM backends, including OpenAI, Azure OpenAI, Groq, and Ollama, allowing users to choose their preferred API or local model.
Quick Start & Requirements
pip install shell-ai
OPENAI_API_KEY
, SHAI_API_PROVIDER
) or a config file (~/.config/shell-ai/config.json
).Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is open for contributions, suggesting potential for rapid development but also indicating that certain features or robustness might still be evolving. Specific performance benchmarks or detailed error handling capabilities are not explicitly detailed in the README.
3 months ago
1 day