TheR1D/shell_gpt
A command-line tool that uses LLMs to generate shell commands, code snippets, and documentation from natural language prompts.

ShellGPT integrates large language models into the terminal to streamline developer workflows. Users pipe input or provide prompts to generate shell commands, code, and documentation without leaving their development environment. It supports OpenAI models by default and can be configured to use local open-source models via Ollama. The tool works across Linux, macOS, Windows, and compatible shells including Bash, Zsh, PowerShell, and CMD.
Frequently asked
- What is TheR1D/shell_gpt?
- A command-line tool that uses LLMs to generate shell commands, code snippets, and documentation from natural language prompts.
- Is shell_gpt open source?
- Yes — TheR1D/shell_gpt is open source, released under the MIT license.
- What language is shell_gpt written in?
- TheR1D/shell_gpt is primarily written in Python.
- How popular is shell_gpt?
- TheR1D/shell_gpt has 12.2k stars on GitHub.
- Where can I find shell_gpt?
- TheR1D/shell_gpt is on GitHub at https://github.com/TheR1D/shell_gpt.