Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 816 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 816 Bytes

ChatGPT CLI

ChatGPT but in your terminal.

Getting Started

Prerequisites

Remember that you need credits for OpenAI API in order to use this script. Check your OpenAI API billing information.

  1. Clone this repo

    Using SSH:

    git clone git@github.com:opixelum/chatgpt-cli.git

    Using HTTPS:

    git clone https://github.com/opixelum/chatgpt-cli.git
  2. Install dotenv & openai package:

    Example using pip:

    pip install dotenv openai
  3. Copy .env.example into .env:

    cp .env.example .env
  4. Fill OPENAI_API_KEY in .env with your OpenAI API key.

     OPENAI_API_KEY=sk-...
    

Usage

Run it!

python main.py