Skip to content

aandrew-me/tgpt

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
May 11, 2023 23:17
April 21, 2023 14:37
June 19, 2023 21:26
May 12, 2023 20:59
May 13, 2023 21:18
June 6, 2023 16:39
June 19, 2023 21:42
June 19, 2023 22:20
May 16, 2023 20:21
June 19, 2023 22:20

Terminal GPT (tgpt) πŸš€

GitHub go.mod Go version GitHub release (latest by date) AUR version Chocolatey Version

tgpt is 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 Bai chatbot. Its written in Go.

Usage πŸ’¬

tgpt "What can you do?"

demo

Installation ⏬

Download for GNU/Linux 🐧 or MacOS 🍎

The default download location is /usr/local/bin. But you can change it in the command and use your own location. However make sure its in PATH, if you want it to be easily accessible.

You can download with this 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

With Go

go install github.com/aandrew-me/tgpt@latest

Windows πŸͺŸ

  • Chocolatey

    It can be installed from Chocolatey with

    choco install tgpt
    
  • Scoop

    Package can be installed with scoop with the following command -

    scoop install https://raw.githubusercontent.com/aandrew-me/tgpt/main/tgpt.json
    
  • PowerShell

    Open your PowerShell as Admin and run the following command:

    Invoke-WebRequest https://raw.githubusercontent.com/aandrew-me/tgpt/main/install-win.ps1 -OutFile "$PWD\install-win.ps1";  .\install-win.ps1
    

    If you receive execution of scripts is disabled on this system error, run this command (and confirm with a "Y"):

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned; Invoke-WebRequest https://raw.githubusercontent.com/aandrew-me/tgpt/main/install-win.ps1 -OutFile "$PWD\install-win.ps1";  .\install-win.ps1
    

From Release

You can download an executable for your Operating System, then rename it to tgpt or whatever you want. Then you can execute it by typing ./tgpt being in that directory. Or you can add it to the Environmental Variable PATH and then you can execute it by just typing tgpt.

If you liked this project, give it a star! ⭐