Skip to content

opixelum/chatgpt-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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

About

ChatGPT but in your terminal.

Topics

Resources

License

Stars

Watchers

Forks

Languages