← 开源
ricklamers

shell-ai

LangChain powered shell command generator and runner CLI

ApplicationsProductivityPython
在 GitHub 打开
增长势头
+-124 小时新增 Star-0.1%
1.16k
Star
80
Fork
+0
本周
13
贡献者
创建于 2023-08-20 · 更新于 2026-10-16 · 今日第 18935 名
主要开发者
ricklamersRobsOnWaves0x090909

ricklamers/shell-ai 排名第 18,935,有 1,162 个星标。

同类别比较

ricklamers/shell-ai 排名第 18,935,此处有 8 个同类条目;github/gh-copilot 排名第 18,938。

同类别比较
名称排名指标
NoDataFound/hackGPT18,920
语言:
Jupyter Notebook
星标数:
1,213
分叉数:
306
简介:
I leverage OpenAI and ChatGPT to do hackerish things
xenodium/chatgpt-shell18,921
语言:
Emacs Lisp
星标数:
1,210
分叉数:
102
简介:
A multi-llm Emacs shell (ChatGPT, Claude, DeepSeek, Gemini, Kagi, Ollama, Perplexity) + editing integrations
huggingface/llm.nvim18,927
语言:
Lua
星标数:
1,193
分叉数:
60
简介:
LLM powered development for Neovim
madox2/vim-ai18,928
语言:
Python
星标数:
1,186
分叉数:
112
简介:
AI-powered code assistant for Vim. OpenAI and ChatGPT plugin for Vim and Neovim.
github/gh-copilot18,938
星标数:
1,153
分叉数:
85
简介:
Ask for assistance right in your terminal.
mind-protocol/terminal-velocity18,947
语言:
Python
星标数:
1,115
分叉数:
77
简介:
A novel created autonomously by a team of 10 AI agents
manaflow-ai/manaflow18,948
语言:
TypeScript
星标数:
1,114
分叉数:
60
简介:
Open source Claude Code web/Codex Cloud/Devin/Ramp Inspect alternative
PharMolix/OpenBioMed18,952
语言:
Python
星标数:
1,106
分叉数:
133
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Productivity
星标数1,162
分叉数80
贡献者13
创建日期2023-08-20
更新日期2026-10-16
1 天星标数-1
7 天星标数0
排名18,935
上次排名11,284
排名变化-7,651
7 天星标排名12,980
上次 7 天星标排名10,153
7 天星标排名变化-2,827
总星标排名9,954
上次总星标排名9,936
总星标排名变化-18
国家Netherlands
README 摘录

Shell-AI: let AI write your shell commands Shell-AI ( ) 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 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. After installation, you can invoke the utility using the command. Usage To use Shell-AI, open your terminal and type: Shell-AI will then suggest 3 commands to fulfill your request: 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 (Linux/MacOS) or (Windows). Environment Variables : (Required) Your OpenAI API key, leave empty if you use ollama : The OpenAI model to use (default: "gpt-3. 5-turbo") : The OpenAI API / OpenAI compatible API endpoint to use (default: None) : (Required if using Groq) Your Groq API key : Number of suggestions to generate (default: 3) : Skip command confirmation when set to "true" : Skip writing to

shell history when set to "true" : Choose between "openai", "ollama", "azure", or "groq" (default: "groq") : Controls randomness in the output (default: 0. 05) make output more focused and deterministic, while higher values (e. : Enable context mode when set to "true" (Note: outputs will be sent to the API) : The Ollama model to use (default: "phi3. 5") : The Ollama endpoint to use (default: " Config File Example Config Example for OpenAI compatible Config example for MistralAI Config Example for Ollama The application

will read from this file if it exists, overriding any existing environment variables. Run the application after setting these configurations. Using with Groq To use Shell AI with Groq: 1. Set the following environment variables: Contributing This implementation can be made much smarter! Contribute your ideas as Pull Requests and make AI Shell better for everyone. License Shell-AI is licensed under the MIT License.

常见问题

记录了多少星标和分叉?

ricklamers/shell-ai 有 1,162 个星标和 80 个分叉。

仓库排名是多少?

ricklamers/shell-ai 排名第 18,935。

记录的语言和类别是什么?

ricklamers/shell-ai 有 1,162 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

ricklamers/shell-ai 与 github/gh-copilot 比较,后者排名第 18,938,有 1,153 个星标。

README

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:

pip install shell-ai

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:

shai run terraform dry run thingy

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 OpenAI API / OpenAI compatible API endpoint to use (default: None)
  • GROQ_API_KEY: (Required if using Groq) Your Groq API key
  • SHAI_SUGGESTION_COUNT: Number of suggestions to generate (default: 3)
  • SHAI_SKIP_CONFIRM: Skip command confirmation when set to "true"
  • SHAI_SKIP_HISTORY: Skip writing to shell history when set to "true"
  • SHAI_API_PROVIDER: Choose between "openai", "ollama", "azure", or "groq" (default: "groq")
  • SHAI_TEMPERATURE: Controls randomness in the output (default: 0.05). Lower values (e.g., 0.05) make output more focused and deterministic, while higher values (e.g., 0.7) make it more creative and varied.
  • CTX: Enable context mode when set to "true" (Note: outputs will be sent to the API)
  • OLLAMA_MODEL: The Ollama model to use (default: "phi3.5")
  • OLLAMA_API_BASE: The Ollama endpoint to use (default: "http://localhost:11434/v1/")

Config File Example

{
  "OPENAI_API_KEY": "your_openai_api_key_here",
  "OPENAI_MODEL": "gpt-3.5-turbo",
  "SHAI_SUGGESTION_COUNT": "3",
  "CTX": true
}

Config Example for OpenAI compatible

{
   "SHAI_API_PROVIDER": "openai",
   "OPENAI_API_KEY": "deepseek_api_key",
   "OPENAI_API_BASE": "https://api.deepseek.com",
   "OPENAI_MODEL": "deepseek-chat",
   "SHAI_SUGGESTION_COUNT": "3",
   "SHAI_SUGGESTION_COUNT": "3",
   "CTX": true
}

Config example for MistralAI

{
   "SHAI_API_PROVIDER": "mistral",
   "MISTRAL_API_KEY": "mistral_api_key",
   "MISTRAL_API_BASE": "https://api.mistral.ai/v1",
   "MISTRAL_MODEL": "codestral-2508",
   "SHAI_SUGGESTION_COUNT": "3",
   "CTX": true
}

Config Example for Ollama

   {
   "OPENAI_API_KEY":"",
   "SHAI_SUGGESTION_COUNT": "3",
   "SHAI_API_PROVIDER": "ollama",
   "OLLAMA_MODEL": "phi3.5",
   "OLLAMA_API_BASE": "http://localhost:11434/v1/",
   "SHAI_TEMPERATURE": "0.05"
   }

The application will read from this file if it exists, overriding any existing environment variables.

Run the application after setting these configurations.

Using with Groq

To use Shell AI with Groq:

  1. Get your API key from Groq
  2. Set the following environment variables:
    export SHAI_API_PROVIDER=groq
    export GROQ_API_KEY=your_api_key_here
    export GROQ_MODEL=llama-3.3-70b-versatile
    

Contributing

This implementation can be made much smarter! Contribute your ideas as Pull Requests and make AI Shell better for everyone.

Contributions are welcome! Please read the CONTRIBUTING.md for guidelines.

License

Shell-AI is licensed under the MIT License. See LICENSE for details.

排名相邻
同类项目