shell-ai
tags :
Python Apps #
LangChain powered shell command generate and run CLI github
Shell-AI (shai) is a CLI utility that brings the power of natural language understanding to your command line. Simply input what you want to do in natural language, and shai will suggest single-line commands that achieve your intent. Under the hood, Shell-AI leverages the LangChain for LLM use and builds on the excellent InquirerPy for the interactive CLI.
pip install shell-ai
for macOS or Linux OS #
Create a file called config.json under ~/.config/shell-ai/ and secure it with chmod 600 ~/.config/shell-ai/config.json.
mkdir -p ~/.config/shell-ai
vim ~/.config/shell-ai/config.json
chmod 600 ~/.config/shell-ai/config.json
"OPENAI_API_KEY": "your_openai_api_key_here",
"OPENAI_MODEL": "gpt-3.5-turbo",
"SHAI_SUGGESTION_COUNT": "3"