An open API service indexing awesome lists of open source software.

https://github.com/drdataye/drgpt

DrGPT is an interactive Command-Line Interface (CLI) tool that leverages the GPT model for various tasks such as answering questions, executing shell commands, and more.
https://github.com/drdataye/drgpt

drgpt gpt gpt-3 gpt-4 hackergpt shell terminal

Last synced: about 1 year ago
JSON representation

DrGPT is an interactive Command-Line Interface (CLI) tool that leverages the GPT model for various tasks such as answering questions, executing shell commands, and more.

Awesome Lists containing this project

README

          

# DrGPT :zap:

DrGPT is an interactive **Command-Line Interface (CLI) tool** that leverages the GPT model for various tasks such as answering questions, executing shell commands, and more.

## :package: Installation

### Linux

To install DrGPT on a Linux system, use the following commands:

```bash
# Download the .deb package
wget https://github.com/DrDataYE/DrGPT/releases/download/drgpt/drgpt_1.0_beta_all_linux.deb

# Install the package
sudo dpkg -i drgpt_1.0_beta_all_linux.deb
```

## :computer: Usage

After installation, `drgpt` can be used from the command line as follows:

- **Generate and Execute Shell Commands**:
```bash
drgpt --shell "update my system"
```

- **Describe Shell Commands**:
```bash
drgpt --describe-shell "ls -hl | grep drgpt"
```

- **Generate Code Only**:
```bash
drgpt --code "give me an example of using flask in python"
```

- **Open Text Editor for Prompt Input**:
```bash
drgpt --editor
```

- **Show Version**:
```bash
drgpt --version
```

- **Follow a Conversation by ID**:
```bash
drgpt --chat
```

- **Save Output to File**:
```bash
drgpt --output
```

For more detailed information, run `drgpt --help`.

## :bulb: Examples

Here are some examples of how to use DrGPT:

1. **Shell Command Generation**:

![Shell Command Generation](1.jpg)

```bash
drgpt --shell "install the metasploit framework on my system"
```

2. **Code Generation**:

![Code Generation](2.jpg)

```bash
drgpt --code "give me python code for a reverse shell"
```

3. **Conversation Follow-up**:

![Conversation Follow-up](3.jpg)

```bash
drgpt "how do I use my system in the command line?"
```

## :memo: Notes

- Ensure Python 3 and other necessary dependencies are installed on your system.
- You may need root permissions to install the package.

## :scroll: License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

*Enjoy using DrGPT!* :rocket: