A CLI for talking to ChatGPT, saving conversation logs, and turning code blocks (language agnostic) from it's responses into executable shell commands.
-
Install the python dependencies:
pip install -r requirements.txt -
Create an API key on the OpenAI developer portal.
-
Replace
YOUR_API_KEYin the.envfile with your OpenAI API key.
OR
You can run the following command: (however this does not get persisted on reboot)export OPENAI_API_KEY=<your-api-key> -
Run the setup script. This will add the
gpteaalias for your script in.bashrcfor easy execution in any directory, and add local directories (generated-scripts/andconversations/) for saving ChatGPT: generated files or conversations.chmod +x setup.sh && source setup.sh -
You are good to go! 🤠 Run
gpteato get started.
- _ : no input will display the list of commands.
ask: ask ChatGPT: a question without saving any files.convo: have a continuous conversation with ChatGPT:.lang <lang-name>: ask ChatGPT: to create a bash script that uses the input language (<lang-name>) under the hood.
Available<lang-name>values:
python,bash,javascript,typescript,java,c,c++,c#,rust,swift,go,ruby,php
