Skip to content

bill-c-martin/chatgpt-cli-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

Quick & dirty CLI clone of ChatGPT that requires an OpenAI key.

Allows you to experiment with the API and various techniques such as preprocessing, postprocessing, and chaining, and so on

Prerequisites

  • *nix terminal or WSL for Windows
  • Docker
  • VS Code with devcontainers extension installed
  • An OpenAI API key

Instructions

  1. Clone this repository from your terminal:
git clone git@github.com:bill-c-martin/chatgpt-cli-clone.git
  1. Open in VS Code:
cd chatgpt-cli-clone && code .
  1. Open the VS Code command pallete (Ctrl+Shift+P) and entering Dev Containers: Reopen in container
  2. Open a new terminal window within VS Code itself
  3. Run npm install
  4. Add your OpenAI key to an OPENAI_API_KEY variable in a newly-created .env file, replacing your-key-here with your actual OpenAI API key:
echo "OPENAI_API_KEY=your-key-here" > .env
  1. Finally, start the ChatGPT CLI clone by runnning: node index.js

About

CLI clone of ChatGPT. Node.js. Requires OpenAI API keys

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published