Netherdrake / chatGPT-shell-cli

Simple shell script to use OpenAI's chatgpt from the terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shell

chatGPT-shell-cli

A simple, lightweight shell script to use OpenAI's chatgpt from the terminal without installing python or node.js. The script uses the completion endpoint and the text-davinci-003 model.

Screenshot 2022-12-15 at 17 20 15

Getting Started

Prerequisites

This script relies on curl for the requests to the api and jq to parse the json response.

  • curl
    brew install curl
  • jq
    brew install jq
  • An OpenAI API key. Create an account and get a free API Key at OpenAI

Installation

To install, run this in your terminal and provide your OpenAI API key when asked.

curl -sS https://raw.githubusercontent.com/0xacx/chatGPT-shell-cli/main/install.sh | sudo -E bash

Usage

Run the script by using the chatgpt command anywhere.

About

Simple shell script to use OpenAI's chatgpt from the terminal


Languages

Language:Shell 100.0%