tgpt is a cross-platform command-line interface (CLI) tool that allows you to use ChatGPT 3.5 in your Terminal without requiring API keys. It communicates with the backend of Bai chatbot and is written in Go.
tgpt "What can you do?"
The default download location is /usr/local/bin
, but you can change it in the command to use a different location. However, make sure the location is added to your PATH environment variable for easy accessibility.
You can download it with the following command:
curl -sSL https://raw.githubusercontent.com/aandrew-me/tgpt/main/install | bash -s /usr/local/bin
If you are using Arch Linux, you can install the AUR package with paru
:
paru -S tgpt-bin
Or with yay
:
yay -S tgpt-bin
go install github.com/aandrew-me/tgpt@latest
-
Chocolatey: You can install tgpt from Chocolatey using the following command:
choco install tgpt
-
Scoop: Package installation with Scoop can be done using the following command:
scoop install https://raw.githubusercontent.com/aandrew-me/tgpt/main/tgpt.json
You can download the executable for your operating system, rename it to tgpt
(or any other desired name), and then execute it by typing ./tgpt
while in that directory. Alternatively, you can add it to your PATH environmental variable and then execute it by simply typing tgpt
.
If you find this project useful, please give it a star! โญ