DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Shell GPT: what you can do with it

What is Shell GPT? 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.

How do I use it? Run pip install shell-gpt and enter your OpenAI API key when prompted; then ask for a command: sgpt --shell "find all json files in current folder"; choose [E]xecute, [D]escribe or [A]bort; use Describe when you are not sure what it does. Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

3 use cases

Quick start with Shell GPT

  1. Check you have what it needs: 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.
  2. Open TheR1D/shell_gpt on GitHub and read the README and license.
  3. Run pip install shell-gpt and enter your OpenAI API key when prompted
  4. Ask for a command: sgpt --shell "find all json files in current folder"
  5. Choose [E]xecute, [D]escribe or [A]bort; use Describe when you are not sure what it does
  6. Install the hotkey with sgpt --install-integration and restart your terminal, then press Ctrl+l to turn your input line into a command

These steps come from our top use case, Turn plain English into shell commands you can run, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for TheR1D/shell_gpt

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Personal productivity

About this repo

  • Who it is forDevelopers and sysadmins who live in the terminal and keep looking up command syntax.
  • Why it is hot12k stars, talked about in 2 AI sources we track
  • LanguagePython
  • Sourcegithub.com/TheR1D/shell_gpt ยท Back to Hot repos

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

Add this badge to your README

Maintain Shell GPT? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/TheR1D/shell_gpt.svg)](https://dedupedai.com/use-cases/ther1d-shell-gpt/?utm_source=github&utm_medium=badge&utm_campaign=TheR1D-shell_gpt)

HTML

<a href="https://dedupedai.com/use-cases/ther1d-shell-gpt/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=TheR1D-shell_gpt"><img src="https://dedupedai.com/badge/TheR1D/shell_gpt.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Shell GPT

What is Shell GPT?

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. It is an open-source project on GitHub: https://github.com/TheR1D/shell_gpt.

How do I use Shell GPT?

Run pip install shell-gpt and enter your OpenAI API key when prompted; then ask for a command: sgpt --shell "find all json files in current folder"; choose [E]xecute, [D]escribe or [A]bort; use Describe when you are not sure what it does. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Shell GPT for?

Developers and sysadmins who live in the terminal and keep looking up command syntax.

What can I do with Shell GPT?

3 use cases so far, for example: Turn plain English into shell commands you can run; Pipe logs and diffs into an LLM for quick answers; Build and refine code in a named terminal chat session. Each has steps and a copy-paste agent prompt.

What do I need to run Shell GPT?

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.

What are alternatives to Shell GPT?

Other hot AI repos in Personal productivity: Nanobot, Textgen, Learnharness, Chatbox, Jan.

Is Shell GPT safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.