Terminal Chat Tool

A simple chat tool that allows user to chat with OpenAI from terminal.

Demo

Install

This tool can be installed using cargo install terminal_chat.

Set up

  1. Obtain API key from OpenAI.
  2. Add an environment variable with name OPENAI_API_KEY to your system.

Usage

  1. To start the app: type terminal_chat in your terminal.
  2. To chat with AI: type in your message and press enter or return.
  3. To exit the app: press esc.

Special Feature

  1. Code Blocks and inline code are displayed with a different background.

Code Block Example