Skip to content

ChatGPT-Executor is a server application that empowers ChatGPT to execute Windows commands, unlocking a wide range of applications and capabilities

License

Notifications You must be signed in to change notification settings

improveTheWorld/ChatGPT-Executor

Repository files navigation

ChatGPT-Executor Logo ChatGPT-Executor

ChatGPT-Executor is a server application that empowers ChatGPT to execute Windows commands, unlocking a wide range of applications and capabilities.

ChatGPT-Executor is part of the ChatGPT-Driver system, designed to seamlessly integrate ChatGPT with third-party software and enable it to execute Windows commands. To use ChatGPT-Executor, you'll also need to install the ChatGPT-Bridge browser plugin.

We are continuously striving to maintain and improve this project. If you love our work and find it useful, consider supporting us. Every small donation will go a long way in helping us to keep this project alive and free. 💌Donate Here💌

🌟 Features

  • 💬 Real-time execution of Windows commands generated by ChatGPT
  • ⚡ Efficient WebSocket server
  • 🔄 Bidirectional communication with ChatGPT and the command execution environment
  • 📦 Easy integration with ChatGPT web plugin
  • 📄 Enable ChatGPT to read large files that exceed the size of a single prompt

🆕 Most recent Release Notes (Version 1.2.0)

  • Introduced an authentication token mechanism to safeguard against server misuse.
  • Fixed an issue relating to lost connections without recovery attempts.
  • Added logging capability for improved traceability and debugging.
  • Migrated modifiable variables to a dedicated configuration file to enhance customization.
  • Transformed the server application to run as a Windows service for seamless execution.
  • Digitally signed the setup to eliminate antivirus warnings.

🚀 Getting Started

You may download and install Executor V1.2.0 from Here

If you want to genrate your own binaries , see the next paragraph.

Prerequisites

  • Windows operating system

Compilation

  • Using command-line

    Follow these instructions to compile the ChatGPT-Executor using command-line tools:

    1. Ensure you have .NET 6.0 SDK installed on your system. If not, download it from the .NET downloads page.

    2. Open a command prompt or terminal window.

    3. If you have Git installed, you can use the following command:

      git clone https://github.com/improveTheWorld/ChatGPT-Executor.git

    Alternatively, download the repository as a ZIP file to your local machine from here and extract it to a folder on your local machine.

    1. Change your working directory to the ChatGPT-Executor folder:

      cd ChatGPT-Executor

    2. Build the solution using the "dotnet build" command:

      dotnet build

    3. Once the build is successful, you can find the compiled executable in the "bin" folder of the project directory, under the "Release" folder.

    Congratulations! 🎉 ChatGPT-Executor is now up. Luanch it on your local machine. You need now to install the ChatGPT-Bridge plugin to see it in action.

  • Using Microsoft visual Studio

  1. Clone the repository:

    git clone https://github.com/improveTheWorld/ChatGPT-Executor.git

  2. `To compile the ChatGPT-Executor, which is written in C# using Microsoft Visual Studio 2022 and targeting .NET 6.0, follow these steps:

    1. Ensure you have Microsoft Visual Studio 2022 installed on your system. If not, download it from the official Microsoft website.
    2. Install the .NET 6.0 SDK from the.NET downloads page.
    3. download the repository as a ZIP file to your local machine from here and extract it to a folder on your local machine.
    4. Open the solution file (ChatGPT-Executor.sln) in Visual Studio 2022.
    5. Build the solution by selecting "Build" from the menu, then "Build Solution" or use the shortcut "Ctrl+Shift+B".
    6. Once the build is successful, you can find the compiled executable in the "bin" folder of the project directory, under the appropriate configuration folder (e.g., "Debug" or "Release").

    Congratulations! 🎉 ChatGPT-Executor is now up. Luanch it on your local machine. You need now to install the ChatGPT-Bridge plugin to see it in action.

🛠️ Usage

After running the ChatGPT-Executor server application, you need to use it in conjunction with ChatGPT-Bridge to enable it to execute Windows commands generated by CHATGPT. For detailed usage instructions, please refer to the ChatGPT-Bridge GitHub Repository.

As an example of use, we asked ChatGPT to troubleshoot our WiFi card. We had an issue that the Windows network diagnostic tools were unable to detect. ChatGPT, after trying different approaches using our ChatGPT-Bridge system, was able to fix it for us.Video

📧 Contributing

We welcome contributions! If you'd like to contribute, please follow the steps outlined in our Contributing Guidelines.

⚙️ Possible improvements

The first relase is already on the air, here are the next steps:

  • Update the protocol to directly handle writing text to a file as generated for the user.

  • Enhance the protocol to support updating existing files with a patch generated from ChatGPT. This reduces the number of tokens required to modify an existing file (as ChatGPT has limited token memory). Add the ability to apply patches and save the result in a new file.

  • Introduce a configuration file to set the maximum word count for a prompt.

  • Optimize the maximum word usage by testing the real possible limit accepted in one prompt.

  • When ChatGPT is asked to read a file, start by providing the total number of lines. It seems helping him to handle the frames protocol.

  • When the Executor asks ChatGPT to continue, it should specify the last received line and request that ChatGPT not resend previously received content.

  • Ensure compatibility with the Linux system /linux shell.

  • Make the application run as a background service.

  • Move the management of the initial prompt to the server side to minimize dependency on the plugin protocol and ensure ongoing compatibility between the initial prompt version and the server-implemented version. To accomplish this, add a config parameter on the plugin side that requests an initial prompt when new communication is detected. The plugin should send a command to the server, which should be independent of the protocol, such as "Send_First_Prompt".

🔐 License

  • This project is licensed under the Apache V2.0 for free software use - see the LICENSE file for details.
  • For commercial software use, see the LICENSE_NOTICE file.

📬 Contact

If you have any questions or suggestions, please feel free to reach out to us:

Together with ChatGPT-Bridge, ChatGPT-Executor unlocks the unlimited power and potential of ChatGPT. Join us on this exciting journey to revolutionize the way we interact with AI-powered language models!

About

ChatGPT-Executor is a server application that empowers ChatGPT to execute Windows commands, unlocking a wide range of applications and capabilities

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published