/AITerminal

AITerminal is an automation tool for the command line interface (CLI) that interacts with OpenAI's API to execute commands based on a given task.

Primary LanguagePHPMIT LicenseMIT

AITerminal

AITerminal is an automation tool for the command line interface (CLI) that interacts with OpenAI's API to execute commands based on a given task.

aiterminal3

Disclaimer

Please note that AITerminal executes commands on the terminal received from OpenAI. We recommend running the program in a sandbox environment, as no validation of the received commands is performed, which could pose potential security risks.

PRIVACY CONCERNS: all output of the command will be sent to GPT-4.

Occasionally, the program may not exit autonomously, requiring you to terminate the execution manually using CTRL+C.

Credits

Thanks to Vincenzo vuppi Petrucci for the idea and the original prompt. You can reach him on https://github.com/illegalvuppi

We're Illegal! https://github.com/illegalstudio

Usage

Installing composer dependencies

composer install

or

docker run --rm --interactive --tty --volume $PWD:/app composer install --ignore-platform-reqs

Build

You can build the application

php ai-terminal app:build

It will create a phar executable archive in /builds

Usage

To use AITerminal, follow these steps:

  1. Open your terminal or command prompt.
  2. Navigate to the directory containing the AITerminal executable.
  3. edit the .env file to include your OpenAI API key.
  4. Run the following command: ./ai-terminal execute

After executing the command, you will be prompted to enter the task to be performed. AITerminal will then interact with the OpenAI API to execute the task using a series of commands.