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.
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.
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