https://github.com/KyleMit/gpt-cli
CLI chatbot using openai API
https://github.com/KyleMit/gpt-cli
chat-gpt cli openai
Last synced: 5 months ago
JSON representation
CLI chatbot using openai API
- Host: GitHub
- URL: https://github.com/KyleMit/gpt-cli
- Owner: KyleMit
- Created: 2023-01-07T15:11:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-26T12:22:55.000Z (over 2 years ago)
- Last Synced: 2025-05-01T21:04:48.842Z (5 months ago)
- Topics: chat-gpt, cli, openai
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/gpt3-cli
- Size: 153 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- Contributing: Contributing.md
Awesome Lists containing this project
- jimsghstars - KyleMit/gpt-cli - CLI chatbot using openai API (JavaScript)
README
# GPT CLI
[](https://www.npmjs.com/package/gpt3-cli)
```bash
$ gpt write a haiku about winter
Cold winter night
Snowflakes falling from the sky
Peaceful serenity
```## Install
```bash
npm i gpt3-cli -g
```## Commands
```bash
# enter auth key
gpt auth# customize config
gpt config# ask question
gpt
```## Examples


## Notes
> **Note**
> Be careful with apostrophe's in your question, as they'll likely be interpreted to your shell as string delimiters
> **Note**
> You'll need to create and enter your own [API Key](https://beta.openai.com/account/api-keys)## Logs
Logs are stored to a local `logs.json` file to help you debug info from the response that is not displayed on screen
## Prior Art
* [ohall/gpt](https://github.com/ohall/gpt)
* [openai-node-cli](https://github.com/mirnes-cajlakovic/openai-node-cli)
* [assistant-cli](https://github.com/diciaup/assistant-cli)
* [openai-cli](https://www.npmjs.com/package/openai-cli)
* [ChatGPT-Agent](https://github.com/JacobLinCool/ChatGPT-Agent)