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.
See ChatGPT ShellMaster in ChatGPT Plus with GPT4
- 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.
- Handling Large Files
- Analyzing and Managing Log Files
- Learning Linux/Unix with ChatGPT and Shellmaster Plugin
- 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.
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.
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!
Contributions are welcome! Please feel free to submit a pull request.
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.
- GPT-Security-Best-Practices
- OpenAi cost calculator
- GPT over CLI
- Secure Implementation of Artificial Intelligence (AI)
- Comments Reply with GPT (davinci3)
- Basic GPT Webinterface
- Exploring the Code Interpreter in OpenAI
This project is licensed under the "Help the World Grow 💔 " License . See the LICENSE file for details