Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bill-c-martin/chatgpt-cli-clone
CLI clone of ChatGPT. Node.js. Requires OpenAI API keys
https://github.com/bill-c-martin/chatgpt-cli-clone
chatgpt cli nodejs openai-api
Last synced: about 1 month ago
JSON representation
CLI clone of ChatGPT. Node.js. Requires OpenAI API keys
- Host: GitHub
- URL: https://github.com/bill-c-martin/chatgpt-cli-clone
- Owner: bill-c-martin
- License: bsd-3-clause
- Created: 2023-03-25T03:15:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-28T02:46:51.000Z (over 1 year ago)
- Last Synced: 2024-10-12T19:43:15.090Z (2 months ago)
- Topics: chatgpt, cli, nodejs, openai-api
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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:
```sh
git clone [email protected]:bill-c-martin/chatgpt-cli-clone.git
```2. Open in VS Code:
```sh
cd chatgpt-cli-clone && code .
```3. Open the VS Code command pallete (`Ctrl+Shift+P`) and entering `Dev Containers: Reopen in container`
4. Open a new terminal window within VS Code itself
5. Run `npm install`
6. 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:```sh
echo "OPENAI_API_KEY=your-key-here" > .env
```7. Finally, start the ChatGPT CLI clone by runnning: `node index.js`