ther1d/shell_gpt

A command-line productivity tool powered by AI large language models like GPT-5, will help you accomplish your tasks faster and more efficiently.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 33 minutes ago
Added to GitGenius on September 5th, 2026
Created on January 18th, 2023
Open Issues & Pull Requests: 121 (+0)
GitHub issues: Enabled
Number of forks: 981
Total Stargazers: 12,274 (+0)
Total Subscribers: 95 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 10.5 days
Mean response time: 70.9 days
90th percentile: 288.0 days
Tracked items: 86

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 98% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 9% of issues opened in the past year have been closed. Three people close 88% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 51
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 542 days
Stale 30+ days: 49
Stale 90+ days: 45

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (3)
  • enhancement (3)
  • docker (1)

Detailed Description

ShellGPT is a command-line productivity tool that generates shell commands, code snippets, and documentation by querying large language models directly from the terminal.

The tool solves the problem of context-switching to external resources when you need to recall command syntax or generate code. It accepts prompts via command-line arguments or stdin, making it easy to pipe data through it. By default it uses OpenAI's API with GPT-4, though it can be configured to run open-source models locally through Ollama. The tool is aware of your operating system and shell environment, so it tailors suggestions accordingly—for example, generating macOS commands when run on macOS and Ubuntu commands when run on Ubuntu. It supports major shells including Bash, Zsh, PowerShell, and CMD across Linux, macOS, and Windows.

Adoption requires an OpenAI API key and incurs API costs, though the README notes that open-source models can be run locally for free via Ollama as an alternative, with the caveat that the tool is not optimized for local models. The tool suits developers who frequently look up command syntax or need quick code generation and want to stay in the terminal. Shell integration via hotkeys in Bash and ZSH allows you to invoke suggestions directly into your terminal buffer for immediate editing, making it particularly useful for iterative command construction.

Development activity shows consistent engagement with bug fixes and feature refinements. The project maintains responsiveness to user-reported issues and incorporates feedback into updates. Documentation is actively maintained, including detailed guides for alternative setups like Ollama integration.