A Python-based command-line tool that interacts with OpenAI's GPT-4 to generate and execute command-line solutions based on user input.
- Receives user requests and returns command-line solutions.
- Allows quick copy-to-clipboard functionality.
- Uses an interactive terminal menu for seamless navigation.
- Python 3.6 or later
- An OpenAI API key. Set it as an environment variable named
OPENAI_GPT_CMD_API_KEY
.
-
Clone this repository
-
Install dependencies:
pip install -r requirements.txt
-
Set up the environment variable for the OpenAI API key:
export OPENAI_GPT_CMD_API_KEY="your_openai_api_key"
python gpt-cmd.py "Your prompt"
WTFPL