{
 "schema_version": 1,
 "generated": "2026-11-09",
 "repo": "TheR1D/shell_gpt",
 "name": "shell_gpt",
 "owner": "TheR1D",
 "slug": "ther1d-shell-gpt",
 "github": "https://github.com/TheR1D/shell_gpt",
 "what": "ShellGPT (sgpt) is a command-line productivity tool that uses large language models to generate shell commands, code snippets and documentation from plain-language prompts. It reads from arguments or stdin, knows your OS and shell, can execute suggested commands after you confirm, keeps chat sessions and a REPL, and adds a Ctrl+l hotkey to Bash and Zsh. It uses OpenAI by default and can be pointed at local models through Ollama.",
 "why": "12k stars, talked about in 2 AI sources we track",
 "language": "Python",
 "requirements": [
  "Python and pip",
  "An OpenAI API key, stored in ~/.config/shell_gpt/.sgptrc on first run, or a local backend such as Ollama",
  "Linux, macOS or Windows with Bash, Zsh, PowerShell or CMD"
 ],
 "audience_note": "Developers and sysadmins who live in the terminal and keep looking up command syntax.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Personal productivity",
 "url": "https://dedupedai.com/use-cases/ther1d-shell-gpt/",
 "use_case_count": 3,
 "use_cases": [
  {
   "id": "ther1d-shell-gpt--turn-plain-english-into-shell-commands",
   "title": "Turn plain English into shell commands you can run",
   "best": true,
   "url": "https://dedupedai.com/use-cases/ther1d-shell-gpt/turn-plain-english-into-shell-commands/",
   "json": "https://dedupedai.com/use-cases/u/ther1d-shell-gpt/turn-plain-english-into-shell-commands.json"
  },
  {
   "id": "ther1d-shell-gpt--analyze-logs-and-diffs-from-stdin",
   "title": "Pipe logs and diffs into an LLM for quick answers",
   "best": false,
   "url": "https://dedupedai.com/use-cases/ther1d-shell-gpt/analyze-logs-and-diffs-from-stdin/",
   "json": "https://dedupedai.com/use-cases/u/ther1d-shell-gpt/analyze-logs-and-diffs-from-stdin.json"
  },
  {
   "id": "ther1d-shell-gpt--iterate-on-code-in-a-chat-session",
   "title": "Build and refine code in a named terminal chat session",
   "best": false,
   "url": "https://dedupedai.com/use-cases/ther1d-shell-gpt/iterate-on-code-in-a-chat-session/",
   "json": "https://dedupedai.com/use-cases/u/ther1d-shell-gpt/iterate-on-code-in-a-chat-session.json"
  }
 ],
 "disclaimer": "Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk."
}
