ScriptsApr 1, 2026·1 min read

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.

TO
TokRepo精选 · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

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 — 11,900+ GitHub stars

Related Assets