/TermIA

A simple CLI that communicates with the OpenIA api

Primary LanguagePython

TermIA - An AI terminal interface

A simple CLI that communicates with the OpenIA api

Installation

copy or rename the example.env file to .env

cp example.env .env

Change the API key in the .env file

OPENAI_API_KEY="YOUR_API_KEY"

Copy the file to /usr/bin/ and give it execution permissions

sudo cp termIA.py /usr/bin/termIA
sudo cp .env /usr/bin/.env
sudo chmod +x /usr/bin/termIA

Usage

Create a prompt

termIA "Your prompt here" 
#or
termIA Your prompt here

note: use '-f' to force rum the command without prompt

termIA -f "Your prompt here" 

Open ChatGPT on Chrome

termIA -o

Open Help menu

termIA --help