Skip to content

A simple terminal user interface for ChatGPT, written in Go

License

Notifications You must be signed in to change notification settings

quantonganh/chatgpt-tui

Repository files navigation

ChatGPT Terminal UI

This is a simple terminal user interface for ChatGPT, written in Go with the tview library.

chatgpt

ChatGPT is a chatbot that can generate human-like responses to text messages. In this terminal UI, users can send messages to ChatGPT and receive responses from the chatbot.

Installation

You can download the latest binary from the release page.

Install via homebrew

brew install quantonganh/tap/chatgpt-tui

Install via go

go install github.com/quantonganh/chatgpt@latest

Usage

set -Ux OPENAI_API_KEY your-key

Once you have started the ChatGPT terminal UI application, you will see a text box at the bottom of the screen where you can type your messages to ChatGPT. Press the Enter key to send your message to the chatbot.

ChatGPT will respond to your message in the main area of the screen. You can continue to send messages and receive responses from the chatbot in this way.

If you want to quit the application, you can press the ctrl-c.

Credits

This application was created by Quan Tong using the tview library.

ChatGPT is a product of OpenAI. For more information about ChatGPT, visit https://openai.com/.

License

This project is licensed under the MIT License. See (LICENSE) for more information.