Metadata-Version: 2.3
Name: shgpt
Version: 0.1.1
Summary: Generate shell command you want with power of LLM, without leaving your terminal.
Project-URL: Repository, https://github.com/jiacai2050/shellgpt
Project-URL: Issues, https://github.com/jiacai2050/shellgpt/issues
Author-email: Jiacai Liu <dev@liujiacai.net>
License-Expression: GPL-3.0
Keywords: gpt,llm,shell
Requires-Dist: pyperclip
Requires-Dist: requests
Requires-Dist: smartinput
Requires-Dist: textual
Description-Content-Type: text/markdown

# ShellGPT

[![](https://img.shields.io/pypi/v/shgpt)](https://pypi.org/project/shgpt/)

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}`
- `sg`, Enter TUI mode
- `sg -l`, Enter an interactive REPL

See [conf.py](shellgpt/utils/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

# Requirements
- [Ollama](https://ollama.com/), you need to download models before try shellgpt.

# License

[GPL-3.0](https://opensource.org/license/GPL-3.0)
