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.
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.
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
composer install
or
docker run --rm --interactive --tty --volume $PWD:/app composer install --ignore-platform-reqs
You can build the application
php ai-terminal app:build
It will create a phar executable archive in /builds
To use AITerminal, follow these steps:
- Open your terminal or command prompt.
- Navigate to the directory containing the AITerminal executable.
- edit the .env file to include your OpenAI API key.
- 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.