Skip to content

Latest commit

 

History

History
92 lines (66 loc) · 5.42 KB

README.md

File metadata and controls

92 lines (66 loc) · 5.42 KB

⭐ ChatGPT-ShellMaster (ChatGPT 4 Plugin) ⭐

checked 03.03.2024 (works well)

ChatGPT Shellmaster

ChatGPT ShellMaster is a cross-platform (unix/linux) plugin for OpenAI's ChatGPT 4. Transform your chat into a powerful command-line interface (CLI) for executing scripts, managing files, and monitoring processes.

ChatGPT ShellMaster leverages the strength of CLI while offering a friendly and intuitive chat environment, making complex tasks more interactive and approachable.

⚠️ Please note that this is a plugin for ChatGPT Plus! In order to use it, you'll need access to both a developer account and a ChatGPT Plus Account. As with all powerful tools, remember to use this responsibly and always be mindful of the potential security implications.

See ChatGPT ShellMaster in ChatGPT Plus with GPT4

Features

  • Execute Linux/Unix commands directly from the ChatGPT interface.
  • Handle multiple commands simultaneously with asynchronous execution.
  • Fetch, analyze, and store files interactively from your chat.
  • Configure the working directory for command execution for flexibility and security.
  • Works with temporary directories to reduce risk of unintentional file manipulation.
  • Learn Linux/Unix systems with interactive guides.

useful secure Prompts

Installation

  • Clone this repository to your local machine.
  • Install the required Python modules.
pip install quart
pip install quart-cors

Configure the working directory for command execution by editing the settings.json file. The default is /tmp, which is recommended for its safety and security. However, you can modify it as per your needs, ensuring the new directory has a minimum chmod of 700.

Usage

To get started, run the plugin using the following command:

python3 main.py

Next, navigate to your ChatGPT Plus Account. Under Settings, enable the Developer Tools (see image for reference). Switch to the GPT-4 tab and then proceed to the Plugin Store. At the bottom of the Plugin Store page, you'll find a link titled "Develop your own plugin" (see image). Click on this link and enter your information as required.

In my example, I used localhost:5004. You can use another port such as 2323 or 8080, but please ensure that your firewall or security software isn't blocking the connection (see image).

To use this plugin, you'll need to send a POST request to the /command endpoint of the server. The request should contain a JSON body with a command field, representing the command you wish to execute.

Example:

{
  "command": "echo 'Hello, World!'"
}

Alternatively, you can simplify your workflow by directly instructing ChatGPT, saying: "You have access to my CLI, please execute ...". The rest will be taken care of for you!

The server will execute the command and return the output. If the command fails, the server will return an error message.

  • An overview of effective commands for Python what can be used from ChatGPT too to work faster with asynchron-processes Link.

Security

Please be aware that this plugin executes commands as-is, without any sanitization or security checks. Make sure to only use it in a secure and controlled environment, and do not expose the server to the public internet. This ChatGPT Plugin is designed for developers, and should not be deployed on production servers! Use it only on localhost!

Contributing

Contributions are welcome! Please feel free to submit a pull request.

❤️ Thank you for your support!

If you appreciate my work, please consider supporting me:

  • Become a Sponsor: Link to my sponsorship page
  • ⭐ my projects: Starring projects on GitHub helps increase their visibility and can help others find my work.
  • Follow me: Stay updated with my latest projects and releases.

👣 other GPT stuff

Copyright

License

This project is licensed under the "Help the World Grow 💔 " License . See the LICENSE file for details