Skip to main content

ChatGPT in YOUR Terminal

·190 words·1 min· ·
Brandon Hopkins
Table of Contents

AI and ChatGPT is possible in your Windows, macOS, and Linux terminal! In this article, we cover a small utility called tgpt that will allow you to run AI prompts in your terminal without the need for API keys.

From its GitHub page, the application is described as “a cross-platform CLI (command-line) tool that lets you use ChatGPT 3.5 in Terminal without API KEYS. It communicates with the Backend of the Bai chatbot. It’s written in Go.”

In macOS and Linux, download the latest release and make the installer executable by right-clicking and going to properties, then permissions. Then, in the terminal, go to the directory of the downloaded repo and run the installer with the following.

./install

The Windows version was submitted to choco and is waiting to be approved.

Using tgpt in Terminal
#

All you need to do is type tgpt followed by your prompt in quotes. As of my testing, this will not work like a conversation similar to the web version of ChatGPT, meaning you cannot reference past prompts.

tgpt "How do I install docker in Fedora?"

Checkout our Video Demo and Testing
#

https://youtu.be/Xg63xdqbA9E

Related

How to make an Apache Webserver with SSL
·996 words·5 mins
Brandon Hopkins
The ULTIMATE RetroPie Setup Guide
·1340 words·7 mins
Brandon Hopkins
How to Dual Boot Windows 10 and Pop!_OS (Legacy/GRUB)
·1090 words·6 mins
Brandon Hopkins