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&openaipackage:Example using
pip:pip install dotenv openai
-
Copy
.env.exampleinto.env:cp .env.example .env
-
Fill
OPENAI_API_KEYin.envwith your OpenAI API key.OPENAI_API_KEY=sk-...
Run it!
python main.py