Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlexW00/cli-gpt
💬 Simple TUI for ChatGPT.
https://github.com/AlexW00/cli-gpt
chatgpt cli cmd command-line gum linux openai tui
Last synced: 3 months ago
JSON representation
💬 Simple TUI for ChatGPT.
- Host: GitHub
- URL: https://github.com/AlexW00/cli-gpt
- Owner: AlexW00
- Created: 2023-03-08T12:45:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-09T11:36:23.000Z (9 months ago)
- Last Synced: 2024-05-23T00:35:13.309Z (6 months ago)
- Topics: chatgpt, cli, cmd, command-line, gum, linux, openai, tui
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 20
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- project-awesome - AlexW00/cli-gpt - 💬 Simple TUI for ChatGPT. (Shell)
README
# cli-gpt
https://user-images.githubusercontent.com/55558407/223719418-26477b1e-1cf6-4f47-8810-69b665b260dd.mp4
## Usage
Run: `./cli-gpt`
Other options: [commands](./commands.md)
## Configuration
- place custom (system) prompts in `~/.config/cli-gpt/system-prompts/*.txt`
- to use a custom prompt, see [commands](./commands.md)## Installation
### Dependencies
- [Gum](https://github.com/charmbracelet/gum) (tui toolkit)
- linxu only (x11): [xclip](https://github.com/astrand/xclip)### Installing
1. install the dependencies
2. set the `OPENAI_API_KEY` environment variable to [your OpenAI API key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key) (`export OPENAI_API_KEY=""`)
3. clone this repo & `cd` into it
4. `chmod +x ./cli-gpt`
5. ./cli-gpt