Scripts2026年4月1日·1 分钟阅读

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
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

pip install shell-gpt
sgpt "find all Python files modified today"
sgpt --code "fibonacci in Python"
sgpt --chat myproject "explain this error"

介绍

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".


🙏

来源与感谢

TheR1D/shell_gpt — 11,900+ GitHub stars

相关资产