https://github.com/artbit/bash-gpt
Simple CLI for interfacing with Chat GPT API using cURL
https://github.com/artbit/bash-gpt
bash-script chatgpt cli
Last synced: about 1 year ago
JSON representation
Simple CLI for interfacing with Chat GPT API using cURL
- Host: GitHub
- URL: https://github.com/artbit/bash-gpt
- Owner: ArtBIT
- License: mit
- Created: 2023-03-30T11:13:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T09:30:41.000Z (about 3 years ago)
- Last Synced: 2025-04-14T22:05:21.503Z (about 1 year ago)
- Topics: bash-script, chatgpt, cli
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash-GPT
[](https://github.com/ArtBIT/bash-clam) [](https://github.com/ArtBIT/bash-clam) [](https://github.com/ArtBIT/bash-clam)
Bash GPT is a simple CLI script written in Bash to interface with OepnAI's chat GPT API.
# Prerequisites
You need the openAI API key and Organization ID:
- Get your API key from https://platform.openai.com/account/api-keys
- Get your Organization ID from https://platform.openai.com/account/org-settings
# Installation
```
git clone https://github.com/ArtBIT/bash-gpt.git
source bash-gpt/bash-gpt
```
# Usage
```
gpt bash
user: How do I write a script in bash?
assistant: ...
```
[](https://asciinema.org/a/5enWxNjy4Ggi6Z6Ol4ht7tDkh)
# License
[MIT](LICENSE.md)