ShellGPT
β Text source-checked Nov 14, 2026Source-checked against the vendor's site Β· rebuilt from the vendor's own pagesProfile updated Link checked Pricing captured How we rate
In short
ShellGPT is a CLI tool that uses AI to generate shell commands, code, and docs. It supports major OSs and shells, offering OpenAI or free local model options.
ShellGPT is a command-line productivity tool powered by AI large language models (LLM). The tool offers streamlined generation of shell commands, code snippets, and documentation, eliminating the need for external resources like Google search. ShellGPT supports Linux, macOS, and Windows and is compatible with major shells like PowerShell, CMD, Bash, and Zsh.
By default, ShellGPT uses OpenAI's API and the GPT-4 model. Users need an API key to use the default configuration. Users can alternatively run open-source models locally for free. Running local models requires setting up a backend such as Ollama.
The --shell option allows users to generate and execute commands directly in the terminal. Shell integration enables the use of ShellGPT with hotkeys in Bash and ZSH shells. The --code parameter allows users to request pure code output.
ShellGPT creates conversational dialogue with each LLM completion requested. A REPL mode allows users to interactively chat with GPT models. Function calling allows the LLM to execute functions in the user's system.
Users can create custom roles to generate code, shell commands, or fulfill specific needs. The vendor says that users can control request caching using the --cache and --no-cache options.
According to ShellGPT: ShellGPT is a command-line productivity tool powered by AI large language models (LLM). Its pages list this strength: Offers streamlined generation of shell commands, Code snippets, and documentation.
β The AI Tool Bible editorial team
Pros
- β Offers streamlined generation of shell commands, code snippets, and documentation
- β Supports Linux, macOS, Windows, and major shells
- β Can run open-source models locally for free
- β Shell integration allows using hotkeys in the terminal
- β Function calls allow the LLM to execute system functions
Pricing (captured )
| Tier | Monthly | Per seat | Key features |
|---|---|---|---|
| Free | $0 USD | β |
|
| Team | $4 USD per user / month | Yes |
|
| Enterprise | $21 USD per user / month | Yes |
|
Prices change; we show the grid as captured on Nov 11, 2026. Check current pricing on the vendor's site β
Facts
- Platforms
- linux, macos, windows, cli (not source-checked)
- Pricing
- freemium - OpenAI API is not free of charge; alternatively, you can run open-source models locally for free. (not source-checked)
- API available
- Yes (not source-checked)
- Open source
- Yes (license: MIT) (not source-checked)
- GitHub stars
- 12,309 (checked Nov 11, 2026) (not source-checked)
- Last GitHub push
- Jul 2, 2026 (not source-checked)
- First commit
- Jan 2023 (not source-checked)
- Package downloads (30 d)
- 6,256 Β· pypi shell-gpt Β· checked Nov 21, 2026 (not source-checked)
Where this tool sits
Use cases
Frequently asked
- Is ShellGPT free to use?
- ShellGPT is freemium. The default OpenAI API is not free of charge. However, you can run open-source models locally for free by setting up a backend like Ollama.
- Which operating systems and shells does it support?
- ShellGPT supports Linux, macOS, and Windows. It is compatible with major shells including PowerShell, CMD, Bash, and Zsh, allowing seamless integration into your existing terminal environment.
- Can I use local models instead of OpenAI?
- Yes. While the default configuration uses OpenAI's GPT-4 model and requires an API key, users can alternatively run open-source models locally for free. This requires setting up a backend such as Ollama.
- Does ShellGPT offer interactive chat features?
- Yes, ShellGPT creates conversational dialogue with each LLM completion. It includes a REPL mode that allows users to interactively chat with GPT models directly within the command-line interface.
- Can I customize how ShellGPT generates output?
- Users can create custom roles to generate specific code or shell commands. Additionally, the --code parameter allows for pure code output, and --shell enables direct command execution in the terminal.