ChatGPT but in your terminal.
Remember that you need credits for OpenAI API in order to use this script. Check your OpenAI API billing information.
-
Clone this repo
Using SSH:
git clone [email protected]:opixelum/chatgpt-cli.git
Using HTTPS:
git clone https://github.com/opixelum/chatgpt-cli.git
-
Install
dotenv
&openai
package:Example using
pip
:pip install dotenv openai
-
Copy
.env.example
into.env
:cp .env.example .env
-
Fill
OPENAI_API_KEY
in.env
with your OpenAI API key.OPENAI_API_KEY=sk-...
Run it!
python main.py