Skip to main content

Generate shell command you want with power of LLM, without leaving your terminal.

Project description

ShellGPT

Generate shell command you want with power of LLM, without leaving your terminal!

Install

pip install shgpt

This will install two commands: sg and shgpt.

Usage

ShellGPT has three modes to use:

  • sg {your question}, direct mode
  • sg, Enter TUI mode, tailored for infer shell command
  • sg -r, Enter an interactive REPL

See conf.py for configs.

TUI

There are some key bindings to use in TUI:

  • ctrl+j, Infer answer
  • ctrl+r, Run command
  • ctrl+y, Yank command

TUI screenshot

Requirements

  • Ollama, you need to download models before try shellgpt.

License

GPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shgpt-0.2.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

shgpt-0.2.0-py2.py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page