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

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

Awesome Lists containing this project

README

          

# GPT CLI

[![npm version](https://badge.fury.io/js/gpt3-cli.svg)](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

![example-fun](assets/example-fun.png)

![example-code](assets/example-code.png)

## 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)