This is a command-line interface (CLI) for OpenAI's ChatGPT API. It allows you to interact with the API from your terminal, without needing to use a web browser.
- Create a OpenAI API token at https://platform.openai.com/account/api-keys
- Create a
.envfile using the.env.templatefile and setOPEN_AI_TOKENto the generated API token for step 1. The env file can also be named.openai-cliand placed in users home directory.
- While running a SQLite database will be created at the path specified in the
OPEN_AI_DB_PATHenv, if that is not set it will default to~/openai-cli.db.
- Pefixing the prompt with
/systemwill make the prompt a system prompt, which is used as a way to set the behavior of the AI.

