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

https://github.com/wkaisertexas/chatgpt

ChatGPT, but in your terminal
https://github.com/wkaisertexas/chatgpt

clack gpt

Last synced: 3 months ago
JSON representation

ChatGPT, but in your terminal

Awesome Lists containing this project

README

        


ChatGPT in Terminal



Chat with ChatGPT without leaving your beloved command line interface


Introduction ·
Install ·
Setting Up Locally ·
Tech Stack ·
Inspiration ·
License



## Introduction

`clack-chat-gpt` is a open-source AI chatbot ChatGPT wrapper which provides a beautiful user interface thanks to [Clack](https://github.com/natemoo-re/clack) and is available through `npm`.

https://github.com/wkaisertexas/chatgpt/assets/27795014/663cfb31-a49e-46ee-af82-3d1202710316

## Install

Install via [NPM](https://www.npmjs.com/package/clack-chat-gpt)

```console
npm install -g clack-chat-gpt
```

After that, use like any CLI tool.

```console
chat What is the meaning of life?
```

## Setting Up Locally

To set up `clack-chat-gpt` locally, you'll need to clone the repository and set up the following environment variables:

- `OPENAI_API_KEY` – your OpenAI API key (you can get one [here](https://platform.openai.com/account/api-keys))

```console
git clone https://wkaisertexas/chatgpt
cd chatgpt
node .
```

## Tech Stack

`clack-chat-gpt` is built on the following stack:

- [openai](https://www.npmjs.com/package/openai) - chat completions
- [cleye](https://github.com/privatenumber/cleye) - command line interface parser
- [clack](https://github.com/natemoo-re/clack) - textual user interface

## Inspiration

Project built as a project for [Machine Learning with TensorFlow JavaScript](https://wkaisertexas.github.io/ml-with-tfjs/) and inspired by [Builder.io](https://builder.io)'s [ai-shell](https://github.com/builderio/ai-shell).

## Author

- William Kaiser ([@williamdkaiser](https://linkedin.com/in/williamdkaiser))

## License

Licensed under the [MIT license](./license.md)[^1]

---

[^1]: Thanks to [Stephen Tey](https://twitter.com/steventey) as I took the readme template from [ChatHN](https://github.com/steven-tey/chathn)