#chat #gpt #repl #cli

app chat-tty

A command-line chatbot for ChatGPT that supports streaming tokens and history

7 releases

0.3.4 Apr 11, 2023
0.3.3 Apr 10, 2023
0.2.0 Apr 7, 2023
0.1.0 Apr 7, 2023

#1158 in Command line utilities

23 downloads per month

MIT license

367 lines

The content of this readme was assisted by chat-tty

Rust Version Crates.io Crates.io Crates.io


chat-tty is a terminal-based Rust application that allows you to stream completions from OpenAI's ChatGPT model.

Interact with ChatGPT directly in your terminal and experience lightning-fast completions for any use case, including brainstorming ideas , generating content or casual conversations with the AI. Harness ChatGPT's capabilities quickly and easily in this lightweight console-b ased interface.

Table of Contents


To build, run and install this application, you need to have the latest version of Rust installed on your computer. You can install Rust by following the instructions at https://www.rust-lang.org/tools/install.

Now, you are ready to install the application!

cargo install chat-tty


Before using the chat-tty, you need to provide a valid OpenAI API key. Set the OPENAI_KEY environment variable to your Open AI API key:

export OPENAI_KEY=your_api_key

Now, you can simply run the application by executing:



This project is licensed under the MIT License. See the LICENSE file for more details.


~386K SLoC