{"repo":"ricklamers/shell-ai","free":true,"listed":false,"github":"https://github.com/ricklamers/shell-ai","clone":"git clone https://github.com/ricklamers/shell-ai.git","description":"LangChain powered shell command generator and runner CLI","language":"Python","stars":1153,"topics":["langchain","llm","openai","gpt","automation","cli","shell"],"license":"MIT","category":"ai-agents","readme_excerpt":"Shell-AI: let AI write your shell commands 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. Installation You can install Shell-AI directly from PyPI using pip: Note that on Linux, Python 3.10 or later is required. After installation, you can invoke the utility using the shai command. Usage To use Shell-AI, open your terminal and type: Shell-AI will then suggest 3 commands to fulfill your request: - terraform plan - terraform plan -input=false - terraform plan Features - Natural Language Input : Describe what you want to do in plain English (or other supported languages). - Command Suggestions : Get single-line command suggestions that accomplish what you asked for. - Cross-Platform : Works on Linux, macOS, and Windows. - Azure Compatibility : Shell-AI now supports Azure OpenAI deployments. Configuration Shell-AI can be configured through environment variables or a config file located at /.config/shell-ai/config.json (Linux/MacOS) or %APPDATA%\\shell-ai\\config.json (Windows). Environment Variables - OPENAI API KEY : (Required) Your OpenAI API key, leave empty if you use ollama - OPENAI MODEL : The OpenAI model to use (default: \"gpt-3.5-turbo\") - OPENAI API BASE : The Open","default_branch":null,"files":null,"tree":[],"storefront":"/r/ricklamers","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ricklamers/shell-ai/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}