Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yonashailug/chatgpt-cli
- Owner: yonashailug
- License: mit
- Created: 2022-12-30T00:05:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T01:54:26.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T02:49:17.285Z (about 1 month ago)
- Topics: chatgpt, chatgpt-api, chatgpt-cli, cli, javascript, node, node-js, nodejs, npm, openai
- Language: JavaScript
- Homepage:
- Size: 613 KB
- Stars: 21
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`