/chatgpt-cli

ChatGPT but in your terminal.

Primary LanguagePythonMIT LicenseMIT

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