Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 892 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 892 Bytes

terminalgpt

Simple CLI to use chatgpt inside the command line terminal

Instalation

  1. Clone the project files anywhere you want.
  2. Go inside the folder and create the file api_key.txt and paste your openai api key inside it.
  3. The program is now working. For convenience, to execute the program in any folder of your terminal, go to your terminal configuration file (maybe .bashrc or .zshrc) and paste the following alias: alias gpt="path-to-python-interpreter" "path-to-main.py"
  4. Now reopen your terminal and you should be able to interact to chat-gpt by typing the command "gpt".

Usage

  1. Once correctly installed, go to your terminal and type the command "gpt". Type your question and start interacting.
  2. To exit type "exit".

Examples

gpt-example