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
- Host: GitHub
- URL: https://github.com/wkaisertexas/chatgpt
- Owner: wkaisertexas
- License: mit
- Created: 2023-10-23T00:45:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-23T01:11:34.000Z (over 1 year ago)
- Last Synced: 2025-01-15T14:36:00.245Z (5 months ago)
- Topics: clack, gpt
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/clack-chat-gpt
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
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)