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

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

Awesome Lists containing this project

README

          

# Bash-GPT
[![GitHub license](https://img.shields.io/github/license/ArtBIT/bash-clam.svg)](https://github.com/ArtBIT/bash-clam) [![GitHub stars](https://img.shields.io/github/stars/ArtBIT/bash-clam.svg)](https://github.com/ArtBIT/bash-clam) [![awesomeness](https://img.shields.io/badge/awesomeness-maximum-red.svg)](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: ...
```
[![asciicast](https://asciinema.org/a/5enWxNjy4Ggi6Z6Ol4ht7tDkh.svg)](https://asciinema.org/a/5enWxNjy4Ggi6Z6Ol4ht7tDkh)

# License

[MIT](LICENSE.md)