How to Use ChatGPT and DALL-E from Command Line using ChatGPT-shell-cli

ChatGPT-shell-cli is a free and open source shell script to use ChatGPT and DALL-E from the terminal command line application. By default this app uses the gpt-3.5-turbo model with the OpenAI API . Not only this, it supports all other OpenAI models. It comes with chat, chat history, chat context, input pipe, generate image, generate command and many more.

How to Install ChatGPT-shell-cli on Ubuntu

To install ChatGPT-shell-cli on your Ubuntu Linux system, run below command in the terminal app.

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

Get the ChatGPT OpenAI API keys from below link and provide when asked.

Also Read:  TheIDE U++ Cross Platform App Development Framework IDE

Generate OpenAI API Keys

Then manually add the API key using below command.

export OPENAI_KEY=your_key_here

Just replace “your_key_here” with your real API key.

ChatGPT-shell-cli

Now run below command and start your prompt.

chatgpt

Some available commands.

image:
history
model:
command:

For the complete help and usage details run below command.

chatgpt -h
If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Leave a Reply