This is a simple terminal user interface for ChatGPT, written in Go with the tview library.
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.
You can download the latest binary from the release page.
brew install quantonganh/tap/chatgpt-tui
go install github.com/quantonganh/chatgpt@latest
- Create your API key: https://platform.openai.com/account/api-keys
- Set your
OPENAI_API_KEY
environment variable using fish shell:
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
.
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/.
This project is licensed under the MIT License. See (LICENSE) for more information.