Go to file
2023-01-12 14:33:32 +02:00
chatgpt.sh Remove awk, use sed to remove only two first lines and maintain response formatting 2023-01-12 13:53:31 +02:00
install.sh Add ubuntu bash profile 2023-01-12 13:29:50 +02:00
LICENSE Create LICENSE 2023-01-12 14:33:32 +02:00
README.md Update README.md 2023-01-12 14:00:33 +02:00

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 2023-01-12 at 13 59 08

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.