Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yonashailug/chatgpt-cli

Interactive Chatgpt cli made with nodejs
https://github.com/yonashailug/chatgpt-cli

chatgpt chatgpt-api chatgpt-cli cli javascript node node-js nodejs npm openai

Last synced: 23 days ago
JSON representation

Interactive Chatgpt cli made with nodejs

Awesome Lists containing this project

README

        

# chatgpt-cli
Interactive command line tool to access Chatgpt's feature

> You can easily access chatgpt features from your terminal

![Demo](/assets/screenshot.gif?raw=true "Demo")

## Usage

I recommend installing the tool globally, so that you can make use of it no matter where you are, but you can take out `-g` flag if you want to use it in particular work instead:

```
npm i -g @yonashailug/chatgpt-cli
```

> Note: You may need to run `sudo` before this command `sudo npm i -g @yonashailug/chatgpt-cli`

Then, to kick off the tool, type:

```
chatgpt-cli
```

You will be guided through prompts

To use different model types you can pass the model type to end of the script
> `chatgpt-cli -m model-id-2` or `chatgpt-cli --model model-id-2`, the default model is `text-davinci-003`

## Configuration

To use chatgpt's feature require api key to be generated and can be generated [here](https://beta.openai.com/account/api-keys) and when you run this npm package it will prompt to enter api key and save it.

> To enter api key in case of expire or miss typing, please use the command below `chatgpt-cli -k`