# ShellGPT — AI Assistant in Your Terminal > ShellGPT generates shell commands, code, and docs from natural language in your terminal. 11.9K+ stars. Chat, REPL, local models. MIT. ## Install Save as a script file and run: ## Quick Use ```bash pip install shell-gpt sgpt "find all Python files modified today" sgpt --code "fibonacci in Python" sgpt --chat myproject "explain this error" ``` --- ## Intro ShellGPT is a command-line AI tool that generates shell commands, code, and documentation from natural language. With 11,900+ GitHub stars and MIT license, it works with any OS/shell (Bash, Zsh, PowerShell), features chat mode, REPL mode, shell integration with Ctrl+L hotkey, function calling, custom roles, caching, and local models via Ollama. **Best for**: Developers wanting AI-powered terminal productivity **Works with**: Claude Code, OpenAI Codex, Cursor, Gemini CLI, Windsurf --- ## Key Features - Shell command generation from natural language - Code generation and explanation - Chat and REPL modes - Shell integration (Ctrl+L) - Local models via Ollama --- ### FAQ **Q: What is ShellGPT?** A: Terminal AI assistant with 11.9K+ stars. Generate commands, code, docs. Chat, REPL, Ollama. MIT. **Q: How do I install ShellGPT?** A: pip install shell-gpt. Then sgpt "your question". --- ## Source & Thanks > [TheR1D/shell_gpt](https://github.com/TheR1D/shell_gpt) — 11,900+ GitHub stars --- Source: https://tokrepo.com/en/workflows/b48a2103-8192-468f-8a8e-1d69d74c64b8 Author: Script Depot