ChatGPT in Terminal
February 15, 2023

Pre-requisite

The only thing you need is your own OpenAI key.

Steps

  • Go to https://beta.openai.com/
  • Select you profile menu and go to Manage API Keys
  • Select + Create new secret key
  • Copy generated key

Let’s Start

The program we are going to use is called terminalGPT. Thanks to jucasoliveira for developing this.

Installation

Open your terminal,

To install tgpt run :

npm -g install terminalgpt

This will install it.

To run tgpt:

tgpt chat

If it is your first time running it, it will ask for open AI key, paste generated key from pre-requisite steps.

You will be prompted to enter your question.

Enjoy!

tags:
Terminal