GithubHelp home page GithubHelp logo

volkansah / chatgpt-shellmaster Goto Github PK

View Code? Open in Web Editor NEW
48.0 3.0 11.0 1.03 MB

ChatGPT ShellMaster enables command-line interactions via chat using OpenAI's ChatGPT Plus. Run scripts, manage files, and monitor processes directly from your chat. Use responsibly, mindful of security implications.

Home Page: https://github.com/VolkanSah/ChatGPT-ShellMaster

License: Other

Python 100.00%
awesome awesome-gpt awesome-tools chatgpt chatgpt-plugin chatgpt-plugins chatgptplus gpt-4 gpt-plugins openai pyhton3 shell chat-gpt-4 chatgpt4 chatgpt4-plugin shellmaster artifical-intelligence developer-tools cli comand-line

chatgpt-shellmaster's Introduction

⭐ 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.