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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file shgpt-0.2.0.tar.gz.

File metadata

  • Download URL: shgpt-0.2.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for shgpt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 94bd8a465b0e5996c32cdffdbf673c52748a37e3c24d48b73e8bdeb6bf828b8f
MD5 77871edd3014d13973ec19070fa0fcb7
BLAKE2b-256 11cda1df105352dce65fdf4e57a944570c9da0e4f8aa0817086bbae6c10873bd

See more details on using hashes here.

File details

Details for the file shgpt-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: shgpt-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for shgpt-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 942a030f78e892a9a7808ea3e3f41e87c19a5321c46c2073f87d26c121576796
MD5 b8a846ad0997c46ad8bc65c6a1168e0f
BLAKE2b-256 2ca39a0e8cba7f1cdcc16c2d1bf61c3c1dcc1903f64c5898c106c24e055b2bd1

See more details on using hashes here.

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