Skip to content

Simple CLI to use chatgpt inside the command line terminal

Notifications You must be signed in to change notification settings

LuanTSP/terminalgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple CLI to use chatgpt inside the command line terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages