ChatGPT Terminal is a command-line tool that uses the OpenAI API to generate text completions for user input.
To install ChatGPT Terminal, first clone the repository:
git clone [email protected]:renanleonellocastro/chatgpt-terminal.git
To install the ChatGPT command-line tool, navigate to the repository directory and run the installation script:
chmod +x install.sh ./install.sh
If you prefer, you can manually install the ChatGPT Terminal command-line tool by copying the chatgpt
script to a directory in your system's PATH
, such as /usr/local/bin
. You'll also need to make the script executable:
sudo cp chatgpt /usr/local/bin sudo chmod +x /usr/local/bin/chatgpt
If it is your first time using ChatGPT Terminal then you have to set up your OpenAI API key using the -a
or --api
flag. If you don't provide an API key, ChatGPT Terminal will look for a stored API key in a file called chatgpt_api_key.txt
in the directory $HOME/.local
.
chatgpt --api YOUR_API_KEY
To use ChatGPT Terminal, simply call the chatgpt
command followed by your question. Here's an example:
chatgpt What is the color of the strawberry?
To uninstall ChatGPT Terminal, navigate to the repository directory and run the uninstallation script:
chmod +x install.sh ./install.sh --uninstall
Contributions are welcome! Feel free to open an issue or pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you find this tool useful, please give us a star on GitHub!