cli-gpt icon indicating copy to clipboard operation
cli-gpt copied to clipboard

💬 Simple TUI for ChatGPT.

cli-gpt

https://user-images.githubusercontent.com/55558407/223719418-26477b1e-1cf6-4f47-8810-69b665b260dd.mp4

Usage

Run: ./cli-gpt

Other options: commands

Configuration

  • place custom (system) prompts in ~/.config/cli-gpt/system-prompts/*.txt
    • to use a custom prompt, see commands

Installation

Dependencies

  • Gum (tui toolkit)
  • linxu only (x11): xclip

Installing

  1. install the dependencies
  2. set the OPENAI_API_KEY environment variable to your OpenAI API key (export OPENAI_API_KEY="<your-api-key>")
  3. clone this repo & cd into it
  4. chmod +x ./cli-gpt
  5. ./cli-gpt